Migrate Playwright suite to .NET UI tests and deprecate TS project
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# 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
|
||||
```
|
||||
Reference in New Issue
Block a user