tests/add api json validation #44
Annotations
9 errors, 5 warnings, and 2 notices
[api_tests] › orders.spec.ts:50:14 › order api test v1 › get single order @lite:
tests/pw/tests/api/orders.spec.ts#L52
1) [api_tests] › orders.spec.ts:50:14 › order api test v1 › get single order @lite ───────────────
Error: expect(received).toBeTruthy()
Received: false
50 | test.only('get single order @lite', async () => {
51 | const [response, responseBody] = await apiUtils.get(endPoints.getSingleOrder(orderId).replace('v1', version));
> 52 | expect(response.ok()).toBeTruthy();
| ^
53 | expect(responseBody).toBeTruthy();
54 | });
55 |
at /home/runner/work/dokan/dokan/tests/pw/tests/api/orders.spec.ts:52:35
|
[api_tests] › orders.spec.ts:50:14 › order api test v1 › get single order @lite:
tests/pw/tests/api/orders.spec.ts#L52
1) [api_tests] › orders.spec.ts:50:14 › order api test v1 › get single order @lite ───────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: false
50 | test.only('get single order @lite', async () => {
51 | const [response, responseBody] = await apiUtils.get(endPoints.getSingleOrder(orderId).replace('v1', version));
> 52 | expect(response.ok()).toBeTruthy();
| ^
53 | expect(responseBody).toBeTruthy();
54 | });
55 |
at /home/runner/work/dokan/dokan/tests/pw/tests/api/orders.spec.ts:52:35
|
[api_tests] › orders.spec.ts:50:14 › order api test v2 › get single order @lite:
tests/pw/tests/api/orders.spec.ts#L52
2) [api_tests] › orders.spec.ts:50:14 › order api test v2 › get single order @lite ───────────────
Error: expect(received).toBeTruthy()
Received: false
50 | test.only('get single order @lite', async () => {
51 | const [response, responseBody] = await apiUtils.get(endPoints.getSingleOrder(orderId).replace('v1', version));
> 52 | expect(response.ok()).toBeTruthy();
| ^
53 | expect(responseBody).toBeTruthy();
54 | });
55 |
at /home/runner/work/dokan/dokan/tests/pw/tests/api/orders.spec.ts:52:35
|
[api_tests] › orders.spec.ts:50:14 › order api test v2 › get single order @lite:
tests/pw/tests/api/orders.spec.ts#L52
2) [api_tests] › orders.spec.ts:50:14 › order api test v2 › get single order @lite ───────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: false
50 | test.only('get single order @lite', async () => {
51 | const [response, responseBody] = await apiUtils.get(endPoints.getSingleOrder(orderId).replace('v1', version));
> 52 | expect(response.ok()).toBeTruthy();
| ^
53 | expect(responseBody).toBeTruthy();
54 | });
55 |
at /home/runner/work/dokan/dokan/tests/pw/tests/api/orders.spec.ts:52:35
|
e2e_api tests
Process completed with exit code 1.
|
[e2e_tests] › stores.spec.ts:69:9 › Stores test › admin can perform vendor bulk actions @lite:
tests/pw/pages/basePage.ts#L720
1) [e2e_tests] › stores.spec.ts:69:9 › Stores test › admin can perform vendor bulk actions @lite ─
TimeoutError: page.selectOption: Timeout 15000ms exceeded.
=========================== logs ===========================
waiting for locator('.tablenav.top #bulk-action-selector-top')
locator resolved to <select name="action" id="bulk-action-selector-top">…</select>
selecting specified option(s)
============================================================
at ../../pages/basePage.ts:720
718 | // select by value
719 | async selectByValue(selector: string, value: string): Promise<string[]> {
> 720 | return await this.page.selectOption(selector, { value });
| ^
721 | }
722 |
723 | // select by label
at StoresPage.selectByValue (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:720:32)
at StoresPage.vendorBulkAction (/home/runner/work/dokan/dokan/tests/pw/pages/storesPage.ts:360:20)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/stores.spec.ts:70:9
|
[e2e_tests] › withdraws.spec.ts:57:9 › Withdraw test › admin can approve withdraw request @lite:
tests/pw/pages/basePage.ts#L304
2) [e2e_tests] › withdraws.spec.ts:57:9 › Withdraw test › admin can approve withdraw request @lite
TimeoutError: page.waitForResponse: Timeout 15000ms exceeded while waiting for event "response"
at ../../pages/basePage.ts:304
302 | // type & wait for response
303 | async pressAndWaitForResponse(subUrl: string, key: string, code = 200): Promise<Response> {
> 304 | const [response] = await Promise.all([this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.press(key)]);
| ^
305 | return response;
306 | }
307 |
at WithdrawsPage.pressAndWaitForResponse (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:304:57)
at WithdrawsPage.filterWithdraws (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:57:20)
at WithdrawsPage.updateWithdrawRequest (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:79:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/withdraws.spec.ts:58:9
|
[e2e_tests] › withdraws.spec.ts:61:9 › Withdraw test › admin can cancel withdraw request @lite:
tests/pw/pages/basePage.ts#L304
3) [e2e_tests] › withdraws.spec.ts:61:9 › Withdraw test › admin can cancel withdraw request @lite
TimeoutError: page.waitForResponse: Timeout 15000ms exceeded while waiting for event "response"
at ../../pages/basePage.ts:304
302 | // type & wait for response
303 | async pressAndWaitForResponse(subUrl: string, key: string, code = 200): Promise<Response> {
> 304 | const [response] = await Promise.all([this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.press(key)]);
| ^
305 | return response;
306 | }
307 |
at WithdrawsPage.pressAndWaitForResponse (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:304:57)
at WithdrawsPage.filterWithdraws (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:57:20)
at WithdrawsPage.updateWithdrawRequest (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:79:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/withdraws.spec.ts:63:9
|
[e2e_tests] › withdraws.spec.ts:66:9 › Withdraw test › admin can delete withdraw request @lite:
tests/pw/pages/basePage.ts#L304
4) [e2e_tests] › withdraws.spec.ts:66:9 › Withdraw test › admin can delete withdraw request @lite
TimeoutError: page.waitForResponse: Timeout 15000ms exceeded while waiting for event "response"
at ../../pages/basePage.ts:304
302 | // type & wait for response
303 | async pressAndWaitForResponse(subUrl: string, key: string, code = 200): Promise<Response> {
> 304 | const [response] = await Promise.all([this.page.waitForResponse(resp => resp.url().includes(subUrl) && resp.status() === code), this.press(key)]);
| ^
305 | return response;
306 | }
307 |
at WithdrawsPage.pressAndWaitForResponse (/home/runner/work/dokan/dokan/tests/pw/pages/basePage.ts:304:57)
at WithdrawsPage.filterWithdraws (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:57:20)
at WithdrawsPage.updateWithdrawRequest (/home/runner/work/dokan/dokan/tests/pw/pages/withdrawsPage.ts:79:9)
at /home/runner/work/dokan/dokan/tests/pw/tests/e2e/withdraws.spec.ts:68:9
|
Slow Test:
tests/pw/[api_setup] › _env.setup.ts#L1
tests/pw/[api_setup] › _env.setup.ts took 1.8s
|
Slow Test:
tests/pw/[api_tests] › orders.spec.ts#L1
tests/pw/[api_tests] › orders.spec.ts took 966ms
|
Slow Test:
tests/pw/[e2e_tests] › withdraws.spec.ts#L1
tests/pw/[e2e_tests] › withdraws.spec.ts took 1.4m
|
Slow Test:
tests/pw/[e2e_tests] › products.spec.ts#L1
tests/pw/[e2e_tests] › products.spec.ts took 54.6s
|
Slow Test:
tests/pw/[e2e_tests] › stores.spec.ts#L1
tests/pw/[e2e_tests] › stores.spec.ts took 43.1s
|
|
🎭 Playwright Run Summary
4 flaky
[e2e_tests] › stores.spec.ts:69:9 › Stores test › admin can perform vendor bulk actions @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 ─
1 skipped
152 passed (6.8m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-artifact
Expired
|
18.6 MB |
|