Fail the workflow on webview test errors (#3275)

* do not exit with status code 0 if tests fail

* fix broken tests

* use a data-testid to find the button

* Fix API options test
This commit is contained in:
Tomás Barreiro
2025-05-19 23:22:49 +05:30
committed by GitHub
parent 644280bbb4
commit c535a5ec73
4 changed files with 33 additions and 63 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ jobs:
cd webview-ui
# Ensure coverage dependency is installed
npm install --no-save @vitest/coverage-v8
npm run test:coverage > webview_coverage.txt 2>&1 || true
npm run test:coverage > webview_coverage.txt 2>&1
cd ..
PYTHONPATH=.github/scripts python -m coverage_check extract-coverage webview-ui/webview_coverage.txt --type=webview --github-output --verbose