Merge branch 'testlite' into e2e-pw #33
Annotations
17 errors, 5 warnings, and 2 notices
π§ͺ Running the api tests:
tests/pw/tests/api/announcements.spec.ts#L34
1) [api_tests] βΊ announcements.spec.ts:30:9 βΊ announcements api test βΊ get all announcements @Pro
Error: Result does not match schema: Invalid date
Details: {
"issues": [
{
"code": "invalid_date",
"path": [
7,
"date_gmt"
],
"message": "Invalid date"
}
],
"name": "ZodError"
}
32 | expect(response.ok()).toBeTruthy();
33 | expect(responseBody).toBeTruthy();
> 34 | expect(responseBody).toMatchSchema(schemas.announcementsSchema.announcementsSchema);
| ^
35 | });
36 |
37 | test('get single announcement @Pro', async () => {
at /home/runner/work/dokan/dokan/tests/pw/tests/api/announcements.spec.ts:34:30
|
π§ͺ Running the api tests:
tests/pw/tests/api/announcements.spec.ts#L34
1) [api_tests] βΊ announcements.spec.ts:30:9 βΊ announcements api test βΊ get all announcements @Pro
Retry #1 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Error: Result does not match schema: Invalid date
Details: {
"issues": [
{
"code": "invalid_date",
"path": [
8,
"date_gmt"
],
"message": "Invalid date"
}
],
"name": "ZodError"
}
32 | expect(response.ok()).toBeTruthy();
33 | expect(responseBody).toBeTruthy();
> 34 | expect(responseBody).toMatchSchema(schemas.announcementsSchema.announcementsSchema);
| ^
35 | });
36 |
37 | test('get single announcement @Pro', async () => {
at /home/runner/work/dokan/dokan/tests/pw/tests/api/announcements.spec.ts:34:30
|
π§ͺ Running the api tests:
tests/pw/tests/api/refunds.spec.ts#L54
2) [api_tests] βΊ refunds.spec.ts:53:9 βΊ refunds api test βΊ approve a refund @Pro βββββββββββββββββ
TypeError: _dbUtils.dbUtils.createRefund is not a function
52 |
53 | test('approve a refund @Pro', async () => {
> 54 | const [, refundId] = await dbUtils.createRefund(orderResponseBody);
| ^
55 | const [response, responseBody] = await apiUtils.put(endPoints.approveRefund(refundId));
56 | expect(response.ok()).toBeTruthy();
57 | expect(responseBody).toBeTruthy();
at /home/runner/work/dokan/dokan/tests/pw/tests/api/refunds.spec.ts:54:44
|
π§ͺ Running the api tests:
tests/pw/tests/api/refunds.spec.ts#L54
2) [api_tests] βΊ refunds.spec.ts:53:9 βΊ refunds api test βΊ approve a refund @Pro βββββββββββββββββ
Retry #1 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
TypeError: _dbUtils.dbUtils.createRefund is not a function
52 |
53 | test('approve a refund @Pro', async () => {
> 54 | const [, refundId] = await dbUtils.createRefund(orderResponseBody);
| ^
55 | const [response, responseBody] = await apiUtils.put(endPoints.approveRefund(refundId));
56 | expect(response.ok()).toBeTruthy();
57 | expect(responseBody).toBeTruthy();
at /home/runner/work/dokan/dokan/tests/pw/tests/api/refunds.spec.ts:54:44
|
π§ͺ Running the api tests:
tests/pw/tests/api/refunds.spec.ts#L61
3) [api_tests] βΊ refunds.spec.ts:60:9 βΊ refunds api test βΊ update batch refunds @Pro βββββββββββββ
TypeError: _dbUtils.dbUtils.createRefund is not a function
59 |
60 | test('update batch refunds @Pro', async () => {
> 61 | await dbUtils.createRefund(orderResponseBody);
| ^
62 | const allPendingRefundsIds = (await apiUtils.getAllRefunds('pending', payloads.vendorAuth)).map((a: { id: unknown }) => a.id);
63 | const [response, responseBody] = await apiUtils.put(endPoints.updateBatchRefunds, { data: { cancelled: allPendingRefundsIds } });
64 | expect(response.ok()).toBeTruthy();
at /home/runner/work/dokan/dokan/tests/pw/tests/api/refunds.spec.ts:61:23
|
π§ͺ Running the api tests:
tests/pw/tests/api/refunds.spec.ts#L61
3) [api_tests] βΊ refunds.spec.ts:60:9 βΊ refunds api test βΊ update batch refunds @Pro βββββββββββββ
Retry #1 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
TypeError: _dbUtils.dbUtils.createRefund is not a function
59 |
60 | test('update batch refunds @Pro', async () => {
> 61 | await dbUtils.createRefund(orderResponseBody);
| ^
62 | const allPendingRefundsIds = (await apiUtils.getAllRefunds('pending', payloads.vendorAuth)).map((a: { id: unknown }) => a.id);
63 | const [response, responseBody] = await apiUtils.put(endPoints.updateBatchRefunds, { data: { cancelled: allPendingRefundsIds } });
64 | expect(response.ok()).toBeTruthy();
at /home/runner/work/dokan/dokan/tests/pw/tests/api/refunds.spec.ts:61:23
|
π§ͺ Running the api tests
Process completed with exit code 1.
|
π§ͺ Running the e2e tests:
tests/pw/pages/basePage.ts#L98
1) [e2e_tests] βΊ customer.spec.ts:80: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:82:9
|
π§ͺ Running the e2e tests:
tests/pw/pages/basePage.ts#L98
1) [e2e_tests] βΊ customer.spec.ts:80:9 βΊ Customer functionality test βΊ customer can buy product @lite @c
Retry #1 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
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:82:9
|
π§ͺ Running the e2e tests:
tests/pw/pages/basePage.ts#L877
2) [e2e_tests] βΊ productAddons.spec.ts:38:9 βΊ Product addon functionality test βΊ vendor product addons menu page is rendering properly @Pro @exp @v
TimeoutError: locator.check: Timeout 30000ms exceeded.
Call log:
- waiting for locator('.wc-pao-addon-description-enable')
at ../../pages/basePage.ts:877
875 | async checkLocator(selector: string): Promise<void> {
876 | const locator = this.page.locator(selector);
> 877 | await locator.check({ force: true }); // forced is used to avoid "locator.check: Clicking the checkbox did not change its state" error
| ^
878 | }
879 |
880 | // click locator
at ProductAddonsPage.checkLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:877:23)
at ProductAddonsPage.check (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:678:20)
at ProductAddonsPage.vendorProductAddonsSettingsRenderProperly (/home/runner/work/dokan/dokan/tests/pw/pages/productAddonsPage.ts:33:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/productAddons.spec.ts:39:9
|
π§ͺ Running the e2e tests:
tests/pw/pages/basePage.ts#L877
2) [e2e_tests] βΊ productAddons.spec.ts:38:9 βΊ Product addon functionality test βΊ vendor product addons menu page is rendering properly @Pro @exp @v
Retry #1 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
TimeoutError: locator.check: Timeout 30000ms exceeded.
Call log:
- waiting for locator('.wc-pao-addon-description-enable')
at ../../pages/basePage.ts:877
875 | async checkLocator(selector: string): Promise<void> {
876 | const locator = this.page.locator(selector);
> 877 | await locator.check({ force: true }); // forced is used to avoid "locator.check: Clicking the checkbox did not change its state" error
| ^
878 | }
879 |
880 | // click locator
at ProductAddonsPage.checkLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:877:23)
at ProductAddonsPage.check (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:678:20)
at ProductAddonsPage.vendorProductAddonsSettingsRenderProperly (/home/runner/work/dokan/dokan/tests/pw/pages/productAddonsPage.ts:33:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/productAddons.spec.ts:39:9
|
π§ͺ Running the e2e tests:
tests/pw/pages/basePage.ts#L438
3) [e2e_tests] βΊ products.spec.ts:99:9 βΊ Product functionality test βΊ vendor can add product category @lite @v
Error: locator.hover: Error: strict mode violation: locator('//a[contains(text(),\'p1_v1 (simple)\')]/../..') resolved to 5 elements:
1) <td data-title="Name" class="column-primary">β¦</td> aka getByRole('cell', { name: 'p1_v1 (simple)' })
2) <article>β¦</article> aka locator('article').filter({ hasText: 'Robyn Kovacek on p1_v1 (' })
3) <article>β¦</article> aka locator('article').filter({ hasText: 'Antonio Koelpin on p1_v1 (' })
4) <article>β¦</article> aka locator('article').filter({ hasText: 'Patti Witting on p1_v1 (' })
5) <article>β¦</article> aka locator('article').filter({ hasText: 'Carole Herman-Windler on' })
Call log:
- waiting for locator('//a[contains(text(),\'p1_v1 (simple)\')]/../..')
at ../../pages/basePage.ts:438
436 | // hover on selector
437 | async hover(selector: string): Promise<void> {
> 438 | await this.page.locator(selector).hover();
| ^
439 | // await this.page.hover(selector);
440 | await this.wait(0.2);
441 | }
at ProductsPage.hover (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:438:43)
at ProductsPage.goToProductEdit (/home/runner/work/dokan/dokan/tests/pw/pages/productsPage.ts:454:20)
at ProductsPage.vendorAddProductCategory (/home/runner/work/dokan/dokan/tests/pw/pages/productsPage.ts:479:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/products.spec.ts:100:9
|
π§ͺ Running the e2e tests:
tests/pw/pages/basePage.ts#L438
3) [e2e_tests] βΊ products.spec.ts:99:9 βΊ Product functionality test βΊ vendor can add product category @lite @v
Retry #1 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Error: locator.hover: Error: strict mode violation: locator('//a[contains(text(),\'p1_v1 (simple)\')]/../..') resolved to 5 elements:
1) <td data-title="Name" class="column-primary">β¦</td> aka getByRole('cell', { name: 'p1_v1 (simple)' })
2) <article>β¦</article> aka locator('article').filter({ hasText: 'Robyn Kovacek on p1_v1 (' })
3) <article>β¦</article> aka locator('article').filter({ hasText: 'Antonio Koelpin on p1_v1 (' })
4) <article>β¦</article> aka locator('article').filter({ hasText: 'Patti Witting on p1_v1 (' })
5) <article>β¦</article> aka locator('article').filter({ hasText: 'Carole Herman-Windler on' })
Call log:
- waiting for locator('//a[contains(text(),\'p1_v1 (simple)\')]/../..')
at ../../pages/basePage.ts:438
436 | // hover on selector
437 | async hover(selector: string): Promise<void> {
> 438 | await this.page.locator(selector).hover();
| ^
439 | // await this.page.hover(selector);
440 | await this.wait(0.2);
441 | }
at ProductsPage.hover (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:438:43)
at ProductsPage.goToProductEdit (/home/runner/work/dokan/dokan/tests/pw/pages/productsPage.ts:454:20)
at ProductsPage.vendorAddProductCategory (/home/runner/work/dokan/dokan/tests/pw/pages/productsPage.ts:479:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/products.spec.ts:100:9
|
π§ͺ Running the e2e tests:
tests/pw/pages/basePage.ts#L640
4) [e2e_tests] βΊ products.spec.ts:163:9 βΊ Product functionality test βΊ vendor can add product wholesale options @Pro @v
TimeoutError: page.fill: Timeout 30000ms exceeded.
Call log:
- waiting for locator('#dokan-wholesale-price')
- locator resolved to <input value="" type="text" name="wholesale[price]" id=β¦/>
- elementHandle.fill("90")
- waiting for element to be visible, enabled and editable
- element is not visible - waiting...
at ../../pages/basePage.ts:640
638 | // fill in input field
639 | async fill(selector: string, text: string): Promise<void> {
> 640 | await this.page.fill(selector, text);
| ^
641 | }
642 |
643 | // fill if visible
at ProductsPage.fill (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:640:25)
at ProductsPage.clearAndType (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:618:20)
at ProductsPage.addProductWholesaleOptions (/home/runner/work/dokan/dokan/tests/pw/pages/productsPage.ts:607:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/products.spec.ts:164:9
|
π§ͺ Running the e2e tests:
tests/pw/pages/basePage.ts#L877
4) [e2e_tests] βΊ products.spec.ts:163:9 βΊ Product functionality test βΊ vendor can add product wholesale options @Pro @v
Retry #1 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Error: locator.check: Clicking the checkbox did not change its state
Call log:
- waiting for locator('#wholesale\\[enable_wholesale\\]')
- locator resolved to <input value="yes" type="checkbox" class="wholesaleChecβ¦/>
- 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:877
875 | async checkLocator(selector: string): Promise<void> {
876 | const locator = this.page.locator(selector);
> 877 | await locator.check({ force: true }); // forced is used to avoid "locator.check: Clicking the checkbox did not change its state" error
| ^
878 | }
879 |
880 | // click locator
at ProductsPage.checkLocator (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:877:23)
at ProductsPage.check (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:678:20)
at ProductsPage.addProductWholesaleOptions (/home/runner/work/dokan/dokan/tests/pw/pages/productsPage.ts:606:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/products.spec.ts:164:9
|
π§ͺ Running the e2e tests:
tests/pw/pages/reportsPage.ts#L67
5) [e2e_tests] βΊ reports.spec.ts:41:9 βΊ Reports test βΊ admin can search all logs @Pro @A βββββββββ
Error: expect(received).toBe(expected) // Object.is equality
Expected: 1
Received: 14
at ../../pages/reportsPage.ts:67
65 | await this.toBeVisible(selector.admin.dokan.reports.allLogs.orderIdCell(orderId));
66 | const count = (await this.getElementText(selector.admin.dokan.reports.allLogs.numberOfRowsFound))?.split(' ')[0];
> 67 | expect(Number(count)).toBe(1);
| ^
68 | // await this.clickAndWaitForResponseAndLoadState(data.subUrls.api.dokan.logs, selector.admin.dokan.reports.allLogs.filters.clear);
69 | }
70 |
at ReportsPage.searchAllLogs (/home/runner/work/dokan/dokan/tests/pw/pages/reportsPage.ts:67:31)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/reports.spec.ts:42:9
|
π§ͺ Running the e2e tests:
tests/pw/pages/reportsPage.ts#L67
5) [e2e_tests] βΊ reports.spec.ts:41:9 βΊ Reports test βΊ admin can search all logs @Pro @A βββββββββ
Retry #1 βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Error: expect(received).toBe(expected) // Object.is equality
Expected: 1
Received: 17
at ../../pages/reportsPage.ts:67
65 | await this.toBeVisible(selector.admin.dokan.reports.allLogs.orderIdCell(orderId));
66 | const count = (await this.getElementText(selector.admin.dokan.reports.allLogs.numberOfRowsFound))?.split(' ')[0];
> 67 | expect(Number(count)).toBe(1);
| ^
68 | // await this.clickAndWaitForResponseAndLoadState(data.subUrls.api.dokan.logs, selector.admin.dokan.reports.allLogs.filters.clear);
69 | }
70 |
at ReportsPage.searchAllLogs (/home/runner/work/dokan/dokan/tests/pw/pages/reportsPage.ts:67:31)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/reports.spec.ts:42:9
|
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/.
|
π§ͺ Running the api tests:
tests/pw/[api_tests] βΊ products.spec.ts#L1
tests/pw/[api_tests] βΊ products.spec.ts took 27.7s
|
π§ͺ Running the api tests:
tests/pw/[api_tests] βΊ supportTickets.spec.ts#L1
tests/pw/[api_tests] βΊ supportTickets.spec.ts took 19.5s
|
π§ͺ Running the e2e tests:
tests/pw/[e2e_tests] βΊ products.spec.ts#L1
tests/pw/[e2e_tests] βΊ products.spec.ts took 7.8m
|
π§ͺ Running the e2e tests:
tests/pw/[e2e_tests] βΊ storeSupports.spec.ts#L1
tests/pw/[e2e_tests] βΊ storeSupports.spec.ts took 3.1m
|
π§ͺ Running the api tests
3 failed
[api_tests] βΊ announcements.spec.ts:30:9 βΊ announcements api test βΊ get all announcements @Pro β
[api_tests] βΊ refunds.spec.ts:53:9 βΊ refunds api test βΊ approve a refund @Pro ββββββββββββββββββ
[api_tests] βΊ refunds.spec.ts:60:9 βΊ refunds api test βΊ update batch refunds @Pro ββββββββββββββ
28 skipped
257 passed (2.0m)
|
π§ͺ Running the e2e tests
6 failed
[e2e_tests] βΊ customer.spec.ts:80:9 βΊ Customer functionality test βΊ customer can buy product @lite @c
[e2e_tests] βΊ productAddons.spec.ts:38:9 βΊ Product addon functionality test βΊ vendor product addons menu page is rendering properly @Pro @exp @v
[e2e_tests] βΊ products.spec.ts:99:9 βΊ Product functionality test βΊ vendor can add product category @lite @v
[e2e_tests] βΊ products.spec.ts:163:9 βΊ Product functionality test βΊ vendor can add product wholesale options @Pro @v
[e2e_tests] βΊ reports.spec.ts:41:9 βΊ Reports test βΊ admin can search all logs @Pro @A ββββββββββ
[e2e_tests] βΊ reports.spec.ts:45:9 βΊ Reports test βΊ admin can export all logs @Pro @A ββββββββββ
16 flaky
[e2e_tests] βΊ announcements.spec.ts:45:9 βΊ Announcements test (admin) βΊ admin can trash announcement @Pro @A
[e2e_tests] βΊ coupons.spec.ts:43:9 βΊ Coupons test βΊ admin can add marketplace coupon @Pro @A βββ
[e2e_tests] βΊ coupons.spec.ts:80:9 βΊ Coupons test βΊ customer can buy product with coupon @Pro @c
[e2e_tests] βΊ customer.spec.ts:26:9 βΊ Customer user functionality test βΊ customer can register @lite @c
[e2e_tests] βΊ productAdvertising.spec.ts:74:9 βΊ Product Advertising test βΊ vendor can buy product advertising @Pro @v
[e2e_tests] βΊ productReviews.spec.ts:52:9 βΊ Product Reviews test βΊ vendor can approve product review @Pro @v
[e2e_tests] βΊ products.spec.ts:147:9 βΊ Product functionality test βΊ vendor can quick edit product @Pro @v
[e2e_tests] βΊ products.spec.ts:171:9 βΊ Product functionality test βΊ vendor can add product other options @lite @v
[e2e_tests] βΊ refunds.spec.ts:61:9 βΊ Refunds test βΊ admin can perform refund requests bulk actions @Pro @A
[e2e_tests] βΊ storeReviews.spec.ts:72:9 βΊ Store Reviews test βΊ admin can perform store reviews bulk action @Pro @A
[e2e_tests] βΊ stores.spec.ts:41:9 βΊ Stores test βΊ admin can add vendor @lite @A ββββββββββββββββ
[e2e_tests] βΊ vendorBooking.spec.ts:120:9 βΊ Booking Product test βΊ vendor can add booking for existing customer @Pro @v
[e2e_tests] βΊ vendorSettings.spec.ts:73:9 βΊ Vendor settings test βΊ vendor can set open-close settings @lite @v
[e2e_tests] βΊ vendorSettings.spec.ts:90:9 βΊ Vendor settings test βΊ vendor can set discount settings @Pro @v
[e2e_tests] βΊ vendorVerifications.spec.ts:31:9 βΊ Verifications test βΊ vendor can send id verification request @Pro @v
[e2e_tests] βΊ vendorVerifications.spec.ts:35:9 βΊ Verifications test βΊ vendor can send address verification request @Pro @v
140 skipped
462 passed (17.4m)
|
The logs for this run have expired and are no longer available.
Loading