mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 22:22:53 +03:00
23 lines
719 B
Bash
23 lines
719 B
Bash
|
#!/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
|