Enhance : Admin Notice Show gloablly & extand API #1410
Annotations
7 errors and 1 notice
|
π§ͺ Run api tests:
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
|
π§ͺ Run api tests:
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
|
π§ͺ Run api tests:
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
|
π§ͺ Run api tests:
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
|
π§ͺ Run api tests
Process completed with exit code 1.
|
π§ͺ Run e2e tests
Process completed with exit code 1.
|
π§ͺ Run api tests
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.7s)
|
Loading