Skip to content

Add shipstation tests #1434

Add shipstation tests

Add shipstation tests #1434

Triggered via pull request November 26, 2024 09:55
Status Failure
Total duration 3m 7s
Artifacts 1

e2e_api_tests.yml

on: pull_request
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#L2386
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:2386 2384 | async getSystemStatus(auth?: auth): Promise<[responseBody, object]> { 2385 | const [, responseBody] = await this.get(endPoints.wc.getAllSystemStatus, { headers: auth }); > 2386 | const activePlugins = responseBody.active_plugins.map((a: { plugin: string; version: string }) => a.plugin.split('/')[0] + ' v' + a.version); | ^ 2387 | activePlugins.sort(); 2388 | const compactInfo = { 2389 | os: 'OS: ' + (await this.getOsInfo()), at ApiUtils.getSystemStatus (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:2386: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#L2386
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:2386 2384 | async getSystemStatus(auth?: auth): Promise<[responseBody, object]> { 2385 | const [, responseBody] = await this.get(endPoints.wc.getAllSystemStatus, { headers: auth }); > 2386 | const activePlugins = responseBody.active_plugins.map((a: { plugin: string; version: string }) => a.plugin.split('/')[0] + ' v' + a.version); | ^ 2387 | activePlugins.sort(); 2388 | const compactInfo = { 2389 | os: 'OS: ' + (await this.getOsInfo()), at ApiUtils.getSystemStatus (/home/runner/work/dokan/dokan/tests/pw/utils/apiUtils.ts:2386: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 (16.6s)

Artifacts

Produced during runtime
Name Size
test-artifact
426 KB