Replace Playwright smoke tests with Selenium

This commit is contained in:
2026-05-04 20:54:10 +02:00
parent b97437fda3
commit c13a2ce7c7
13 changed files with 1313 additions and 620 deletions

View File

@@ -128,35 +128,35 @@ This rewrite is not complete yet. Follow `TASKS.md` for the execution plan.
Prerequisites:
- .NET SDK 10.0+
- PowerShell 7+
- Node.js 22+
- Firefox
- geckodriver
Initial setup:
```powershell
```bash
dotnet tool restore
npm ci
npm exec playwright install chromium
```
Run locally:
1. Start the app:
```powershell
```bash
dotnet run --project RpgRoller/RpgRoller.csproj
```
2. Open `http://localhost:5000` or the URL printed in the console.
3. Expect the current app to show either the static auth page at `/` or the authenticated workspace at `/`, depending on whether a valid session cookie already exists.
3. Expect `/` to redirect to `/login` when anonymous and to `/play` when a valid session cookie already exists.
Playwright helpers:
Browser smoke helpers:
- Run the checked-in smoke suite against an isolated temporary SQLite database:
```powershell
pwsh ./scripts/run-playwright.ps1
```bash
node ./scripts/run-selenium.js
```
- Run Playwright directly when the app is already running:
```powershell
npm run e2e
- Run the Selenium smoke suite directly when the app is already running:
```bash
npm run e2e:smoke
```
VS Code launch profiles in `.vscode/launch.json`: