test: fix installation tests (#7069)

This was regressed by 3b1bae8a40
This commit is contained in:
Andrey Lushnikov 2021-06-11 04:56:41 -07:00 committed by GitHub
parent eda097f5e5
commit afa9d69b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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