Add repo Playwright smoke setup
This commit is contained in:
18
README.md
18
README.md
@@ -70,7 +70,10 @@ Gameplay capabilities now include:
|
||||
|
||||
- .NET SDK 10.0+
|
||||
- PowerShell 7+
|
||||
- Node.js 22+
|
||||
- Run `dotnet tool restore` once to enable the repo-local `dotnet-ef` command.
|
||||
- Run `npm ci` once to install the repo-local Playwright toolchain.
|
||||
- Run `npm exec playwright install chromium` once to install the browser used by local smoke tests.
|
||||
|
||||
## Local Development
|
||||
|
||||
@@ -84,6 +87,21 @@ Gameplay capabilities now include:
|
||||
```
|
||||
3. Open `http://localhost:5000` (or the port shown in the console).
|
||||
|
||||
Playwright helpers:
|
||||
|
||||
- Install/update browser dependencies:
|
||||
```powershell
|
||||
npm exec playwright install chromium
|
||||
```
|
||||
- Run the checked-in smoke test against an isolated temp SQLite database:
|
||||
```powershell
|
||||
pwsh ./scripts/run-playwright.ps1
|
||||
```
|
||||
- Run the Playwright suite directly when the app is already running:
|
||||
```powershell
|
||||
npm run e2e
|
||||
```
|
||||
|
||||
VS Code F5 debug profiles are available in `.vscode/launch.json`:
|
||||
|
||||
- `RpgRoller: Server`
|
||||
|
||||
Reference in New Issue
Block a user