mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-30 00:46:38 +00:00
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:
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user