Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: improve installation tests (#12092)
Andrey Lushnikov9bce817a92b7
diff --git a/installation-tests/README.md b/installation-tests/README.mdindex 6e9b3f891c..bbb4f9af4c 100644--- a/installation-tests/README.md+++ b/installation-tests/README.md@@ -1,4 +1,18 @@# Installation Tests-File `installation-tests.sh` tests that installation flow for all-Playwright packages works as expected.+These tests check end-to-end installation and operation of Playwright.+Each test is set with a separate folder that contains all scripts from+`fixture-scripts` folder and dummy package.json.++To create a new test, create a new file that starts with `test_*.sh`+with the following header:+ ```bash+ #!/bin/bash+ source ./initialize_test.sh && initialize_test "$@" # initialize test+ ```++To run all tests:++```bash+./run_all_tests.sh+```diff --git a/installation-tests/download-chromedriver.js b/installation-tests/fixture-scripts/download-chromedriver.jssimilarity index 94%rename from installation-tests/download-chromedriver.jsrename to installation-tests/fixture-scripts/download-chromedriver.jsindex 7284003ecd..a696ffa91b 100644--- a/installation-tests/download-chromedriver.js+++ b/installation-tests/fixture-scripts/download-chromedriver.js@@ -1,4 +1,4 @@-const playwright = require('playwright');+const playwright = require('playwright-core');const { execSync } = require('child_process');const path = require('path');diff --git a/installation-tests/driver-client.js b/installation-tests/fixture-scripts/driver-client.jssimilarity index 100%rename from installation-tests/driver-client.jsrename to installation-tests/fixture-scripts/driver-client.jsdiff --git a/installation-tests/electron-app.js b/installation-tests/fixture-scripts/electron-app.jssimilarity index 100%rename from installation-tests/electron-app.jsrename to installation-tests/fixture-scripts/electron-app.jsdiff --git a/installation-tests/esm-playwright-chromium.mjs b/installation-tests/fixture-scripts/esm-playwright-chromium.mjssimilarity index 100%rename from installation-tests/esm-playwright-chromium.mjsrename to installation-tests/fixture-scripts/esm-playwright-chromium.mjsdiff --git a/installation-tests/esm-playwright-firefox.mjs b/installation-tests/fixture-scripts/esm-playwright-firefox.mjssimilarity index 100%rename from installation-tests/esm-playwright-firefox.mjsrename to installation-tests/fixture-scripts/esm-playwright-firefox.mjsdiff --git a/installation-tests/esm-playwright-test.mjs b/installation-tests/fixture-scripts/esm-playwright-test.mjssimilarity index 100%rename from installation-tests/esm-playwright-test.mjsrename to installation-tests/fixture-scripts/esm-playwright-test.mjsdiff --git a/installation-tests/esm-playwright-webkit.mjs b/installation-tests/fixture-scripts/esm-playwright-webkit.mjssimilarity index 100%rename from installation-tests/esm-playwright-webkit.mjsrename to installation-tests/fixture-scripts/esm-playwright-webkit.mjsdiff --git a/installation-tests/esm-playwright.mjs b/installation-tests/fixture-scripts/esm-playwright.mjssimilarity index 100%rename from installation-tests/esm-playwright.mjsrename to installation-tests/fixture-scripts/esm-playwright.mjsdiff --git a/installation-tests/esm.mjs b/installation-tests/fixture-scripts/esm.mjssimilarity index 100%rename from installation-tests/esm.mjsrename to installation-tests/fixture-scripts/esm.mjsdiff --git a/installation-tests/failing.spec.js b/installation-tests/fixture-scripts/failing.spec.jssimilarity index 100%rename from installation-tests/failing.spec.jsrename to installation-tests/fixture-scripts/failing.spec.jsdiff --git a/installation-tests/inspector-custom-executable.js b/installation-tests/fixture-scripts/inspector-custom-executable.jssimilarity index 100%rename from installation-tests/inspector-custom-executable.jsrename to installation-tests/fixture-scripts/inspector-custom-executable.jsdiff --git a/installation-tests/playwright-test-types.ts b/installation-tests/fixture-scripts/playwright-test-types.tssimilarity index 100%rename from installation-tests/playwright-test-types.tsrename to installation-tests/fixture-scripts/playwright-test-types.tsdiff --git a/installation-tests/read-json-report.js b/installation-tests/fixture-scripts/read-json-report.jssimilarity index 100%rename from installation-tests/read-json-report.jsrename to installation-tests/fixture-scripts/read-json-report.jsdiff --git a/installation-tests/sample.spec.js b/installation-tests/fixture-scripts/sample.spec.jssimilarity index 100%rename from installation-tests/sample.spec.jsrename to installation-tests/fixture-scripts/sample.spec.jsdiff --git a/installation-tests/sanity-electron.js b/installation-tests/fixture-scripts/sanity-electron.jssimilarity index 100%rename from installation-tests/sanity-electron.jsrename to installation-tests/fixture-scripts/sanity-electron.jsdiff --git a/installation-tests/sanity.js b/installation-tests/fixture-scripts/sanity.jssimilarity index 100%rename from installation-tests/sanity.jsrename to installation-tests/fixture-scripts/sanity.jsdiff --git a/installation-tests/screencast.js b/installation-tests/fixture-scripts/screencast.jssimilarity index 100%rename from installation-tests/screencast.jsrename to installation-tests/fixture-scripts/screencast.jsdiff --git a/installation-tests/validate-dependencies-skip-executable-path.js b/installation-tests/fixture-scripts/validate-dependencies-skip-executable-path.jssimilarity index 100%rename from installation-tests/validate-dependencies-skip-executable-path.jsrename to installation-tests/fixture-scripts/validate-dependencies-skip-executable-path.jsdiff --git a/installation-tests/validate-dependencies.js b/installation-tests/fixture-scripts/validate-dependencies.jssimilarity index 100%rename from installation-tests/validate-dependencies.jsrename to installation-tests/fixture-scripts/validate-dependencies.jsdiff --git a/installation-tests/initialize_test.sh b/installation-tests/initialize_test.shindex c403c3bd08..d6b05245d5 100755--- a/installation-tests/initialize_test.sh+++ b/installation-tests/initialize_test.sh@@ -3,6 +3,8 @@# break script execution if some command returns non-zero exit codeset -e+TEST_FRAMEWORK_RUN_ROOT="/tmp/playwright-installation-tests"+function build_packages() {local PACKAGE_BUILDER="../../utils/pack_package.js"rm -rf ./output@@ -26,7 +28,7 @@ function cecho(){printf "${!1}${2} ${NC}\n"}-function complete_test {+function report_test_result {set +xif [[ $? == 0 ]]; thenecho@@ -37,7 +39,7 @@ function complete_test {cecho "RED" "<<<<<<<<<<<<"cecho "RED" " Test '${TEST_FILE}' FAILED"cecho "RED" " To debug locally, run:"- cecho "RED" " bash ${TEST_PATH} --debug"+ cecho "RED" " bash ${TEST_FILE}"cecho "RED" "<<<<<<<<<<<<"echofi@@ -46,8 +48,6 @@ function complete_test {function setup_env_variables() {# Package paths.- SCRIPTS_PATH="$(pwd -P)"- TEST_ROOT="/tmp/playwright-installation-tests"NODE_VERSION=$(node -e "console.log(process.version.slice(1).split('.')[0])")PLAYWRIGHT_CORE_TGZ="${PWD}/output/playwright-core.tgz"@@ -56,15 +56,16 @@ function setup_env_variables() {PLAYWRIGHT_WEBKIT_TGZ="${PWD}/output/playwright-webkit.tgz"PLAYWRIGHT_FIREFOX_TGZ="${PWD}/output/playwright-firefox.tgz"PLAYWRIGHT_TEST_TGZ="${PWD}/output/playwright-test.tgz"+ PLAYWRIGHT_CHECKOUT="${PWD}/.."}function clean_test_root() {- rm -rf "${TEST_ROOT}"- mkdir -p "${TEST_ROOT}"+ rm -rf "${TEST_FRAMEWORK_RUN_ROOT}"+ mkdir -p "${TEST_FRAMEWORK_RUN_ROOT}"}function initialize_test {- trap "complete_test;cd $(pwd -P)" EXIT+ trap "report_test_result;cd $(pwd -P)" EXITcd "$(dirname $0)"# cleanup environment@@ -72,6 +73,7 @@ function initialize_test {unset PLAYWRIGHT_SKIP_BROWSER_DOWNLOADexport PLAYWRIGHT_BROWSERS_PATH=0+ local SCRIPTS_PATH="$(pwd -P)"setup_env_variablesif [[ "$1" != "--no-build" && "$2" != "--no-build" ]]; then@@ -91,40 +93,18 @@ function initialize_test {if [[ "$1" != "--do-not-clean-test-root" && "$2" != "--do-not-clean-test-root" ]]; thenclean_test_rootfi- cd ${TEST_ROOT}+ cd ${TEST_FRAMEWORK_RUN_ROOT}TEST_FILE=$(basename $0)TEST_NAME=$(basename ${0%%.sh})- TEST_PATH="${PWD}/${TEST_FILE}"cecho "YELLOW" ">>>>>>>>>>>>"cecho "YELLOW" " Running test - '${TEST_FILE}'"cecho "YELLOW" ">>>>>>>>>>>>"mkdir ${TEST_NAME} && cd ${TEST_NAME} && npm init -y 1>/dev/null 2>/dev/null- # enable bash lines logging if --debug is passed- if [[ $1 == "--debug" || $2 == "--debug" ]]; then- set -x- fi-}+ cp "${SCRIPTS_PATH}/fixture-scripts/"* .-function copy_test_scripts {- cp "${SCRIPTS_PATH}/inspector-custom-executable.js" .- cp "${SCRIPTS_PATH}/sanity.js" .- cp "${SCRIPTS_PATH}/screencast.js" .- cp "${SCRIPTS_PATH}/validate-dependencies.js" .- cp "${SCRIPTS_PATH}/validate-dependencies-skip-executable-path.js" .- cp "${SCRIPTS_PATH}/esm.mjs" .- cp "${SCRIPTS_PATH}/esm-playwright.mjs" .- cp "${SCRIPTS_PATH}/esm-playwright-chromium.mjs" .- cp "${SCRIPTS_PATH}/esm-playwright-firefox.mjs" .- cp "${SCRIPTS_PATH}/esm-playwright-webkit.mjs" .- cp "${SCRIPTS_PATH}/esm-playwright-test.mjs" .- cp "${SCRIPTS_PATH}/sanity-electron.js" .- cp "${SCRIPTS_PATH}/electron-app.js" .- cp "${SCRIPTS_PATH}/driver-client.js" .- cp "${SCRIPTS_PATH}/sample.spec.js" .- cp "${SCRIPTS_PATH}/failing.spec.js" .- cp "${SCRIPTS_PATH}/read-json-report.js" .- cp "${SCRIPTS_PATH}/playwright-test-types.ts" .+ # Enable bash lines logging.+ set -x}diff --git a/installation-tests/run_all_tests.sh b/installation-tests/run_all_tests.shindex 1a5fcda95d..4efa5ef070 100755--- a/installation-tests/run_all_tests.sh+++ b/installation-tests/run_all_tests.sh@@ -2,7 +2,19 @@set -eset +x-trap "cd $(pwd -P)" EXIT+function report_results() {+ echo+ if [[ -n "${FAILED_TESTS}" ]]; then+ cecho "RED" "SOME TESTS FAILED! To debug:"+ cecho "RED" "${FAILED_TESTS}"+ exit 1+ else+ cecho "GREEN" "All tests passed!"+ exit 0+ fi+}++trap "report_results; cd $(pwd -P)" EXITcd "$(dirname $0)"source ./initialize_test.sh@@ -21,15 +33,18 @@ function gh_echo {FAILED_TESTS=""+TOTAL=$(ls -1 test_*.sh | wc -l | tr -d ' ')+COUNTER=1for i in test_*.shdoset +e- cecho "YELLOW" "Running - $i..."+ cecho "YELLOW" "Running ${COUNTER}/${TOTAL} - $i..."+ COUNTER=$(( COUNTER + 1 ))OUTPUT=$(bash $i --multitest --no-build 2>&1)RV=$?set -eif [[ "${RV}" != 0 ]]; then- FAILED_TESTS="${FAILED_TESTS}- bash ${PWD}/${i} --debug\n"+ FAILED_TESTS="${FAILED_TESTS}- ${i}\n"gh_echo "::group::FAILED - $i"cecho "RED" "FAILED - $i"@@ -43,12 +58,3 @@ dofidone-echo-if [[ -n "${FAILED_TESTS}" ]]; then- cecho "RED" "SOME TESTS FAILED! To debug:"- cecho "RED" "${FAILED_TESTS}"- exit 1-else- cecho "GREEN" "All tests passed!"- exit 0-fidiff --git a/installation-tests/test_connect_to_selenium.sh b/installation-tests/test_connect_to_selenium.shindex b2c45a2ca1..f8b5176440 100755--- a/installation-tests/test_connect_to_selenium.sh+++ b/installation-tests/test_connect_to_selenium.sh@@ -1,6 +1,8 @@#!/bin/bashsource ./initialize_test.sh && initialize_test "$@"-node "${SCRIPTS_PATH}/download-chromedriver.js" ${TEST_ROOT}-cd ${SCRIPTS_PATH}/output-PWTEST_CHROMEDRIVER="${TEST_ROOT}/chromedriver" npm run test -- --reporter=list selenium.spec+npm install ${PLAYWRIGHT_CORE_TGZ}+node "./download-chromedriver.js" "${PWD}"+export PWTEST_CHROMEDRIVER="${PWD}/chromedriver"+cd "${PLAYWRIGHT_CHECKOUT}"+npm run test -- --reporter=list selenium.specdiff --git a/installation-tests/test_playwright_chromium_should_work.sh b/installation-tests/test_playwright_chromium_should_work.shindex 3a7491ee3b..39ef92dcf3 100755--- a/installation-tests/test_playwright_chromium_should_work.sh+++ b/installation-tests/test_playwright_chromium_should_work.sh@@ -15,7 +15,6 @@ if [[ "${OUTPUT}" == *"webkit"* ]]; thenecho "ERROR: should not download webkit"exit 1fi-copy_test_scriptsecho "Running sanity.js"node sanity.js playwright-chromiumdiff --git a/installation-tests/test_playwright_cli_install_should_work.sh b/installation-tests/test_playwright_cli_install_should_work.shindex a2d232571a..4397306af5 100755--- a/installation-tests/test_playwright_cli_install_should_work.sh+++ b/installation-tests/test_playwright_cli_install_should_work.sh@@ -44,7 +44,6 @@ if [[ "${OUTPUT}" != *"firefox"* ]]; thenexit 1fi-copy_test_scriptsecho "Running sanity.js"node sanity.js playwright nonePLAYWRIGHT_BROWSERS_PATH="${BROWSERS}" node sanity.js playwrightdiff --git a/installation-tests/test_playwright_driver_should_work.sh b/installation-tests/test_playwright_driver_should_work.shindex 007b8b3f6e..e465b24db8 100755--- a/installation-tests/test_playwright_driver_should_work.sh+++ b/installation-tests/test_playwright_driver_should_work.sh@@ -7,7 +7,6 @@ PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install ${PLAYWRIGHT_TGZ}echo "Running playwright install"PLAYWRIGHT_BROWSERS_PATH="0" npx playwright install-copy_test_scriptsecho "Running driver-client.js"PLAYWRIGHT_BROWSERS_PATH="0" node driver-client.jsdiff --git a/installation-tests/test_playwright_electron_should_work.sh b/installation-tests/test_playwright_electron_should_work.shindex 804378614e..da3a0874aa 100755--- a/installation-tests/test_playwright_electron_should_work.sh+++ b/installation-tests/test_playwright_electron_should_work.sh@@ -4,7 +4,6 @@ source ./initialize_test.sh && initialize_test "$@"npm install ${PLAYWRIGHT_CORE_TGZ}PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install ${PLAYWRIGHT_TGZ}npm install [email protected]-copy_test_scriptsecho "Running sanity-electron.js"node sanity-electron.jsdiff --git a/installation-tests/test_playwright_firefox_should_work.sh b/installation-tests/test_playwright_firefox_should_work.shindex 4938970cb4..1d540287e9 100755--- a/installation-tests/test_playwright_firefox_should_work.sh+++ b/installation-tests/test_playwright_firefox_should_work.sh@@ -15,7 +15,6 @@ if [[ "${OUTPUT}" == *"webkit"* ]]; thenecho "ERROR: should not download webkit"exit 1fi-copy_test_scriptsecho "Running sanity.js"node sanity.js playwright-firefoxdiff --git a/installation-tests/test_playwright_global_installation.sh b/installation-tests/test_playwright_global_installation.shindex 334ed544ae..84abe152b0 100755--- a/installation-tests/test_playwright_global_installation.sh+++ b/installation-tests/test_playwright_global_installation.sh@@ -9,8 +9,6 @@ if [[ ! -d "${BROWSERS}" ]]; thenexit 1fi-copy_test_scripts-echo "Running sanity.js"node sanity.js playwright nonePLAYWRIGHT_BROWSERS_PATH="${BROWSERS}" node sanity.js playwrightdiff --git a/installation-tests/test_playwright_global_installation_cross_package.sh b/installation-tests/test_playwright_global_installation_cross_package.shindex 1ef388f60a..80e063ece3 100755--- a/installation-tests/test_playwright_global_installation_cross_package.sh+++ b/installation-tests/test_playwright_global_installation_cross_package.sh@@ -13,8 +13,6 @@ if [[ ! -d "${BROWSERS}" ]]; thenexit 1fi-copy_test_scripts-echo "Running sanity.js"# Every package should be able to launch.PLAYWRIGHT_BROWSERS_PATH="${BROWSERS}" node sanity.js playwright-chromium alldiff --git a/installation-tests/test_playwright_should_work.sh b/installation-tests/test_playwright_should_work.shindex ddf4998af0..4653ad4931 100755--- a/installation-tests/test_playwright_should_work.sh+++ b/installation-tests/test_playwright_should_work.sh@@ -15,7 +15,6 @@ if [[ "${OUTPUT}" != *"webkit"* ]]; thenecho "ERROR: should download webkit"exit 1fi-copy_test_scriptsecho "Running sanity.js"node sanity.js playwrightdiff --git a/installation-tests/test_playwright_should_work_with_relative_browsers_path.sh b/installation-tests/test_playwright_should_work_with_relative_browsers_path.shindex 220c22ce47..3c39680f76 100755--- a/installation-tests/test_playwright_should_work_with_relative_browsers_path.sh+++ b/installation-tests/test_playwright_should_work_with_relative_browsers_path.sh@@ -8,7 +8,6 @@ npm install ${PLAYWRIGHT_CORE_TGZ}PLAYWRIGHT_BROWSERS_PATH="../relative" npm install ${PLAYWRIGHT_TGZ}cd ..-copy_test_scriptsecho "Running sanity.js"PLAYWRIGHT_BROWSERS_PATH="./relative" node sanity.js playwrightdiff --git a/installation-tests/test_playwright_should_work_with_relative_home_path.sh b/installation-tests/test_playwright_should_work_with_relative_home_path.shindex a751ec2fd7..c8a6dc0ef8 100755--- a/installation-tests/test_playwright_should_work_with_relative_home_path.sh+++ b/installation-tests/test_playwright_should_work_with_relative_home_path.sh@@ -3,7 +3,6 @@ source ./initialize_test.sh && initialize_test "$@"npm install ${PLAYWRIGHT_CORE_TGZ}PLAYWRIGHT_BROWSERS_PATH="" HOME=. npm install ${PLAYWRIGHT_TGZ}-copy_test_scriptsecho "Running sanity.js"# Firefox does not work with relative HOME.PLAYWRIGHT_BROWSERS_PATH="" HOME=. node sanity.js playwright chromium webkitdiff --git a/installation-tests/test_playwright_test_should_work.sh b/installation-tests/test_playwright_test_should_work.shindex 7fce2db234..ad8eb74635 100755--- a/installation-tests/test_playwright_test_should_work.sh+++ b/installation-tests/test_playwright_test_should_work.sh@@ -3,7 +3,6 @@ source ./initialize_test.sh && initialize_test "$@"npm install ${PLAYWRIGHT_CORE_TGZ}npm install ${PLAYWRIGHT_TEST_TGZ}-copy_test_scriptsecho "Running playwright test without install"if npx playwright test -c .; thendiff --git a/installation-tests/test_playwright_test_stacks_should_work.sh b/installation-tests/test_playwright_test_stacks_should_work.shindex 728223abee..691c7c7302 100755--- a/installation-tests/test_playwright_test_stacks_should_work.sh+++ b/installation-tests/test_playwright_test_stacks_should_work.sh@@ -4,7 +4,6 @@ source ./initialize_test.sh && initialize_test "$@"npm install ${PLAYWRIGHT_CORE_TGZ}npm install ${PLAYWRIGHT_TEST_TGZ}PLAYWRIGHT_BROWSERS_PATH="0" npx playwright install chromium-copy_test_scriptsecho "Running playwright test"OUTPUT=$(DEBUG=pw:api npx playwright test -c . failing.spec.js 2>&1 || true)diff --git a/installation-tests/test_playwright_validate_dependencies.sh b/installation-tests/test_playwright_validate_dependencies.shindex 0e3bd0ef62..5d4be4125d 100755--- a/installation-tests/test_playwright_validate_dependencies.sh+++ b/installation-tests/test_playwright_validate_dependencies.sh@@ -3,7 +3,6 @@ source ./initialize_test.sh && initialize_test "$@"npm install ${PLAYWRIGHT_CORE_TGZ}npm install ${PLAYWRIGHT_TGZ}-copy_test_scriptsOUTPUT="$(node validate-dependencies.js)"if [[ "${OUTPUT}" != *"PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS"* ]]; thendiff --git a/installation-tests/test_playwright_validate_dependencies_skip_executable_path.sh b/installation-tests/test_playwright_validate_dependencies_skip_executable_path.shindex c8d2659e89..cecc0b9b60 100755--- a/installation-tests/test_playwright_validate_dependencies_skip_executable_path.sh+++ b/installation-tests/test_playwright_validate_dependencies_skip_executable_path.sh@@ -3,7 +3,6 @@ source ./initialize_test.sh && initialize_test "$@"npm install ${PLAYWRIGHT_CORE_TGZ}npm install ${PLAYWRIGHT_TGZ}-copy_test_scriptsOUTPUT="$(node validate-dependencies-skip-executable-path.js)"if [[ "${OUTPUT}" == *"PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS"* ]]; thendiff --git a/installation-tests/test_playwright_webkit_should_work.sh b/installation-tests/test_playwright_webkit_should_work.shindex 4aee65c200..1365de127e 100755--- a/installation-tests/test_playwright_webkit_should_work.sh+++ b/installation-tests/test_playwright_webkit_should_work.sh@@ -15,7 +15,6 @@ if [[ "${OUTPUT}" != *"webkit"* ]]; thenecho "ERROR: should download webkit"exit 1fi-copy_test_scriptsecho "Running sanity.js"node sanity.js playwright-webkitdiff --git a/installation-tests/test_screencast.sh b/installation-tests/test_screencast.shindex f1d7c5fb9a..49bdddf164 100755--- a/installation-tests/test_screencast.sh+++ b/installation-tests/test_screencast.sh@@ -1,8 +1,6 @@#!/bin/bashsource ./initialize_test.sh && initialize_test "$@"-copy_test_scripts-BROWSERS="$(pwd -P)/browsers"npm install ${PLAYWRIGHT_CORE_TGZ}PLAYWRIGHT_BROWSERS_PATH="${BROWSERS}" npm install ${PLAYWRIGHT_TGZ}diff --git a/installation-tests/test_skip_browser_download_inspect_with_custom_executable.sh b/installation-tests/test_skip_browser_download_inspect_with_custom_executable.shindex 51962b6ff0..6cc81ffb14 100755--- a/installation-tests/test_skip_browser_download_inspect_with_custom_executable.sh+++ b/installation-tests/test_skip_browser_download_inspect_with_custom_executable.sh@@ -1,8 +1,6 @@#!/bin/bashsource ./initialize_test.sh && initialize_test "$@"-copy_test_scripts-npm install ${PLAYWRIGHT_CORE_TGZ}OUTPUT=$(PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install --foreground-script ${PLAYWRIGHT_TGZ})if [[ "${OUTPUT}" != *"Skipping browsers download because"* ]]; thendiff --git a/installation-tests/test_typescript_types.sh b/installation-tests/test_typescript_types.shindex 2cf4fd4668..b14ba6cbae 100755--- a/installation-tests/test_typescript_types.sh+++ b/installation-tests/test_typescript_types.sh@@ -1,7 +1,6 @@#!/bin/bashsource ./initialize_test.sh && initialize_test "$@"-copy_test_scripts# @types/[email protected] is the last version which is compatibel with [email protected].# After @types/[email protected] URLSearchParams from @types/node conflicts with typescript's# shipped types and it results in a type error / build failure.