优化web_verify脚本,提前安装playwright browser
This commit is contained in:
parent
35ed0f72f2
commit
afbe700520
@ -64,12 +64,15 @@ if [ ! -d "node_modules" ]; then
|
|||||||
npm ci
|
npm ci
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
log_info "Ensuring Playwright browsers are installed..."
|
||||||
|
npx playwright install --with-deps > /dev/null
|
||||||
|
|
||||||
# Clean previous reports
|
# Clean previous reports
|
||||||
rm -rf "$REPORT_DIR"
|
rm -rf "$REPORT_DIR"
|
||||||
|
|
||||||
# Run Playwright tests with reporters
|
# Run Playwright tests with reporters
|
||||||
set +e # temporarily disable exit-on-error to capture test result
|
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=$?
|
TEST_RESULT=$?
|
||||||
set -e # re-enable strict mode
|
set -e # re-enable strict mode
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user