Skip to content

E2E_API Tests

E2E_API Tests #246

Triggered via schedule February 9, 2024 02:09
Status Failure
Total duration 10m 36s
Artifacts 1

e2e_api_tests.yml

on: schedule
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 5 warnings, and 2 notices
[e2e_tests] › adminDashboard.spec.ts:27:9 › Admin dashboard test › admin dashboard at a glance values are accurate @lite: tests/pw/pages/adminDashboardPage.ts#L45
1) [e2e_tests] › adminDashboard.spec.ts:27:9 › Admin dashboard test › admin dashboard at a glance values are accurate @lite Error: expect(received).toBe(expected) // Object.is equality Expected: 178.08 Received: 0 at ../../pages/adminDashboardPage.ts:45 43 | const commissionEarned = (await this.getElementText(selector.admin.dokan.dashboard.atAGlance.commissionEarned)) as string; 44 | > 45 | expect(helpers.roundToTwo(helpers.price(netSales))).toBe(helpers.roundToTwo(atAGlanceValues.sales.this_month)); | ^ 46 | expect(helpers.roundToTwo(helpers.price(commissionEarned))).toBe(helpers.roundToTwo(atAGlanceValues.earning.this_month)); 47 | await this.toContainText(selector.admin.dokan.dashboard.atAGlance.signupThisMonth, atAGlanceValues.vendors.this_month + ' Vendor'); 48 | await this.toContainText(selector.admin.dokan.dashboard.atAGlance.vendorAwaitingApproval, atAGlanceValues.vendors.inactive + ' Vendor'); at AdminDashboardPage.dokanAtAGlanceValueAccuracy (/home/runner/work/dokan/dokan/tests/pw/pages/adminDashboardPage.ts:45:61) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/adminDashboard.spec.ts:29:9
[e2e_tests] › adminDashboard.spec.ts:27:9 › Admin dashboard test › admin dashboard at a glance values are accurate @lite: tests/pw/pages/basePage.ts#L1330
1) [e2e_tests] › adminDashboard.spec.ts:27:9 › Admin dashboard test › admin dashboard at a glance values are accurate @lite Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 15000ms waiting for expect(received).toContainText(expected) Expected string: "2 Vendor" Received string: "3 Vendor" Call log: - expect.toContainText with timeout 15000ms - waiting for locator('.vendor strong') - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" - locator resolved to <strong>3 Vendor</strong> - unexpected value "3 Vendor" at ../../pages/basePage.ts:1330 1328 | // assert element to contain text 1329 | async toContainText(selector: string, text: string) { > 1330 | await expect(this.page.locator(selector)).toContainText(text); | ^ 1331 | } 1332 | 1333 | // assert element to have count at AdminDashboardPage.toContainText (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1330:51) at AdminDashboardPage.dokanAtAGlanceValueAccuracy (/home/runner/work/dokan/dokan/tests/pw/pages/adminDashboardPage.ts:47:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/adminDashboard.spec.ts:29:9
[e2e_tests] › withdraws.spec.ts:41:9 › Withdraw test › admin can filter withdraws by vendor @lite: tests/pw/pages/withdrawsPage.ts#L61
2) [e2e_tests] › withdraws.spec.ts:41:9 › Withdraw test › admin can filter withdraws by vendor @lite Error: expect(received).toBeGreaterThan(expected) Expected: > 0 Received: 0 at ../../pages/withdrawsPage.ts:61 59 | await this.pressAndWaitForResponse(data.subUrls.api.dokan.withdraws, data.key.enter); 60 | const count = (await this.getElementText(selector.admin.dokan.withdraw.numberOfRowsFound))?.split(' ')[0]; > 61 | expect(Number(count)).toBeGreaterThan(0); | ^ 62 | } 63 | 64 | // export withdraws at WithdrawsPage.filterWithdraws (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:61:31) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/withdraws.spec.ts:42:9
[e2e_tests] › withdraws.spec.ts:41:9 › Withdraw test › admin can filter withdraws by vendor @lite: tests/pw/pages/withdrawsPage.ts#L61
2) [e2e_tests] › withdraws.spec.ts:41:9 › Withdraw test › admin can filter withdraws by vendor @lite Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeGreaterThan(expected) Expected: > 0 Received: 0 at ../../pages/withdrawsPage.ts:61 59 | await this.pressAndWaitForResponse(data.subUrls.api.dokan.withdraws, data.key.enter); 60 | const count = (await this.getElementText(selector.admin.dokan.withdraw.numberOfRowsFound))?.split(' ')[0]; > 61 | expect(Number(count)).toBeGreaterThan(0); | ^ 62 | } 63 | 64 | // export withdraws at WithdrawsPage.filterWithdraws (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:61:31) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/withdraws.spec.ts:42:9
[e2e_tests] › withdraws.spec.ts:45:9 › Withdraw test › admin can filter withdraws by payment methods @lite: tests/pw/pages/basePage.ts#L1330
3) [e2e_tests] › withdraws.spec.ts:45:9 › Withdraw test › admin can filter withdraws by payment methods @lite Error: Timed out 15000ms waiting for expect(received).toContainText(expected) Expected string: "PayPal" Received string: "" Call log: - expect.toContainText with timeout 15000ms - waiting for locator('li.select2-results__option.select2-results__option--highlighted') at ../../pages/basePage.ts:1330 1328 | // assert element to contain text 1329 | async toContainText(selector: string, text: string) { > 1330 | await expect(this.page.locator(selector)).toContainText(text); | ^ 1331 | } 1332 | 1333 | // assert element to have count at WithdrawsPage.toContainText (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1330:51) at WithdrawsPage.filterWithdraws (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:57:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/withdraws.spec.ts:46:9
[e2e_tests] › withdraws.spec.ts:45:9 › Withdraw test › admin can filter withdraws by payment methods @lite: tests/pw/pages/basePage.ts#L1330
3) [e2e_tests] › withdraws.spec.ts:45:9 › Withdraw test › admin can filter withdraws by payment methods @lite Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 15000ms waiting for expect(received).toContainText(expected) Expected string: "PayPal" Received string: "" Call log: - expect.toContainText with timeout 15000ms - waiting for locator('li.select2-results__option.select2-results__option--highlighted') at ../../pages/basePage.ts:1330 1328 | // assert element to contain text 1329 | async toContainText(selector: string, text: string) { > 1330 | await expect(this.page.locator(selector)).toContainText(text); | ^ 1331 | } 1332 | 1333 | // assert element to have count at WithdrawsPage.toContainText (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:1330:51) at WithdrawsPage.filterWithdraws (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:57:20) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/withdraws.spec.ts:46:9
[e2e_tests] › withdraws.spec.ts:53:9 › Withdraw test › admin can add note to withdraw request @lite: tests/pw/pages/withdrawsPage.ts#L61
4) [e2e_tests] › withdraws.spec.ts:53:9 › Withdraw test › admin can add note to withdraw request @lite Error: expect(received).toBeGreaterThan(expected) Expected: > 0 Received: 0 at ../../pages/withdrawsPage.ts:61 59 | await this.pressAndWaitForResponse(data.subUrls.api.dokan.withdraws, data.key.enter); 60 | const count = (await this.getElementText(selector.admin.dokan.withdraw.numberOfRowsFound))?.split(' ')[0]; > 61 | expect(Number(count)).toBeGreaterThan(0); | ^ 62 | } 63 | 64 | // export withdraws at WithdrawsPage.filterWithdraws (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:61:31) at WithdrawsPage.addNoteWithdrawRequest (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:72:9) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/withdraws.spec.ts:54:9
[e2e_tests] › withdraws.spec.ts:53:9 › Withdraw test › admin can add note to withdraw request @lite: tests/pw/pages/withdrawsPage.ts#L61
4) [e2e_tests] › withdraws.spec.ts:53:9 › Withdraw test › admin can add note to withdraw request @lite Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeGreaterThan(expected) Expected: > 0 Received: 0 at ../../pages/withdrawsPage.ts:61 59 | await this.pressAndWaitForResponse(data.subUrls.api.dokan.withdraws, data.key.enter); 60 | const count = (await this.getElementText(selector.admin.dokan.withdraw.numberOfRowsFound))?.split(' ')[0]; > 61 | expect(Number(count)).toBeGreaterThan(0); | ^ 62 | } 63 | 64 | // export withdraws at WithdrawsPage.filterWithdraws (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:61:31) at WithdrawsPage.addNoteWithdrawRequest (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:72:9) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/withdraws.spec.ts:54:9
[e2e_tests] › withdraws.spec.ts:57:9 › Withdraw test › admin can approve withdraw request @lite: tests/pw/pages/withdrawsPage.ts#L61
5) [e2e_tests] › withdraws.spec.ts:57:9 › Withdraw test › admin can approve withdraw request @lite Error: expect(received).toBeGreaterThan(expected) Expected: > 0 Received: 0 at ../../pages/withdrawsPage.ts:61 59 | await this.pressAndWaitForResponse(data.subUrls.api.dokan.withdraws, data.key.enter); 60 | const count = (await this.getElementText(selector.admin.dokan.withdraw.numberOfRowsFound))?.split(' ')[0]; > 61 | expect(Number(count)).toBeGreaterThan(0); | ^ 62 | } 63 | 64 | // export withdraws at WithdrawsPage.filterWithdraws (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:61:31) at WithdrawsPage.updateWithdrawRequest (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:81:9) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/withdraws.spec.ts:58:9
[e2e_tests] › withdraws.spec.ts:57:9 › Withdraw test › admin can approve withdraw request @lite: tests/pw/pages/withdrawsPage.ts#L61
5) [e2e_tests] › withdraws.spec.ts:57:9 › Withdraw test › admin can approve withdraw request @lite Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeGreaterThan(expected) Expected: > 0 Received: 0 at ../../pages/withdrawsPage.ts:61 59 | await this.pressAndWaitForResponse(data.subUrls.api.dokan.withdraws, data.key.enter); 60 | const count = (await this.getElementText(selector.admin.dokan.withdraw.numberOfRowsFound))?.split(' ')[0]; > 61 | expect(Number(count)).toBeGreaterThan(0); | ^ 62 | } 63 | 64 | // export withdraws at WithdrawsPage.filterWithdraws (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:61:31) at WithdrawsPage.updateWithdrawRequest (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:81:9) at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/withdraws.spec.ts:58: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 6.2s
Slow Test: tests/pw/[api_tests] › stores.spec.ts#L1
tests/pw/[api_tests] › stores.spec.ts took 3.3s
Slow Test: tests/pw/[e2e_tests] › withdraws.spec.ts#L1
tests/pw/[e2e_tests] › withdraws.spec.ts took 3.7m
Slow Test: tests/pw/[e2e_tests] › products.spec.ts#L1
tests/pw/[e2e_tests] › products.spec.ts took 1.3m
🎭 Playwright Run Summary
127 passed (19.0s)
🎭 Playwright Run Summary
11 failed [e2e_tests] › adminDashboard.spec.ts:27:9 › Admin dashboard test › admin dashboard at a glance values are accurate @lite [e2e_tests] › withdraws.spec.ts:41:9 › Withdraw test › admin can filter withdraws by vendor @lite [e2e_tests] › withdraws.spec.ts:45:9 › Withdraw test › admin can filter withdraws by payment methods @lite [e2e_tests] › withdraws.spec.ts:53:9 › Withdraw test › admin can add note to withdraw request @lite [e2e_tests] › withdraws.spec.ts:57:9 › Withdraw test › admin can approve withdraw request @lite [e2e_tests] › withdraws.spec.ts:61:9 › Withdraw test › admin can cancel withdraw request @lite ─ [e2e_tests] › withdraws.spec.ts:66:9 › Withdraw test › admin can delete withdraw request @lite ─ [e2e_tests] › withdraws.spec.ts:71:9 › Withdraw test › admin can perform withdraw bulk actions @lite [e2e_tests] › withdraws.spec.ts:91:9 › Withdraw test › vendor can't request withdraw when pending request exits @lite [e2e_tests] › withdraws.spec.ts:96:9 › Withdraw test › vendor can cancel request withdraw @lite [e2e_tests] › withdraws.spec.ts:105:9 › Withdraw test › vendor can add default withdraw payment methods @lite 2 flaky [e2e_tests] › stores.spec.ts:57:9 › Stores test › admin can edit vendor info @lite ───────────── [e2e_tests] › vendor.spec.ts:26:9 › Vendor user functionality test1 › vendor can register @lite 34 skipped 146 passed (6.7m)

Artifacts

Produced during runtime
Name Size
test-artifact Expired
65.8 MB