parent
eda097f5e5
commit
afa9d69b63
|
|
@ -529,12 +529,12 @@ function test_playwright_cli_codegen_should_work {
|
||||||
|
|
||||||
echo "Running playwright codegen"
|
echo "Running playwright codegen"
|
||||||
OUTPUT=$(PWTEST_CLI_EXIT=1 xvfb-run --auto-servernum -- bash -c "npx playwright codegen")
|
OUTPUT=$(PWTEST_CLI_EXIT=1 xvfb-run --auto-servernum -- bash -c "npx playwright codegen")
|
||||||
if [[ "${OUTPUT}" != *"chromium.launch"* ]]; then
|
if [[ "${OUTPUT}" != *"@playwright/test"* ]]; then
|
||||||
echo "ERROR: missing chromium.launch in the output"
|
echo "ERROR: missing @playwright/test in the output"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [[ "${OUTPUT}" != *"browser.close"* ]]; then
|
if [[ "${OUTPUT}" != *"page.close"* ]]; then
|
||||||
echo "ERROR: missing browser.close in the output"
|
echo "ERROR: missing page.close in the output"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue