Commit 0f297f1
committed
fix: comprehensive test suite improvements and CI/CD fixes
Critical fixes based on project assessment:
1. Created actual UI/E2E tests in task.spec.js
- Replaced duplicate API tests with 16 comprehensive UI tests
- Tests cover: adding tasks, editing, deleting, validation, completion toggle
- Improved test coverage from 0% to full UI coverage
2. Fixed Playwright configuration for CI/CD compatibility
- Changed headless: false to headless: true
- Removed slowMo: 500 (was adding unnecessary 500ms delay per action)
- Optimized trace/screenshot/video to only capture on failures
- Reduced timeouts from 60s to 10s for faster feedback
3. Fixed Dockerfile configuration
- Removed --headed flag which requires display server
- Tests can now run successfully in containerized environments
4. Added test isolation and cleanup
- Added beforeEach hook to clear database before each test
- Added afterAll hook for final cleanup and context disposal
- Prevents test pollution and ensures deterministic results
5. Cleaned up git-tracked ignored files
- Removed .DS_Store and .idea directory from git tracking
- Files remain in .gitignore for future prevention
These changes address the P0 issues identified in the project assessment,
enabling proper UI testing and ensuring tests can run in CI/CD pipelines.1 parent a478aaa commit 0f297f1
File tree
10 files changed
+366
-149
lines changed- .idea
- playwright
- tests
10 files changed
+366
-149
lines changedBinary file not shown.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
25 | 36 | | |
26 | 37 | | |
27 | 38 | | |
| |||
0 commit comments