Add a new layer of integration tests using Playwright to verify basic user flows and app features.
Objective
Ensure the application's core functionality is covered by robust integration tests. This will help catch regressions, validate flows, and improve confidence in deployments.
Tasks
- Set up Playwright (if not already set)
- Organize integration tests, e.g. in an
e2e/ directory
- Write tests to check that the fundamental user actions and routines work as expected, e.g.:
- Navigating to the application and loading the main view
- Selecting and running a routine from Library
- Using keyboard shortcuts during routine execution
- Handling reduced motion preference
- Generate and keep screenshots (e.g., in
playwright-screenshots/) for key states (see existing scripts)
References
Example code and configs relevant to Playwright integration:
Acceptance Criteria
- Playwright test suite covers all critical flows for a new user
- Easy to extend tests for future features
- All tests documented with clear comments
- Test runs/outputs reproducible in CI
Relevant code files:
Add a new layer of integration tests using Playwright to verify basic user flows and app features.
Objective
Ensure the application's core functionality is covered by robust integration tests. This will help catch regressions, validate flows, and improve confidence in deployments.
Tasks
e2e/directoryplaywright-screenshots/) for key states (see existing scripts)References
Example code and configs relevant to Playwright integration:
playwright.config.js: Playwright config filee2e/routine-workflow.spec.js: Workflow test examplee2e/routine-features.spec.js: Routine features test exampletest-routine-workflow.js: Test routine scriptAcceptance Criteria
Relevant code files: