You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are no end-to-end tests. Changes to auth, asset CRUD, or navigation can silently break the application without any automated signal. Playwright tests covering the golden paths give the team confidence before merging PRs and catch regressions in integration with the real backend.
Context
Frontend is a Next.js app in frontend/
Playwright supports Next.js projects natively via @playwright/test
Tests should run against a local dev server (next dev) with a seeded test database
CI integration follows in QA-03
Acceptance Criteria
Install @playwright/test as a dev dependency in frontend/package.json
Add playwright.config.ts targeting http://localhost:3000 with Chromium as the default browser
Write E2E test: auth.spec.ts — register new user, verify redirect to dashboard, logout, verify redirect to login
Write E2E test: login.spec.ts — valid credentials login, invalid credentials shows error, forgot password form submits and shows success state
Overview
There are no end-to-end tests. Changes to auth, asset CRUD, or navigation can silently break the application without any automated signal. Playwright tests covering the golden paths give the team confidence before merging PRs and catch regressions in integration with the real backend.
Context
frontend/@playwright/testnext dev) with a seeded test databaseAcceptance Criteria
@playwright/testas a dev dependency infrontend/package.jsonplaywright.config.tstargetinghttp://localhost:3000with Chromium as the default browserauth.spec.ts— register new user, verify redirect to dashboard, logout, verify redirect to loginlogin.spec.ts— valid credentials login, invalid credentials shows error, forgot password form submits and shows success stateasset-crud.spec.ts— create asset (fill form, submit, verify in list), view asset detail, edit asset, delete asset with confirmationnavigation.spec.ts— verify all sidebar links navigate to the correct page without a 404 or blank rendertest:e2escript tofrontend/package.json:playwright test