Skip to content

πŸ› fix(Hooks.php): add condition to check if the current screen is the… #45

πŸ› fix(Hooks.php): add condition to check if the current screen is the…

πŸ› fix(Hooks.php): add condition to check if the current screen is the… #45

Triggered via push November 30, 2023 02:58
Status Failure
Total duration 8m 0s
Artifacts 1
Fit to window
Zoom out
Zoom in

Annotations

4 errors, 6 warnings, and 2 notices
[e2e_tests] β€Ί myOrders.spec.ts:50:9 β€Ί My orders functionality test β€Ί customer can order again @lite: 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
[e2e_tests] β€Ί myOrders.spec.ts:50:9 β€Ί My orders functionality test β€Ί customer can order again @lite: 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
[e2e_tests] β€Ί vendorSettings.spec.ts:79:9 β€Ί Vendor settings test β€Ί vendor can set catalog settings @lite: tests/pw/pages/basePage.ts#L876
2) [e2e_tests] β€Ί vendorSettings.spec.ts:79:9 β€Ί Vendor settings test β€Ί vendor can set catalog settings @lite Error: locator.check: Clicking the checkbox did not change its state =========================== logs =========================== waiting for locator('input#catalog_mode_hide_product_price') locator resolved to <input value="on" type="checkbox" id="catalog_mode_hide…/> 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 VendorSettingsPage.checkLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:876:23) at VendorSettingsPage.check (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:677:20) at VendorSettingsPage.catalogModeSettings (/home/runner/work/dokan/dokan/tests/pw/pages/vendorSettingsPage.ts:347:24) at VendorSettingsPage.setStoreSettings (/home/runner/work/dokan/dokan/tests/pw/pages/vendorSettingsPage.ts:197:17) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/vendorSettings.spec.ts:81:9
e2e_api tests
Process completed with exit code 1.
Slow Test: tests/pw/[api_tests] β€Ί products.spec.ts#L1
tests/pw/[api_tests] β€Ί products.spec.ts took 6.2s
Slow Test: tests/pw/[api_tests] β€Ί stores.spec.ts#L1
tests/pw/[api_tests] β€Ί stores.spec.ts took 3.4s
Slow Test: tests/pw/[api_tests] β€Ί orders.spec.ts#L1
tests/pw/[api_tests] β€Ί orders.spec.ts took 3.2s
Slow Test: tests/pw/[e2e_tests] β€Ί products.spec.ts#L1
tests/pw/[e2e_tests] β€Ί products.spec.ts took 35.4s
Slow Test: tests/pw/[e2e_tests] β€Ί myOrders.spec.ts#L1
tests/pw/[e2e_tests] β€Ί myOrders.spec.ts took 29.3s
Slow Test: tests/pw/[e2e_tests] β€Ί customer.spec.ts#L1
tests/pw/[e2e_tests] β€Ί customer.spec.ts took 23.7s
🎭 Playwright Run Summary
2 skipped 132 passed (19.3s)
🎭 Playwright Run Summary
1 failed [e2e_tests] β€Ί myOrders.spec.ts:50:9 β€Ί My orders functionality test β€Ί customer can order again @lite 1 flaky [e2e_tests] β€Ί vendorSettings.spec.ts:79:9 β€Ί Vendor settings test β€Ί vendor can set catalog settings @lite 1 skipped 156 passed (4.3m)

Artifacts

Produced during runtime
Name Size
test-artifact Expired
5.99 MB