Skip to content

fix: empty lists don't get returned correctly from the api #35

fix: empty lists don't get returned correctly from the api

fix: empty lists don't get returned correctly from the api #35

Triggered via push August 24, 2024 10:44
Status Failure
Total duration 2m 16s
Artifacts 1

e2e-tests.yml

on: push
build-and-test
2m 6s
build-and-test
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 notice
[setup] › auth.setup.ts:7:1 › authenticate: frontend/tests/utils/cleanup.util.ts#L4
1) [setup] › auth.setup.ts:7:1 › authenticate ──────────────────────────────────────────────────── TypeError: Invalid URL at utils/cleanup.util.ts:4 2 | 3 | export async function cleanupBackend() { > 4 | await axios.post('/api/test/reset'); | ^ 5 | } 6 | at dispatchHttpRequest (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:232:20) at /home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:152:5 at wrapAsync (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:132:10) at http (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:170:10) at Axios.dispatchRequest (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/dispatchRequest.js:51:10) at Axios._request (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:173:33) at Axios.request (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:40:25) at Axios.httpMethod (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:212:19) at Function.post (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/helpers/bind.js:5:15) at cleanupBackend (/home/runner/work/pocket-id/pocket-id/frontend/tests/utils/cleanup.util.ts:4:14) at /home/runner/work/pocket-id/pocket-id/frontend/tests/auth.setup.ts:8:11 at Axios.request (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:45:41) at cleanupBackend (/home/runner/work/pocket-id/pocket-id/frontend/tests/utils/cleanup.util.ts:4:2) at /home/runner/work/pocket-id/pocket-id/frontend/tests/auth.setup.ts:8:5
[setup] › auth.setup.ts:7:1 › authenticate: frontend/tests/utils/cleanup.util.ts#L4
1) [setup] › auth.setup.ts:7:1 › authenticate ──────────────────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Invalid URL at utils/cleanup.util.ts:4 2 | 3 | export async function cleanupBackend() { > 4 | await axios.post('/api/test/reset'); | ^ 5 | } 6 | at dispatchHttpRequest (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:232:20) at /home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:152:5 at wrapAsync (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:132:10) at http (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:170:10) at Axios.dispatchRequest (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/dispatchRequest.js:51:10) at Axios._request (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:173:33) at Axios.request (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:40:25) at Axios.httpMethod (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:212:19) at Function.post (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/helpers/bind.js:5:15) at cleanupBackend (/home/runner/work/pocket-id/pocket-id/frontend/tests/utils/cleanup.util.ts:4:14) at /home/runner/work/pocket-id/pocket-id/frontend/tests/auth.setup.ts:8:11 at Axios.request (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:45:41) at cleanupBackend (/home/runner/work/pocket-id/pocket-id/frontend/tests/utils/cleanup.util.ts:4:2) at /home/runner/work/pocket-id/pocket-id/frontend/tests/auth.setup.ts:8:5
build-and-test
Process completed with exit code 1.
🎭 Playwright Run Summary
1 failed [setup] › auth.setup.ts:7:1 › authenticate ───────────────────────────────────────────────────── 23 did not run

Artifacts

Produced during runtime
Name Size
playwright-report Expired
3.71 KB