test: setup Playwright E2E infrastructure and smoke tests #326
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
This PR introduces the initial setup for End-to-End (E2E) testing using Playwright, fulfilling the "Proactive Improvement" goal of the hardening pass. It establishes the infrastructure to verify main user journeys as requested in
TASKS.md.Changes
@playwright/test.playwright.config.tsto run against a local dev server.e2e/smoke.test.tsto verify the application loads and displays the correct title.package.jsonwith atest:e2escript.server/migrate.tsto allow skipping the database connection check viaSKIP_DB_CHECK=trueenvironment variable. This allows the server to start for smoke testing in environments where a full database is not available (like the current verification sandbox or basic CI steps).vitest.config.tsto excludee2etests from the unit test runner..gitignoreto exclude Playwright report artifacts.TASKS.mdto reflect progress.Verification
npm run test:e2e: Passed (Verified smoke tests).npm run test: Passed (Verified no regression in unit tests).npm run build: Passed (Verified build stability).Risk Analysis
server/migrate.tsis guarded by an explicit environment variable (SKIP_DB_CHECK), ensuring it does not affect production or standard development workflows unless opted-in.Manager's Note
All CI checks green. Do not merge automatically.
PR created automatically by Jules for task 14345369779571088007 started by @Doezer