Skip to content

Enhance : Admin Notice Show gloablly & extand API #1407

Enhance : Admin Notice Show gloablly & extand API

Enhance : Admin Notice Show gloablly & extand API #1407

Triggered via pull request November 22, 2024 09:57
Status Failure
Total duration 3m 15s
Artifacts 1

e2e_api_tests.yml

on: pull_request
e2e_api tests
3m 5s
e2e_api tests
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 notice
[coverage_report] › _coverage.teardown.ts:23:13 › get api test coverage › get coverage: tests/pw/tests/api/_coverage.teardown.ts#L29
1) [coverage_report] › _coverage.teardown.ts:23:13 › get api test coverage › get coverage ──────── TypeError: Cannot read properties of undefined (reading 'routes') 27 | for (const endpoint of endpoints) { 28 | const [, responseBody] = await apiUtils.get(endpoint); > 29 | allRoutes.push(...Object.keys(responseBody.routes)); | ^ 30 | allRouteObjValues.push(...Object.values(responseBody.routes)); 31 | } 32 | const allRouteMethods: string[][] = allRouteObjValues.map((route: any) => route.methods); at /home/runner/work/dokan/dokan/tests/pw/tests/api/_coverage.teardown.ts:29:56
[coverage_report] › _coverage.teardown.ts:23:13 › get api test coverage › get coverage: tests/pw/tests/api/_coverage.teardown.ts#L29
1) [coverage_report] › _coverage.teardown.ts:23:13 › get api test coverage › get coverage ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'routes') 27 | for (const endpoint of endpoints) { 28 | const [, responseBody] = await apiUtils.get(endpoint); > 29 | allRoutes.push(...Object.keys(responseBody.routes)); | ^ 30 | allRouteObjValues.push(...Object.values(responseBody.routes)); 31 | } 32 | const allRouteMethods: string[][] = allRouteObjValues.map((route: any) => route.methods); at /home/runner/work/dokan/dokan/tests/pw/tests/api/_coverage.teardown.ts:29:56
[site_setup] › _site.setup.ts:103:10 › site setup › get test environment info: tests/pw/utils/apiUtils.ts#L2362
2) [site_setup] › _site.setup.ts:103:10 › site setup › get test environment info ───────────────── TypeError: Cannot read properties of undefined (reading 'active_plugins') at ../../utils/apiUtils.ts:2362 2360 | async getSystemStatus(auth?: auth): Promise<[responseBody, object]> { 2361 | const [, responseBody] = await this.get(endPoints.wc.getAllSystemStatus, { headers: auth }); > 2362 | const activePlugins = responseBody.active_plugins.map((a: { plugin: string; version: string }) => a.plugin.split('/')[0] + ' v' + a.version); | ^ 2363 | activePlugins.sort(); 2364 | const compactInfo = { 2365 | os: 'OS: ' + (await this.getOsInfo()), at ApiUtils.getSystemStatus (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:2362:44) at /home/runner/work/dokan/dokan/tests/pw/tests/api/_site.setup.ts:104:32
[site_setup] › _site.setup.ts:103:10 › site setup › get test environment info: tests/pw/utils/apiUtils.ts#L2362
2) [site_setup] › _site.setup.ts:103:10 › site setup › get test environment info ───────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'active_plugins') at ../../utils/apiUtils.ts:2362 2360 | async getSystemStatus(auth?: auth): Promise<[responseBody, object]> { 2361 | const [, responseBody] = await this.get(endPoints.wc.getAllSystemStatus, { headers: auth }); > 2362 | const activePlugins = responseBody.active_plugins.map((a: { plugin: string; version: string }) => a.plugin.split('/')[0] + ' v' + a.version); | ^ 2363 | activePlugins.sort(); 2364 | const compactInfo = { 2365 | os: 'OS: ' + (await this.getOsInfo()), at ApiUtils.getSystemStatus (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:2362:44) at /home/runner/work/dokan/dokan/tests/pw/tests/api/_site.setup.ts:104:32
e2e_api tests
Process completed with exit code 1.
e2e_api tests
Process completed with exit code 1.
🎭 Playwright Run Summary
2 failed [coverage_report] › _coverage.teardown.ts:23:13 › get api test coverage › get coverage ───────── [site_setup] › _site.setup.ts:103:10 › site setup › get test environment info ────────────────── 187 did not run 8 passed (15.2s)

Artifacts

Produced during runtime
Name Size
test-artifact
827 KB