From afbe7005203d7be50386665292f2a6d1aa7e207d Mon Sep 17 00:00:00 2001 From: "xiuting.xu" Date: Thu, 30 Oct 2025 10:42:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96web=5Fverify=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E6=8F=90=E5=89=8D=E5=AE=89=E8=A3=85playwrigh?= =?UTF-8?q?t=20browser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sys/tests/scripts/16_web_verify.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sys/tests/scripts/16_web_verify.sh b/src/sys/tests/scripts/16_web_verify.sh index b4f83ad..08d2f0c 100644 --- a/src/sys/tests/scripts/16_web_verify.sh +++ b/src/sys/tests/scripts/16_web_verify.sh @@ -64,12 +64,15 @@ if [ ! -d "node_modules" ]; then npm ci fi +log_info "Ensuring Playwright browsers are installed..." +npx playwright install --with-deps > /dev/null + # Clean previous reports rm -rf "$REPORT_DIR" # Run Playwright tests with reporters set +e # temporarily disable exit-on-error to capture test result -BASE_URL=${FRONTEND_URL} npx playwright test tests/playwright --reporter=list,html +BASE_URL=${FRONTEND_URL} npx playwright test tests/playwright --reporter=list TEST_RESULT=$? set -e # re-enable strict mode