mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
23 lines
719 B
Bash
Executable File
23 lines
719 B
Bash
Executable File
#!/bin/bash
|
|
source ./initialize_test.sh && initialize_test "$@"
|
|
|
|
echo "Running codegen command without installing"
|
|
OUTPUT="$(npx_playwright codegen || true)"
|
|
local-playwright-registry assert-served-from-local-tgz playwright
|
|
if [[ "${OUTPUT}" != *'Please run the following command to download new browsers'* ]]; then
|
|
echo "ERROR: should instruct user to download browsers"
|
|
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
|