Replace Playwright smoke tests with Selenium
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user