Skip to content

Merge branch 'testlite' into e2e-pw #49

Merge branch 'testlite' into e2e-pw

Merge branch 'testlite' into e2e-pw #49

Triggered via push February 18, 2024 17:03
Status Failure
Total duration 21m 43s
Artifacts 1

all-tests.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 5 warnings, and 2 notices
[e2e_tests] › products.spec.ts:63:9 › Product functionality test › admin can add vendor subscription @pro @a: tests/pw/pages/basePage.ts#L238
1) [e2e_tests] › products.spec.ts:63:9 › Product functionality test › admin can add vendor subscription @Pro @A TimeoutError: page.waitForResponse: Timeout 30000ms exceeded while waiting for event "response" at ../../pages/basePage.ts:238 236 | // click & wait for response 237 | async clickAndWaitForResponseAndLoadState(subUrl: string, selector: string, code = 200): Promise<Response> { > 238 | const [, response] = await Promise.all([this.page.waitForLoadState('networkidle'), this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.page.locator(selector).click()]); | ^ 239 | expect(response.status()).toBe(code); 240 | return response; 241 | } at ProductsPage.clickAndWaitForResponseAndLoadState (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:238:102) at ProductsPage.addDokanSubscription (/home/runner/work/dokan/dokan/tests/pw/pages/productsPage.ts:253:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/products.spec.ts:64:9
[e2e_tests] › products.spec.ts:63:9 › Product functionality test › admin can add vendor subscription @pro @a: tests/pw/tests/e2e/products.spec.ts#L1
1) [e2e_tests] › products.spec.ts:63:9 › Product functionality test › admin can add vendor subscription @Pro @A Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 45000ms exceeded.
[e2e_tests] › products.spec.ts:63:9 › Product functionality test › admin can add vendor subscription @pro @a: tests/pw/pages/basePage.ts#L238
1) [e2e_tests] › products.spec.ts:63:9 › Product functionality test › admin can add vendor subscription @Pro @A Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TimeoutError: page.waitForResponse: Timeout 30000ms exceeded while waiting for event "response" at ../../pages/basePage.ts:238 236 | // click & wait for response 237 | async clickAndWaitForResponseAndLoadState(subUrl: string, selector: string, code = 200): Promise<Response> { > 238 | const [, response] = await Promise.all([this.page.waitForLoadState('networkidle'), this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.page.locator(selector).click()]); | ^ 239 | expect(response.status()).toBe(code); 240 | return response; 241 | } at ProductsPage.clickAndWaitForResponseAndLoadState (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:238:102) at ProductsPage.addDokanSubscription (/home/runner/work/dokan/dokan/tests/pw/pages/productsPage.ts:253:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/products.spec.ts:64:9
[e2e_tests] › myOrders.spec.ts:51:9 › My orders functionality test › customer can order again @lite @c: tests/pw/pages/basePage.ts#L213
2) [e2e_tests] › myOrders.spec.ts:51:9 › My orders functionality test › customer can order again @lite @c TimeoutError: page.waitForURL: Timeout 30000ms exceeded. =========================== logs =========================== waiting for navigation until "networkidle" navigated to "http://localhost:9999/cart/" ============================================================ at ../../pages/basePage.ts:213 211 | async clickAndWaitForUrl(url: string | RegExp, selector: string): Promise<void> { 212 | await Promise.all([ > 213 | this.page.waitForURL(url, { waitUntil: 'networkidle' }), | ^ 214 | // this.page.waitForURL(url, { waitUntil: 'domcontentloaded' }), 215 | this.page.locator(selector).click(), 216 | ]); at MyOrdersPage.clickAndWaitForUrl (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:213:23) 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:74:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/myOrders.spec.ts:53:9
[e2e_tests] › productAdvertising.spec.ts:74:9 › Product Advertising test › vendor can buy product advertising @pro @v: tests/pw/tests/e2e/productAdvertising.spec.ts#L1
3) [e2e_tests] › productAdvertising.spec.ts:74:9 › Product Advertising test › vendor can buy product advertising @Pro @v Test timeout of 45000ms exceeded.
[e2e_tests] › productAdvertising.spec.ts:74:9 › Product Advertising test › vendor can buy product advertising @pro @v: tests/pw/pages/basePage.ts#L238
3) [e2e_tests] › productAdvertising.spec.ts:74:9 › Product Advertising test › vendor can buy product advertising @Pro @v Error: page.waitForResponse: Target page, context or browser has been closed at ../../pages/basePage.ts:238 236 | // click & wait for response 237 | async clickAndWaitForResponseAndLoadState(subUrl: string, selector: string, code = 200): Promise<Response> { > 238 | const [, response] = await Promise.all([this.page.waitForLoadState('networkidle'), this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.page.locator(selector).click()]); | ^ 239 | expect(response.status()).toBe(code); 240 | return response; 241 | } at CustomerPage.clickAndWaitForResponseAndLoadState (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:238:102) at CustomerPage.paymentOrder (/home/runner/work/dokan/dokan/tests/pw/pages/customerPage.ts:365:20) at VendorPage.buyProductAdvertising (/home/runner/work/dokan/dokan/tests/pw/pages/vendorPage.ts:326:25) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/productAdvertising.spec.ts:77:25
[e2e_tests] › stores.spec.ts:41:9 › Stores test › admin can add vendor @lite @a: tests/pw/pages/basePage.ts#L1156
4) [e2e_tests] › stores.spec.ts:41:9 › Stores test › admin can add vendor @lite @A ─────────────── TimeoutError: locator.waitFor: Timeout 30000ms exceeded. Call log: - waiting for locator('#street-1') to be visible at ../../pages/basePage.ts:1156 1154 | async waitForVisibleLocator(selector: string): Promise<void> { 1155 | const locator = this.page.locator(selector); > 1156 | await locator.waitFor({ state: 'visible' }); | ^ 1157 | } 1158 | 1159 | /** at StoresPage.waitForVisibleLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1156:23) at StoresPage.addVendor (/home/runner/work/dokan/dokan/tests/pw/pages/storesPage.ts:110:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/stores.spec.ts:42:9
[e2e_tests] › stores.spec.ts:63:9 › Stores test › admin can view vendor products @lite @a: tests/pw/pages/basePage.ts#L206
5) [e2e_tests] › stores.spec.ts:63:9 › Stores test › admin can view vendor products @lite @A ───── TimeoutError: locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('//td//a[contains(text(), \'vendor1store\')]/../..//span[@Class="products"]//a') - locator resolved to <a href="http://localhost:9999/wp-admin/edit.php?po…>Products</a> - attempting click action - waiting for element to be visible, enabled and stable - element is not stable - waiting... - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is outside of the viewport - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is outside of the viewport - retrying click action, attempt #2 - waiting 20ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is outside of the viewport - retrying click action, attempt #3 - waiting 100ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is outside of the viewport - retrying click action, attempt #4 - waiting 100ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is outside of the viewport - retrying click action, attempt #5 - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is outside of the viewport - retrying click action, attempt #6 - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is outside of the viewport - retrying click action, attempt #7 - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is outside of the viewport - retrying click action, attempt #8 - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is outside of the viewport - retrying click action, attempt #9 - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is outside of the viewport - retrying click action, attempt #10 - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is outside of the viewport - retrying click action, attempt #11 - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - element is outside of the viewport - retrying click action, attempt #12 - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - elem
[e2e_tests] › vendorVerifications.spec.ts:31:9 › Verifications test › vendor can send id verification request @pro @v: tests/pw/pages/basePage.ts#L896
6) [e2e_tests] › vendorVerifications.spec.ts:31:9 › Verifications test › vendor can send id verification request @Pro @v TimeoutError: locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('#dokan_v_id_click') - locator resolved to <button id="dokan_v_id_click" class="dokan-btn dokan-btn…>Start Verification</button> - attempting click action - waiting for element to be visible, enabled and stable - element is not visible - waiting... at ../../pages/basePage.ts:896 894 | async clickLocator(selector: string): Promise<void> { 895 | const locator = this.page.locator(selector); > 896 | await locator.click(); | ^ 897 | } 898 | 899 | // get locator count at vendorVerificationsPage.clickLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:896:23) at vendorVerificationsPage.click (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:170:20) at vendorVerificationsPage.sendIdVerificationRequest (/home/runner/work/dokan/dokan/tests/pw/pages/vendorVerificationsPage.ts:243:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/vendorVerifications.spec.ts:32:9
[e2e_tests] › vendorVerifications.spec.ts:39:9 › Verifications test › vendor can send company verification request @pro @v: tests/pw/pages/basePage.ts#L896
7) [e2e_tests] › vendorVerifications.spec.ts:39:9 › Verifications test › vendor can send company verification request @Pro @v TimeoutError: locator.click: Timeout 30000ms exceeded. Call log: - waiting for locator('xpath=(//h2[contains(text(),"Media list")]/..//ul//li)[1]') - locator resolved to <li tabindex="0" role="checkbox" aria-checked="true"…>…</li> - attempting click action - waiting for element to be visible, enabled and stable - element is not visible - waiting... - element was detached from the DOM, retrying - locator resolved to <li tabindex="0" data-id="443" role="checkbox" aria-…>…</li> - attempting click action - waiting for element to be visible, enabled and stable - element is not visible - waiting... at ../../pages/basePage.ts:896 894 | async clickLocator(selector: string): Promise<void> { 895 | const locator = this.page.locator(selector); > 896 | await locator.click(); | ^ 897 | } 898 | 899 | // get locator count at vendorVerificationsPage.clickLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:896:23) at vendorVerificationsPage.click (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:170:20) at vendorVerificationsPage.uploadMedia (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1534:45) at vendorVerificationsPage.sendCompanyVerificationRequest (/home/runner/work/dokan/dokan/tests/pw/pages/vendorVerificationsPage.ts:321:9) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/vendorVerifications.spec.ts:40:9
e2e_api tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3, actions/github-script@v6, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Slow Test: tests/pw/[api_tests] › products.spec.ts#L1
tests/pw/[api_tests] › products.spec.ts took 27.1s
Slow Test: tests/pw/[api_tests] › stores.spec.ts#L1
tests/pw/[api_tests] › stores.spec.ts took 18.0s
Slow Test: tests/pw/[e2e_tests] › products.spec.ts#L1
tests/pw/[e2e_tests] › products.spec.ts took 7.1m
Slow Test: tests/pw/[e2e_tests] › storeSupports.spec.ts#L1
tests/pw/[e2e_tests] › storeSupports.spec.ts took 3.5m
🎭 Playwright Run Summary
28 skipped 261 passed (1.9m)
🎭 Playwright Run Summary
1 failed [e2e_tests] › products.spec.ts:63:9 › Product functionality test › admin can add vendor subscription @Pro @A 6 flaky [e2e_tests] › myOrders.spec.ts:51:9 › My orders functionality test › customer can order again @lite @c [e2e_tests] › productAdvertising.spec.ts:74:9 › Product Advertising test › vendor can buy product advertising @Pro @v [e2e_tests] › stores.spec.ts:41:9 › Stores test › admin can add vendor @lite @A ──────────────── [e2e_tests] › stores.spec.ts:63:9 › Stores test › admin can view vendor products @lite @A ────── [e2e_tests] › vendorVerifications.spec.ts:31:9 › Verifications test › vendor can send id verification request @Pro @v [e2e_tests] › vendorVerifications.spec.ts:39:9 › Verifications test › vendor can send company verification request @Pro @v 122 skipped 500 passed (15.7m)

Artifacts

Produced during runtime
Name Size
test-artifact Expired
68 MB