NuxtN
Nuxt3w ago
4 replies
zKaan

GitHub Actions Playwright failure

At first, with only upgrading Tailwind v3 -> v4 the github actions for playwright test fail with
Error: Process completed with exit code 1.
https://github.com/PhyExDB/PhyExDB/pull/566

Besides of that is the bigger problem that since I switched from nuxt 3 to nuxt 4 unit tests with
Run unit tests with coverage: node_modules/h3/dist/index.mjs#L71
Error: Not authorized ❯ createError node_modules/h3/dist/index.mjs:71:15 ❯ createError node_modules/nuxt/dist/app/composables/error.js:32:34 ❯ authorizeUser server/utils/authorization.ts:350:48 ❯ Object.endpoint server/api/experiments/[slug]/comments/index.post.ts:12:9 ❯ expectSuccess tests/helpers/utils.ts:137:20 ❯ tests/helpers/utils.ts:168:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { statusCode: 403, statusMessage: 'Not authorized' }
Run unit tests with coverage: tests/helpers/utils.ts#L138
AssertionError: expected false to strictly equal { items: [ { …(3) } ], …(1) } - Expected: { "items": [ { "id": "55a68388-d0b9-42b3-8745-5e9747be5c33", "text": "text", "user": { "id": "81ec4217-65cd-497a-a475-baf904acb6b6", "name": "name", }, }, ], "pagination": { "page": 1, "pageSize": 12, "total": 1, "totalPages": 1, }, } + Received: false ❯ expectSuccess tests/helpers/utils.ts:138:20 ❯ tests/helpers/utils.ts:201:7
`
& playwright tests are timing out https://github.com/PhyExDB/PhyExDB/pull/565
How can I fix that. The first PR is much more important and shooould be easier
Was this page helpful?