File tree Expand file tree Collapse file tree
Platforms/emscripten/browser_test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22set -euo pipefail
33cd " $( dirname " $0 " ) "
44rm -f test_log.txt
5- echo " Installing node packages" | tee test_log.txt
5+ echo " Installing node packages" | tee -a test_log.txt
66npm ci >> test_log.txt 2>&1
7- echo " Installing playwright browsers" | tee test_log.txt
7+ echo " Installing playwright browsers" | tee -a test_log.txt
88npx playwright install 2>> test_log.txt
9- export PORT=$( npx get-port-cli)
10- echo " Running tests with webserver on port $PORT " | tee test_log.txt
11- CI=1 npx playwright test | tee test_log.txt
9+ # Disable color so FORCE_COLOR=1 (set in CI) doesn't wrap the port number in
10+ # ANSI escape codes, which would produce an invalid baseURL in Playwright.
11+ export PORT=$( FORCE_COLOR=0 npx get-port-cli)
12+ echo " Running tests with webserver on port $PORT " | tee -a test_log.txt
13+ CI=1 npx playwright test | tee -a test_log.txt
You can’t perform that action at this time.
0 commit comments