30 lines
796 B
Markdown
30 lines
796 B
Markdown
# JdeScoping.Ui.Tests
|
|
|
|
Playwright-for-.NET UI tests migrated from the legacy TypeScript Playwright suite.
|
|
|
|
## Preconditions
|
|
|
|
- Docker host container is already running via `/Users/dohertj2/Desktop/JdeScopingTool/NEW/deploy/docker/deploy-host.sh`
|
|
- App reachable at `http://localhost:5294` (or set `JDESCOPING_UI_BASE_URL`)
|
|
|
|
## First-time setup
|
|
|
|
```bash
|
|
cd /Users/dohertj2/Desktop/JdeScopingTool/NEW/tests/JdeScoping.Ui.Tests
|
|
dotnet build
|
|
pwsh bin/Debug/net10.0/playwright.ps1 install chromium
|
|
```
|
|
|
|
## Run tests
|
|
|
|
```bash
|
|
cd /Users/dohertj2/Desktop/JdeScopingTool/NEW
|
|
dotnet test tests/JdeScoping.Ui.Tests/JdeScoping.Ui.Tests.csproj --filter "Category=RequiresDockerHost"
|
|
```
|
|
|
|
Run headed mode:
|
|
|
|
```bash
|
|
JDESCOPING_UI_HEADED=true dotnet test tests/JdeScoping.Ui.Tests/JdeScoping.Ui.Tests.csproj
|
|
```
|