mirror of
https://github.com/microsoft/playwright.git
synced 2024-09-11 20:37:54 +03:00
parent
eda097f5e5
commit
afa9d69b63
@ -529,12 +529,12 @@ function test_playwright_cli_codegen_should_work {
|
||||
|
||||
echo "Running playwright codegen"
|
||||
OUTPUT=$(PWTEST_CLI_EXIT=1 xvfb-run --auto-servernum -- bash -c "npx playwright codegen")
|
||||
if [[ "${OUTPUT}" != *"chromium.launch"* ]]; then
|
||||
echo "ERROR: missing chromium.launch in the output"
|
||||
if [[ "${OUTPUT}" != *"@playwright/test"* ]]; then
|
||||
echo "ERROR: missing @playwright/test in the output"
|
||||
exit 1
|
||||
fi
|
||||
if [[ "${OUTPUT}" != *"browser.close"* ]]; then
|
||||
echo "ERROR: missing browser.close in the output"
|
||||
if [[ "${OUTPUT}" != *"page.close"* ]]; then
|
||||
echo "ERROR: missing page.close in the output"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user