Skip to content

revert: reverted wp-env.override #52

revert: reverted wp-env.override

revert: reverted wp-env.override #52

Triggered via push March 8, 2024 02:53
Status Failure
Total duration 4m 53s
Artifacts 1

all-tests.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 3 warnings, and 1 notice
[api_tests] › abuseReports.spec.ts:30:9 › abuse report api test › get all abuse report reasons @pro: tests/pw/tests/api/abuseReports.spec.ts#L32
1) [api_tests] › abuseReports.spec.ts:30:9 › abuse report api test › get all abuse report reasons @Pro Error: expect(received).toBeTruthy() Received: false 30 | test('get all abuse report reasons @Pro', async () => { 31 | const [response, responseBody] = await apiUtils.get(endPoints.getAllAbuseReportReasons); > 32 | expect(response.ok()).toBeTruthy(); | ^ 33 | expect(responseBody).toBeTruthy(); 34 | expect(responseBody).toMatchSchema(schemas.abuseReportsSchema.abuseReportReasonsSchema); 35 | }); at /home/runner/work/dokan/dokan/tests/pw/tests/api/abuseReports.spec.ts:32:31
[api_tests] › abuseReports.spec.ts:30:9 › abuse report api test › get all abuse report reasons @pro: tests/pw/tests/api/abuseReports.spec.ts#L32
1) [api_tests] › abuseReports.spec.ts:30:9 › abuse report api test › get all abuse report reasons @Pro Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: false 30 | test('get all abuse report reasons @Pro', async () => { 31 | const [response, responseBody] = await apiUtils.get(endPoints.getAllAbuseReportReasons); > 32 | expect(response.ok()).toBeTruthy(); | ^ 33 | expect(responseBody).toBeTruthy(); 34 | expect(responseBody).toMatchSchema(schemas.abuseReportsSchema.abuseReportReasonsSchema); 35 | }); at /home/runner/work/dokan/dokan/tests/pw/tests/api/abuseReports.spec.ts:32:31
[api_tests] › abuseReports.spec.ts:37:9 › abuse report api test › get all abuse reports @pro: tests/pw/tests/api/abuseReports.spec.ts#L39
2) [api_tests] › abuseReports.spec.ts:37:9 › abuse report api test › get all abuse reports @Pro ── Error: expect(received).toBeTruthy() Received: false 37 | test('get all abuse reports @Pro', async () => { 38 | const [response, responseBody] = await apiUtils.get(endPoints.getAllAbuseReports); > 39 | expect(response.ok()).toBeTruthy(); | ^ 40 | expect(responseBody).toBeTruthy(); 41 | expect(responseBody).toMatchSchema(schemas.abuseReportsSchema.abuseReportsSchema); 42 | }); at /home/runner/work/dokan/dokan/tests/pw/tests/api/abuseReports.spec.ts:39:31
[api_tests] › abuseReports.spec.ts:37:9 › abuse report api test › get all abuse reports @pro: tests/pw/tests/api/abuseReports.spec.ts#L39
2) [api_tests] › abuseReports.spec.ts:37:9 › abuse report api test › get all abuse reports @Pro ── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: false 37 | test('get all abuse reports @Pro', async () => { 38 | const [response, responseBody] = await apiUtils.get(endPoints.getAllAbuseReports); > 39 | expect(response.ok()).toBeTruthy(); | ^ 40 | expect(responseBody).toBeTruthy(); 41 | expect(responseBody).toMatchSchema(schemas.abuseReportsSchema.abuseReportsSchema); 42 | }); at /home/runner/work/dokan/dokan/tests/pw/tests/api/abuseReports.spec.ts:39:31
[api_tests] › abuseReports.spec.ts:44:9 › abuse report api test › delete a abuse report @pro: tests/pw/utils/apiUtils.ts#L872
3) [api_tests] › abuseReports.spec.ts:44:9 › abuse report api test › delete a abuse report @Pro ── TypeError: Cannot read properties of undefined (reading '0') at ../../utils/apiUtils.ts:872 870 | async getAbuseReportId(auth?: auth): Promise<string> { 871 | const allAbuseReports = await this.getAllAbuseReports(auth); > 872 | const abuseReportId = allAbuseReports[0]?.id; | ^ 873 | return abuseReportId; 874 | } 875 | at ApiUtils.getAbuseReportId (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:872:46) at /home/runner/work/dokan/dokan/tests/pw/tests/api/abuseReports.spec.ts:45:31
[api_tests] › abuseReports.spec.ts:44:9 › abuse report api test › delete a abuse report @pro: tests/pw/utils/apiUtils.ts#L872
3) [api_tests] › abuseReports.spec.ts:44:9 › abuse report api test › delete a abuse report @Pro ── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading '0') at ../../utils/apiUtils.ts:872 870 | async getAbuseReportId(auth?: auth): Promise<string> { 871 | const allAbuseReports = await this.getAllAbuseReports(auth); > 872 | const abuseReportId = allAbuseReports[0]?.id; | ^ 873 | return abuseReportId; 874 | } 875 | at ApiUtils.getAbuseReportId (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:872:46) at /home/runner/work/dokan/dokan/tests/pw/tests/api/abuseReports.spec.ts:45:31
[api_tests] › abuseReports.spec.ts:52:9 › abuse report api test › delete batch abuse reports @pro: tests/pw/tests/api/abuseReports.spec.ts#L55
4) [api_tests] › abuseReports.spec.ts:52:9 › abuse report api test › delete batch abuse reports @Pro Error: expect(received).toBeTruthy() Received: false 53 | const allAbuseReportIds = (await apiUtils.getAllAbuseReports())?.map((a: { id: unknown }) => a.id); 54 | const [response, responseBody] = await apiUtils.delete(endPoints.deleteBatchAbuseReports, { data: { items: allAbuseReportIds } }); > 55 | expect(response.ok()).toBeTruthy(); | ^ 56 | expect(responseBody).toBeTruthy(); 57 | expect(responseBody).toMatchSchema(schemas.abuseReportsSchema.abuseReportsSchema); 58 | }); at /home/runner/work/dokan/dokan/tests/pw/tests/api/abuseReports.spec.ts:55:31
[api_tests] › abuseReports.spec.ts:52:9 › abuse report api test › delete batch abuse reports @pro: tests/pw/tests/api/abuseReports.spec.ts#L55
4) [api_tests] › abuseReports.spec.ts:52:9 › abuse report api test › delete batch abuse reports @Pro Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: false 53 | const allAbuseReportIds = (await apiUtils.getAllAbuseReports())?.map((a: { id: unknown }) => a.id); 54 | const [response, responseBody] = await apiUtils.delete(endPoints.deleteBatchAbuseReports, { data: { items: allAbuseReportIds } }); > 55 | expect(response.ok()).toBeTruthy(); | ^ 56 | expect(responseBody).toBeTruthy(); 57 | expect(responseBody).toMatchSchema(schemas.abuseReportsSchema.abuseReportsSchema); 58 | }); at /home/runner/work/dokan/dokan/tests/pw/tests/api/abuseReports.spec.ts:55:31
[api_tests] › admins.spec.ts:91:9 › admin api test › get admin export logs @pro: tests/pw/tests/api/admins.spec.ts#L95
5) [api_tests] › admins.spec.ts:91:9 › admin api test › get admin export logs @Pro ─────────────── Error: Result does not match schema: Invalid input Details: { "issues": [ { "code": "invalid_union", "unionErrors": [ { "issues": [ { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "columns" ], "message": "Required" } ], "name": "ZodError" }, { "issues": [ { "code": "invalid_type", "expected": "null", "received": "undefined", "path": [ "columns" ], "message": "Required" } ], "name": "ZodError" } ], "path": [ "columns" ], "message": "Invalid input" } ], "name": "ZodError" } 93 | expect(response.ok()).toBeTruthy(); 94 | expect(responseBody).toBeTruthy(); > 95 | expect(responseBody).toMatchSchema(schemas.admin.adminExportLogsSchema); | ^ 96 | }); 97 | }); 98 | at /home/runner/work/dokan/dokan/tests/pw/tests/api/admins.spec.ts:95:30
[api_tests] › admins.spec.ts:91:9 › admin api test › get admin export logs @pro: tests/pw/tests/api/admins.spec.ts#L95
5) [api_tests] › admins.spec.ts:91:9 › admin api test › get admin export logs @Pro ─────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Result does not match schema: Invalid input Details: { "issues": [ { "code": "invalid_union", "unionErrors": [ { "issues": [ { "code": "invalid_type", "expected": "object", "received": "undefined", "path": [ "columns" ], "message": "Required" } ], "name": "ZodError" }, { "issues": [ { "code": "invalid_type", "expected": "null", "received": "undefined", "path": [ "columns" ], "message": "Required" } ], "name": "ZodError" } ], "path": [ "columns" ], "message": "Invalid input" } ], "name": "ZodError" } 93 | expect(response.ok()).toBeTruthy(); 94 | expect(responseBody).toBeTruthy(); > 95 | expect(responseBody).toMatchSchema(schemas.admin.adminExportLogsSchema); | ^ 96 | }); 97 | }); 98 | at /home/runner/work/dokan/dokan/tests/pw/tests/api/admins.spec.ts:95:30
e2e_api tests
Process completed with exit code 1.
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] › announcements.spec.ts#L1
tests/pw/[api_tests] › announcements.spec.ts took 10.6s
Slow Test: tests/pw/[api_tests] › admins.spec.ts#L1
tests/pw/[api_tests] › admins.spec.ts took 10.5s
🎭 Playwright Run Summary
15 failed [api_tests] › abuseReports.spec.ts:30:9 › abuse report api test › get all abuse report reasons @Pro [api_tests] › abuseReports.spec.ts:37:9 › abuse report api test › get all abuse reports @Pro ─── [api_tests] › abuseReports.spec.ts:44:9 › abuse report api test › delete a abuse report @Pro ─── [api_tests] › abuseReports.spec.ts:52:9 › abuse report api test › delete batch abuse reports @Pro [api_tests] › admins.spec.ts:91:9 › admin api test › get admin export logs @Pro ──────────────── [api_tests] › customers.spec.ts:27:9 › customers api test › get all customers @Pro ───────────── [api_tests] › customers.spec.ts:34:9 › customers api test › get single customer @Pro ─────────── [api_tests] › customers.spec.ts:41:9 › customers api test › create a customer @Pro ───────────── [api_tests] › customers.spec.ts:49:9 › customers api test › update a customer @Pro ───────────── [api_tests] › customers.spec.ts:56:9 › customers api test › delete a customer @Pro ───────────── [api_tests] › followStores.spec.ts:26:9 › follow store api test › get store follow status @Pro ─ [api_tests] › followStores.spec.ts:40:9 › follow store api test › follow-unfollow a store @Pro ─ [api_tests] › followStores.spec.ts:54:9 › follow store api test › get followers @Pro ─────────── [api_tests] › modules.spec.ts:32:9 › modules api test › deactivate a module @Pro ─────────────── [api_tests] › modules.spec.ts:39:9 › modules api test › activate a module @Pro ───────────────── 2 interrupted [api_tests] › orders.spec.ts:44:13 › order api test v1 › get orders with param date-range @lite [api_tests] › productBlock.spec.ts:22:9 › product block api test › get product block details @lite 1 flaky [api_tests] › productAdvertisements.spec.ts:26:9 › product advertisement api test › get all advertised product stores @Pro 15 skipped 193 did not run 85 passed (1.2m)

Artifacts

Produced during runtime
Name Size
test-artifact Expired
503 KB