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

@@ -1,6 +1,7 @@
param(
[switch]$SkipDotnetRestore,
[switch]$SkipBuild,
[switch]$SkipBrowserSmoke,
[switch]$SkipPlaywright
)
@@ -66,10 +67,6 @@ try {
npm ci
}
Invoke-Step -Name "Ensure Playwright browser" -Action {
npm exec playwright install chromium
}
Invoke-Step -Name "Run tests" -Action {
if ($SkipBuild) {
dotnet test RpgRoller.Tests/RpgRoller.Tests.csproj --verbosity minimal --collect:"XPlat Code Coverage" --settings RpgRoller.Tests/coverlet.runsettings --results-directory $testResultsRoot
@@ -83,9 +80,9 @@ try {
pwsh ./scripts/check-coverage.ps1 -MinLineRate 0.90 -MinBranchRate 0.70 -ResultsRoot $testResultsRoot
}
if (-not $SkipPlaywright) {
Invoke-Step -Name "Run Playwright smoke test" -Action {
pwsh ./scripts/run-playwright.ps1
if (-not ($SkipBrowserSmoke -or $SkipPlaywright)) {
Invoke-Step -Name "Run Selenium smoke test" -Action {
node ./scripts/run-selenium.js
}
}