fix(tests): unskip and fix Playwright E2E tests (#1973)

- Re-enable 16 previously skipped Playwright E2E tests that now pass
- Fix test setup issues that were causing flakiness

## Changes
- **task/task.spec.ts** (8 tests): kanban navigation, description
editing, assignees, labels, due dates
- **task/overview.spec.ts** (4 tests): task ordering, due date handling
- **user/settings.spec.ts** (2 tests): avatar upload, name update
- **user/login.spec.ts** (2 tests): bad password error, redirect after
login

## Key fixes
- Kanban view tests now properly create `TaskBucket` entries so tasks
appear in the kanban board
- Avatar upload test uses the API directly to avoid `canvas.toBlob()`
issues in headless browser environments
- Login redirect test no longer uses the shared `login()` helper that
expected redirect to `/`
This commit is contained in:
kolaente
2025-12-12 17:20:22 +01:00
committed by GitHub
parent 5dab85e76f
commit d390ccab27
7 changed files with 70 additions and 30 deletions

View File

@@ -378,6 +378,9 @@ jobs:
with:
name: frontend_dist
path: ./frontend/dist
- name: Inject testing flag into index.html
run: |
sed -i 's/<head>/<head><script>window.TESTING=true;<\/script>/' ./frontend/dist/index.html
- run: chmod +x ./vikunja
- name: Run Playwright tests
timeout-minutes: 20
@@ -447,6 +450,9 @@ jobs:
with:
name: frontend_dist
path: ./frontend/dist
- name: Inject testing flag into index.html
run: |
sed -i 's/<head>/<head><script>window.TESTING=true;<\/script>/' ./frontend/dist/index.html
- run: chmod +x ./vikunja
- uses: cypress-io/github-action@v6
timeout-minutes: 20