E2E_API Tests #309
Annotations
9 errors, 4 warnings, and 2 notices
[e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite @a:
tests/pw/pages/basePage.ts#L896
1) [e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite @A
TimeoutError: locator.click: Timeout 30000ms exceeded.
Call log:
- waiting for locator('//label[@for=\'dokan_selling[tax_fee_recipient][seller]\']')
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 SettingsPage.clickLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:896:23)
at SettingsPage.click (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:170:20)
at SettingsPage.setDokanSellingSettings (/home/runner/work/dokan/dokan/tests/pw/pages/settingsPage.ts:95:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:40:9
|
[e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite @a:
tests/pw/pages/basePage.ts#L896
1) [e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite @A
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 30000ms exceeded.
Call log:
- waiting for locator('//label[@for=\'dokan_selling[tax_fee_recipient][seller]\']')
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 SettingsPage.clickLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:896:23)
at SettingsPage.click (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:170:20)
at SettingsPage.setDokanSellingSettings (/home/runner/work/dokan/dokan/tests/pw/pages/settingsPage.ts:95:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:40:9
|
[e2e_tests] › settings.spec.ts:55:9 › Settings test › admin can set dokan appearance settings @lite @a:
tests/pw/pages/basePage.ts#L896
2) [e2e_tests] › settings.spec.ts:55:9 › Settings test › admin can set dokan appearance settings @lite @A
TimeoutError: locator.click: Timeout 30000ms exceeded.
Call log:
- waiting for locator('//div[@Class="map_api_source dokan-settings-field-type-radio"] //label[@for="dokan_appearance[map_api_source][google_maps]"]')
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 SettingsPage.clickLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:896:23)
at SettingsPage.click (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:170:20)
at SettingsPage.setDokanAppearanceSettings (/home/runner/work/dokan/dokan/tests/pw/pages/settingsPage.ts:229:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:56:9
|
[e2e_tests] › settings.spec.ts:55:9 › Settings test › admin can set dokan appearance settings @lite @a:
tests/pw/pages/basePage.ts#L896
2) [e2e_tests] › settings.spec.ts:55:9 › Settings test › admin can set dokan appearance settings @lite @A
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 30000ms exceeded.
Call log:
- waiting for locator('//div[@Class="map_api_source dokan-settings-field-type-radio"] //label[@for="dokan_appearance[map_api_source][google_maps]"]')
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 SettingsPage.clickLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:896:23)
at SettingsPage.click (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:170:20)
at SettingsPage.setDokanAppearanceSettings (/home/runner/work/dokan/dokan/tests/pw/pages/settingsPage.ts:229:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/settings.spec.ts:56:9
|
[e2e_tests] › singleStore.spec.ts:21:9 › Single store functionality test › dokan single store page is rendering properly @lite @exp @c:
tests/pw/pages/basePage.ts#L1334
3) [e2e_tests] › singleStore.spec.ts:21:9 › Single store functionality test › dokan single store page is rendering properly @lite @exp @c
Error: Timed out 15000ms waiting for expect(locator).toBeVisible()
Locator: locator('.fa-twitter-square')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 15000ms
- waiting for locator('.fa-twitter-square')
at ../../pages/basePage.ts:1334
1332 | // assert element to be visible
1333 | async toBeVisible(selector: string) {
> 1334 | await expect(this.page.locator(selector)).toBeVisible();
| ^
1335 | }
1336 |
1337 | // assert checkbox to be checked
at SingleStorePage.toBeVisible (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1334:51)
at SingleStorePage.multipleElementVisible (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1308:24)
at SingleStorePage.singleStoreRenderProperly (/home/runner/work/dokan/dokan/tests/pw/pages/singleStorePage.ts:53:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/singleStore.spec.ts:22:9
|
[e2e_tests] › singleStore.spec.ts:21:9 › Single store functionality test › dokan single store page is rendering properly @lite @exp @c:
tests/pw/pages/basePage.ts#L1334
3) [e2e_tests] › singleStore.spec.ts:21:9 › Single store functionality test › dokan single store page is rendering properly @lite @exp @c
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 15000ms waiting for expect(locator).toBeVisible()
Locator: locator('.fa-twitter-square')
Expected: visible
Received: hidden
Call log:
- expect.toBeVisible with timeout 15000ms
- waiting for locator('.fa-twitter-square')
at ../../pages/basePage.ts:1334
1332 | // assert element to be visible
1333 | async toBeVisible(selector: string) {
> 1334 | await expect(this.page.locator(selector)).toBeVisible();
| ^
1335 | }
1336 |
1337 | // assert checkbox to be checked
at SingleStorePage.toBeVisible (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1334:51)
at SingleStorePage.multipleElementVisible (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1308:24)
at SingleStorePage.singleStoreRenderProperly (/home/runner/work/dokan/dokan/tests/pw/pages/singleStorePage.ts:53:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/singleStore.spec.ts:22:9
|
[e2e_tests] › myOrders.spec.ts:46:9 › My orders functionality test › customer can cancel order @lite @c:
tests/pw/pages/basePage.ts#L1344
4) [e2e_tests] › myOrders.spec.ts:46:9 › My orders functionality test › customer can cancel order @lite @c
Error: Timed out 15000ms waiting for expect(locator).toContainText(expected)
Locator: locator('.woocommerce-info')
Expected string: "Your order was cancelled."
Received string: ""
Call log:
- expect.toContainText with timeout 15000ms
- waiting for locator('.woocommerce-info')
at ../../pages/basePage.ts:1344
1342 | // assert element to contain text
1343 | async toContainText(selector: string, text: string | RegExp) {
> 1344 | await expect(this.page.locator(selector)).toContainText(text);
| ^
1345 | }
1346 |
1347 | // assert element to have count
at MyOrdersPage.toContainText (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1344:51)
at MyOrdersPage.cancelPendingOrder (/home/runner/work/dokan/dokan/tests/pw/pages/myOrdersPage.ts:66:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/myOrders.spec.ts:48:9
|
[e2e_tests] › orders.spec.ts:66:9 › Order functionality test › vendor can update order status on order details @lite @v:
tests/pw/pages/ordersPage.ts#L177
5) [e2e_tests] › orders.spec.ts:66:9 › Order functionality test › vendor can update order status on order details @lite @v
Error: expect(received).toBe(expected) // Object.is equality
Expected: "completed"
Received: "on-hold"
at ../../pages/ordersPage.ts:177
175 | await this.clickAndAcceptAndWaitForResponse(data.subUrls.ajax, ordersVendor.status.updateOrderStatus);
176 | const currentStatus = await this.getElementText(ordersVendor.status.currentOrderStatus);
> 177 | expect(currentStatus?.toLowerCase()).toBe(status.split('-').pop());
| ^
178 | // expect(currentOrderStatus?.toLowerCase()).toMatch((orderStatus.replace(/(^wc)|(\W)/g, '')).toLowerCase());
179 | }
180 |
at OrdersPage.updateOrderStatus (/home/runner/work/dokan/dokan/tests/pw/pages/ordersPage.ts:177:46)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/orders.spec.ts:68: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 16.6s
|
Slow Test:
tests/pw/[api_tests] › stores.spec.ts#L1
tests/pw/[api_tests] › stores.spec.ts took 9.3s
|
Slow Test:
tests/pw/[e2e_tests] › settings.spec.ts#L1
tests/pw/[e2e_tests] › settings.spec.ts took 2.6m
|
Slow Test:
tests/pw/[e2e_tests] › products.spec.ts#L1
tests/pw/[e2e_tests] › products.spec.ts took 1.8m
|
🎭 Playwright Run Summary
10 skipped
128 passed (45.0s)
|
🎭 Playwright Run Summary
3 failed
[e2e_tests] › settings.spec.ts:39:9 › Settings test › admin can set dokan selling settings @lite @A
[e2e_tests] › settings.spec.ts:55:9 › Settings test › admin can set dokan appearance settings @lite @A
[e2e_tests] › singleStore.spec.ts:21:9 › Single store functionality test › dokan single store page is rendering properly @lite @exp @c
2 flaky
[e2e_tests] › myOrders.spec.ts:46:9 › My orders functionality test › customer can cancel order @lite @c
[e2e_tests] › orders.spec.ts:66:9 › Order functionality test › vendor can update order status on order details @lite @v
53 skipped
158 passed (5.0m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-artifact
Expired
|
31.1 MB |
|