dev_1.0.0_xuxt_3 完成web和alert的集成测试 #38

Merged
xuxt merged 12 commits from dev_1.0.0_xuxt_3 into dev_1.0.0 2025-10-31 14:18:20 +08:00
Showing only changes of commit afbe700520 - Show all commits

View File

@ -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