mattermost/e2e-tests/playwright/script/post_install.sh
Saturnino Abril 53471c7e8c
E2E/Playwright: Upgrade playwright/dependencies and test server config (#26464)
* chore: upgrade playwright and test server config

* add post install script

* update config types

* fix visual test
2024-03-19 08:09:25 +08:00

12 lines
409 B
Bash
Executable file

#!/bin/bash
if [ -n "$PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD" ]; then
echo "Skipped browsers download for Playwright"
exit 0
fi
# Install needed Playwright browsers only -- chromium and firefox only for these are the ones being used by the tests.
# May add more browsers in the future.
# https://playwright.dev/docs/library#browser-downloads
npx playwright install chromium
npx playwright install firefox