E2E_API Tests #37
Annotations
5 errors, 6 warnings, and 2 notices
π§ͺ Running the e2e tests:
tests/pw/pages/basePage.ts#L214
1) [e2e_tests] βΊ myOrders.spec.ts:50:9 βΊ My orders functionality test βΊ customer can order again @lite
Error: locator.click: Error: strict mode violation: locator('.checkout-button.button.wc-forward, .wp-block-woocommerce-proceed-to-checkout-block a') resolved to 2 elements:
1) <a href="http://localhost:9999/checkout/" class="coβ¦>β¦</a> aka getByRole('link', { name: 'Proceed to Checkout' })
2) <a href="http://localhost:9999/checkout/" class="coβ¦>β¦</a> aka locator('a').filter({ hasText: 'Proceed to Checkout' }).nth(1)
=========================== logs ===========================
waiting for locator('.checkout-button.button.wc-forward, .wp-block-woocommerce-proceed-to-checkout-block a')
============================================================
at ../../pages/basePage.ts:214
212 | this.page.waitForURL(url, { waitUntil: 'networkidle' }),
213 | // this.page.waitForURL(url, { waitUntil: 'domcontentloaded' }),
> 214 | this.page.locator(selector).click(),
| ^
215 | ]);
216 | }
217 |
at MyOrdersPage.clickAndWaitForUrl (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:214:41)
at MyOrdersPage.goToCheckoutFromCart (/home/runner/work/dokan/dokan/tests/pw/pages/customerPage.ts:60:20)
at MyOrdersPage.orderAgain (/home/runner/work/dokan/dokan/tests/pw/pages/myOrdersPage.ts:75:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/myOrders.spec.ts:52:9
|
π§ͺ Running the e2e tests:
tests/pw/pages/basePage.ts#L249
1) [e2e_tests] βΊ myOrders.spec.ts:50:9 βΊ My orders functionality test βΊ customer can order again @lite
Retry #1 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
TimeoutError: page.waitForResponse: Timeout 15000ms exceeded while waiting for event "response"
at ../../pages/basePage.ts:249
247 | // click & wait for response
248 | async clickAndAcceptAndWaitForResponse(subUrl: string, selector: string, code = 200): Promise<Response> {
> 249 | const [response] = await Promise.all([this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.acceptAlert(), this.page.locator(selector).click()]);
| ^
250 | return response;
251 | }
252 |
at MyOrdersPage.clickAndAcceptAndWaitForResponse (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:249:57)
at MyOrdersPage.orderAgain (/home/runner/work/dokan/dokan/tests/pw/pages/myOrdersPage.ts:73:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/myOrders.spec.ts:52:9
|
π§ͺ Running the e2e tests:
tests/pw/pages/basePage.ts#L876
2) [e2e_tests] βΊ vendor.spec.ts:26:9 βΊ Vendor user functionality test1 βΊ vendor can register @lite
Error: locator.check: Clicking the checkbox did not change its state
=========================== logs ===========================
waiting for locator('#tc_agree')
locator resolved to <input id="tc_agree" type="checkbox" name="tc_agree" reβ¦/>
attempting click action
waiting for element to be visible, enabled and stable
forcing action
element is visible, enabled and stable
scrolling into view if needed
done scrolling
performing click action
click action done
waiting for scheduled navigations to finish
navigations have finished
============================================================
at ../../pages/basePage.ts:876
874 | async checkLocator(selector: string): Promise<void> {
875 | const locator = this.page.locator(selector);
> 876 | await locator.check({ force: true }); // forced is used to avoid "locator.check: Clicking the checkbox did not change its state" error
| ^
877 | }
878 |
879 | // click locator
at VendorPage.checkLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:876:23)
at VendorPage.check (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:677:20)
at VendorPage.checkIfVisible (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:695:24)
at VendorPage.vendorRegister (/home/runner/work/dokan/dokan/tests/pw/pages/vendorPage.ts:83:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/vendor.spec.ts:27:9
|
π§ͺ Running the e2e tests:
tests/pw/pages/basePage.ts#L876
2) [e2e_tests] βΊ vendor.spec.ts:26:9 βΊ Vendor user functionality test1 βΊ vendor can register @lite
Retry #1 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Error: locator.check: Clicking the checkbox did not change its state
=========================== logs ===========================
waiting for locator('#tc_agree')
locator resolved to <input id="tc_agree" type="checkbox" name="tc_agree" reβ¦/>
attempting click action
waiting for element to be visible, enabled and stable
forcing action
element is visible, enabled and stable
scrolling into view if needed
done scrolling
performing click action
click action done
waiting for scheduled navigations to finish
navigations have finished
============================================================
at ../../pages/basePage.ts:876
874 | async checkLocator(selector: string): Promise<void> {
875 | const locator = this.page.locator(selector);
> 876 | await locator.check({ force: true }); // forced is used to avoid "locator.check: Clicking the checkbox did not change its state" error
| ^
877 | }
878 |
879 | // click locator
at VendorPage.checkLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:876:23)
at VendorPage.check (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:677:20)
at VendorPage.checkIfVisible (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:695:24)
at VendorPage.vendorRegister (/home/runner/work/dokan/dokan/tests/pw/pages/vendorPage.ts:83:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/vendor.spec.ts:27:9
|
π§ͺ Running the e2e tests
Process completed with exit code 1.
|
π§ͺ Running the api tests:
tests/pw/[api_tests] βΊ products.spec.ts#L1
tests/pw/[api_tests] βΊ products.spec.ts took 6.5s
|
π§ͺ Running the api tests:
tests/pw/[api_tests] βΊ stores.spec.ts#L1
tests/pw/[api_tests] βΊ stores.spec.ts took 3.6s
|
π§ͺ Running the api tests:
tests/pw/[api_tests] βΊ orders.spec.ts#L1
tests/pw/[api_tests] βΊ orders.spec.ts took 3.3s
|
π§ͺ Running the e2e tests:
tests/pw/[e2e_tests] βΊ products.spec.ts#L1
tests/pw/[e2e_tests] βΊ products.spec.ts took 36.9s
|
π§ͺ Running the e2e tests:
tests/pw/[e2e_tests] βΊ myOrders.spec.ts#L1
tests/pw/[e2e_tests] βΊ myOrders.spec.ts took 29.7s
|
π§ͺ Running the e2e tests:
tests/pw/[e2e_tests] βΊ customer.spec.ts#L1
tests/pw/[e2e_tests] βΊ customer.spec.ts took 24.4s
|
π§ͺ Running the api tests
2 skipped
132 passed (19.9s)
|
|
The logs for this run have expired and are no longer available.
Loading