Merge branch 'testlite' into e2e-pw #40
Annotations
7 errors, 5 warnings, and 2 notices
[e2e_tests] › announcements.spec.ts:45:9 › Announcements test (admin) › admin can trash announcement @pro @a:
tests/pw/pages/basePage.ts#L434
1) [e2e_tests] › announcements.spec.ts:45:9 › Announcements test (admin) › admin can trash announcement @Pro @A
TimeoutError: locator.hover: Timeout 25000ms exceeded.
Call log:
- waiting for locator('//strong[contains(text(),\'test announcement_lmeKlbsYyy\')]/../..')
at ../../pages/basePage.ts:434
432 | // hover on selector
433 | async hover(selector: string): Promise<void> {
> 434 | await this.page.locator(selector).hover();
| ^
435 | // await this.page.hover(selector);
436 | await this.wait(0.2);
437 | }
at AnnouncementsPage.hover (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:434:43)
at AnnouncementsPage.updateAnnouncement (/home/runner/work/dokan/dokan/tests/pw/pages/announcementsPage.ts:84:28)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/announcements.spec.ts:47:9
|
[e2e_tests] › customer.spec.ts:61:9 › Customer functionality test › customer can buy product @lite @c:
tests/pw/pages/basePage.ts#L98
2) [e2e_tests] › customer.spec.ts:61:9 › Customer functionality test › customer can buy product @lite @c
Error: expect(received).toMatch(expected)
Expected substring: "checkout"
Received string: "http://localhost:9999/cart/"
at ../../pages/basePage.ts:98
96 | // await this.page.goto(url, { waitUntil: 'domcontentloaded' }); //don't work for backend
97 | const currentUrl = this.getCurrentUrl();
> 98 | expect(currentUrl).toMatch(subPath);
| ^
99 | }
100 | }
101 |
at CustomerPage.goIfNotThere (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:98:32)
at CustomerPage.goToCheckout (/home/runner/work/dokan/dokan/tests/pw/pages/customerPage.ts:29:9)
at CustomerPage.placeOrder (/home/runner/work/dokan/dokan/tests/pw/pages/customerPage.ts:294:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/customer.spec.ts:63:9
|
[e2e_tests] › customer.spec.ts:66:9 › Customer functionality test › customer can buy multi-vendor products @lite @c:
tests/pw/pages/basePage.ts#L1038
3) [e2e_tests] › customer.spec.ts:66:9 › Customer functionality test › customer can buy multi-vendor products @lite @c
Error: locator.isVisible: Error: strict mode violation: locator('.wc-pao-addon-select') resolved to 3 elements:
1) <select id="addon-15-0" name="addon-15-0" data-restricti…>…</select> aka getByLabel('Test Add-on Title_NA4ABZxFrx')
2) <select id="addon-15-1" name="addon-15-1" data-restricti…>…</select> aka getByLabel('Add-on Title_', { exact: true })
3) <select id="addon-15-2" name="addon-15-2" data-restricti…>…</select> aka getByLabel('Test Add-on Title_ztn-qRxGl1')
Call log:
- checking visibility of locator('.wc-pao-addon-select')
at ../../pages/basePage.ts:1038
1036 | async isVisibleLocator(selector: string): Promise<boolean> {
1037 | const locator = this.page.locator(selector);
> 1038 | return await locator.isVisible();
| ^
1039 | }
1040 |
1041 | // get last matching locator
at CustomerPage.isVisibleLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1038:30)
at CustomerPage.isVisible (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:387:27)
at CustomerPage.addProductToCartFromSingleProductPage (/home/runner/work/dokan/dokan/tests/pw/pages/customerPage.ts:217:43)
at CustomerPage.addProductToCart (/home/runner/work/dokan/dokan/tests/pw/pages/customerPage.ts:237:17)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/customer.spec.ts:67:9
|
[e2e_tests] › productAdvertising.spec.ts:74:9 › Product Advertising test › vendor can buy product advertising @pro @v:
tests/pw/pages/basePage.ts#L238
4) [e2e_tests] › productAdvertising.spec.ts:74:9 › Product Advertising test › vendor can buy product advertising @Pro @v
TimeoutError: page.waitForResponse: Timeout 25000ms 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 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:320:25)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/productAdvertising.spec.ts:77:25
|
[e2e_tests] › products.spec.ts:63:9 › Product functionality test › admin can add vendor subscription @pro @a:
tests/pw/pages/basePage.ts#L238
5) [e2e_tests] › products.spec.ts:63:9 › Product functionality test › admin can add vendor subscription @Pro @A
TimeoutError: page.waitForResponse: Timeout 25000ms 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:249:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/products.spec.ts:64:9
|
[e2e_tests] › requestForQuoteRules.spec.ts:41:9 › Request for quotation Rules test › admin can edit quote rule @pro @a:
tests/pw/pages/basePage.ts#L873
6) [e2e_tests] › requestForQuoteRules.spec.ts:41:9 › Request for quotation Rules test › admin can edit quote rule @Pro @A
Error: locator.check: Clicking the checkbox did not change its state
Call log:
- waiting for locator('#customer')
- locator resolved to <input id="customer" class="parent" type="checkbox" val…/>
- attempting click action
- waiting for element to be visible, enabled and stable
- 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:873
871 | async checkLocator(selector: string): Promise<void> {
872 | const locator = this.page.locator(selector);
> 873 | await locator.check();
| ^
874 | // await locator.check({ force: true }); // forced is used to avoid "locator.check: Clicking the checkbox did not change its state" error
875 | }
876 |
at RequestForQuotationsPage.checkLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:873:23)
at RequestForQuotationsPage.check (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:674:20)
at RequestForQuotationsPage.updateQuoteRuleFields (/home/runner/work/dokan/dokan/tests/pw/pages/requestForQuotationsPage.ts:47:20)
at RequestForQuotationsPage.editQuoteRule (/home/runner/work/dokan/dokan/tests/pw/pages/requestForQuotationsPage.ts:95:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/requestForQuoteRules.spec.ts:42:9
|
[e2e_tests] › vendorVerifications.spec.ts:35:9 › Verifications test › vendor can send address verification request @pro @v:
tests/pw/pages/basePage.ts#L880
7) [e2e_tests] › vendorVerifications.spec.ts:35:9 › Verifications test › vendor can send address verification request @Pro @v
TimeoutError: locator.click: Timeout 25000ms exceeded.
Call log:
- waiting for locator('#dokan_v_address_click')
- locator resolved to <button id="dokan_v_address_click" class="dokan-btn doka…>Start Verification</button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is not visible - waiting...
at ../../pages/basePage.ts:880
878 | async clickLocator(selector: string): Promise<void> {
879 | const locator = this.page.locator(selector);
> 880 | await locator.click();
| ^
881 | }
882 |
883 | // get locator count
at vendorVerificationsPage.clickLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:880:23)
at vendorVerificationsPage.click (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:170:20)
at vendorVerificationsPage.sendAddressVerificationRequest (/home/runner/work/dokan/dokan/tests/pw/pages/vendorVerificationsPage.ts:271:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/vendorVerifications.spec.ts:36: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.4s
|
Slow Test:
tests/pw/[api_tests] › stores.spec.ts#L1
tests/pw/[api_tests] › stores.spec.ts took 18.1s
|
Slow Test:
tests/pw/[e2e_tests] › products.spec.ts#L1
tests/pw/[e2e_tests] › products.spec.ts took 6.9m
|
Slow Test:
tests/pw/[e2e_tests] › storeSupports.spec.ts#L1
tests/pw/[e2e_tests] › storeSupports.spec.ts took 3.7m
|
🎭 Playwright Run Summary
28 skipped
260 passed (1.8m)
|
🎭 Playwright Run Summary
7 flaky
[e2e_tests] › announcements.spec.ts:45:9 › Announcements test (admin) › admin can trash announcement @Pro @A
[e2e_tests] › customer.spec.ts:61:9 › Customer functionality test › customer can buy product @lite @c
[e2e_tests] › customer.spec.ts:66:9 › Customer functionality test › customer can buy multi-vendor products @lite @c
[e2e_tests] › productAdvertising.spec.ts:74:9 › Product Advertising test › vendor can buy product advertising @Pro @v
[e2e_tests] › products.spec.ts:63:9 › Product functionality test › admin can add vendor subscription @Pro @A
[e2e_tests] › requestForQuoteRules.spec.ts:41:9 › Request for quotation Rules test › admin can edit quote rule @Pro @A
[e2e_tests] › vendorVerifications.spec.ts:35:9 › Verifications test › vendor can send address verification request @Pro @v
152 skipped
470 passed (14.9m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-artifact
Expired
|
54.8 MB |
|