Add new .wp-env.json #384
Annotations
6 errors, 1 warning, 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#L2422
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:2422
2420 | async getSystemStatus(auth?: auth): Promise<[responseBody, object]> {
2421 | const [, responseBody] = await this.get(endPoints.wc.getAllSystemStatus, { headers: auth });
> 2422 | const activePlugins = responseBody.active_plugins.map((a: { plugin: string; version: string }) => a.plugin.split('/')[0] + ' v' + a.version);
| ^
2423 | activePlugins.sort();
2424 | const compactInfo = {
2425 | os: 'OS: ' + (await this.getOsInfo()),
at ApiUtils.getSystemStatus (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:2422: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#L2422
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:2422
2420 | async getSystemStatus(auth?: auth): Promise<[responseBody, object]> {
2421 | const [, responseBody] = await this.get(endPoints.wc.getAllSystemStatus, { headers: auth });
> 2422 | const activePlugins = responseBody.active_plugins.map((a: { plugin: string; version: string }) => a.plugin.split('/')[0] + ' v' + a.version);
| ^
2423 | activePlugins.sort();
2424 | const compactInfo = {
2425 | os: 'OS: ' + (await this.getOsInfo()),
at ApiUtils.getSystemStatus (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:2422: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.
|
e2e_api tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
🎭 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 ──────────────────
383 did not run
15 passed (17.6s)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-artifact
|
926 KB |
|