mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
Refactor authentication and account management with modular UI components (#242)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
# Testing
|
||||
|
||||
This document describes the testing strategy and how to run tests for The
|
||||
@@ -125,6 +126,25 @@ npm run test:storybook:playwright
|
||||
- The command will start or reuse the Storybook server defined in
|
||||
`playwright.storybook.config.ts`
|
||||
|
||||
### Running Storybook tests with a visible browser
|
||||
|
||||
Both of the above run headless by default. To watch the browser while
|
||||
debugging a failure:
|
||||
|
||||
```bash
|
||||
# Playwright Storybook suite
|
||||
npx playwright test -c playwright.storybook.config.ts --headed
|
||||
# or the interactive step-through runner
|
||||
npx playwright test -c playwright.storybook.config.ts --ui
|
||||
|
||||
# Vitest/story play-function suite
|
||||
npx vitest run --project storybook --browser.headless=false
|
||||
# or Vitest's own UI (drop `run` for watch mode)
|
||||
npx vitest --project storybook --browser.headless=false --ui
|
||||
```
|
||||
|
||||
The default (`headless: true`) is set in `web/frontend/vite.config.ts`.
|
||||
|
||||
## Test coverage
|
||||
|
||||
### Current coverage
|
||||
|
||||
Reference in New Issue
Block a user