mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
23 lines
744 B
Bash
23 lines
744 B
Bash
#!/bin/bash
|
|
source ./initialize_test.sh && initialize_test "$@"
|
|
|
|
echo "Running global help command without first installing project"
|
|
OUTPUT="$(npx_playwright --help)"
|
|
local-playwright-registry assert-served-from-local-tgz playwright
|
|
if [[ "${OUTPUT}" == *'To avoid unexpected behavior, please install your dependencies first'* ]]; then
|
|
echo "ERROR: should not warn user about global installation"
|
|
exit 1
|
|
fi
|
|
if [[ "${OUTPUT}" == *"chromium"*"downloaded"* ]]; then
|
|
echo "ERROR: should not download chromium"
|
|
exit 1
|
|
fi
|
|
if [[ "${OUTPUT}" == *"webkit"*"downloaded"* ]]; then
|
|
echo "ERROR: should not download webkit"
|
|
exit 1
|
|
fi
|
|
if [[ "${OUTPUT}" == *"firefox"*"downloaded"* ]]; then
|
|
echo "ERROR: should not download firefox"
|
|
exit 1
|
|
fi
|