Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/reusable-emscripten.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,5 @@ jobs:
run: python3 Platforms/emscripten pythoninfo-host
- name: "Test"
run: python3 Platforms/emscripten run --test
- name: "Test Repl"
run: Platforms/emscripten/browser_test/run_test.sh
26 changes: 13 additions & 13 deletions Platforms/emscripten/browser_test/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Platforms/emscripten/browser_test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"license": "ISC",
"description": "",
"dependencies": {
"@playwright/test": "^1.54.1",
"@playwright/test": "^1.61.1",
"@types/node": "^24.12.0",
"get-port-cli": "^3.0.0",
"http-server": "^14.1.1",
"playwright": "^1.54.1"
"playwright": "^1.61.1"
}
}
12 changes: 7 additions & 5 deletions Platforms/emscripten/browser_test/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
set -euo pipefail
cd "$(dirname "$0")"
rm -f test_log.txt
echo "Installing node packages" | tee test_log.txt
echo "Installing node packages" | tee -a test_log.txt
npm ci >> test_log.txt 2>&1
echo "Installing playwright browsers" | tee test_log.txt
echo "Installing playwright browsers" | tee -a test_log.txt
npx playwright install 2>> test_log.txt
export PORT=$(npx get-port-cli)
echo "Running tests with webserver on port $PORT" | tee test_log.txt
CI=1 npx playwright test | tee test_log.txt
# Disable color so FORCE_COLOR=1 (set in CI) doesn't wrap the port number in
# ANSI escape codes, which would produce an invalid baseURL in Playwright.
export PORT=$(FORCE_COLOR=0 npx get-port-cli)
echo "Running tests with webserver on port $PORT" | tee -a test_log.txt
CI=1 npx playwright test | tee -a test_log.txt
Loading