playwright/installation-tests/test_skip_browser_download.sh

16 lines
434 B
Bash
Raw Normal View History

#!/bin/bash
source ./initialize_test.sh && initialize_test "$@"
npm_i playwright-core
OUTPUT=$(PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm_i --foreground-script playwright)
if [[ "${OUTPUT}" != *"Skipping browsers download because"* ]]; then
echo "missing log message that browsers download is skipped"
exit 1
fi
if [[ -d ./node_modules/playwright/.local-browsers ]]; then
echo "local browsers folder should be empty"
exit 1
fi