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: allow installing Google Chrome on Debian (#24386)
Max Schmitt5c41c6e79923
diff --git a/packages/playwright-core/bin/reinstall_chrome_beta_linux.sh b/packages/playwright-core/bin/reinstall_chrome_beta_linux.shindex ddf294bacf..14c684599c 100755--- a/packages/playwright-core/bin/reinstall_chrome_beta_linux.sh+++ b/packages/playwright-core/bin/reinstall_chrome_beta_linux.sh@@ -13,8 +13,8 @@ if [[ ! -f "/etc/os-release" ]]; thenfiID=$(bash -c 'source /etc/os-release && echo $ID')-if [[ "${ID}" != "ubuntu" ]]; then- echo "ERROR: cannot install on $ID distribution - only Ubuntu is supported"+if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then+ echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"exit 1fidiff --git a/packages/playwright-core/bin/reinstall_chrome_stable_linux.sh b/packages/playwright-core/bin/reinstall_chrome_stable_linux.shindex e4637516aa..28a19699df 100755--- a/packages/playwright-core/bin/reinstall_chrome_stable_linux.sh+++ b/packages/playwright-core/bin/reinstall_chrome_stable_linux.sh@@ -13,8 +13,8 @@ if [[ ! -f "/etc/os-release" ]]; thenfiID=$(bash -c 'source /etc/os-release && echo $ID')-if [[ "${ID}" != "ubuntu" ]]; then- echo "ERROR: cannot install on $ID distribution - only Ubuntu is supported"+if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then+ echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"exit 1fidiff --git a/packages/playwright-core/bin/reinstall_msedge_beta_linux.sh b/packages/playwright-core/bin/reinstall_msedge_beta_linux.shindex 19396f0c5b..ff8c3c9f89 100755--- a/packages/playwright-core/bin/reinstall_msedge_beta_linux.sh+++ b/packages/playwright-core/bin/reinstall_msedge_beta_linux.sh@@ -14,8 +14,8 @@ if [[ ! -f "/etc/os-release" ]]; thenfiID=$(bash -c 'source /etc/os-release && echo $ID')-if [[ "${ID}" != "ubuntu" ]]; then- echo "ERROR: cannot install on $ID distribution - only Ubuntu is supported"+if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then+ echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"exit 1fidiff --git a/packages/playwright-core/bin/reinstall_msedge_dev_linux.sh b/packages/playwright-core/bin/reinstall_msedge_dev_linux.shindex 669bfb784c..6a026722b1 100755--- a/packages/playwright-core/bin/reinstall_msedge_dev_linux.sh+++ b/packages/playwright-core/bin/reinstall_msedge_dev_linux.sh@@ -14,8 +14,8 @@ if [[ ! -f "/etc/os-release" ]]; thenfiID=$(bash -c 'source /etc/os-release && echo $ID')-if [[ "${ID}" != "ubuntu" ]]; then- echo "ERROR: cannot install on $ID distribution - only Ubuntu is supported"+if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then+ echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"exit 1fidiff --git a/packages/playwright-core/bin/reinstall_msedge_stable_linux.sh b/packages/playwright-core/bin/reinstall_msedge_stable_linux.shindex 072778ec67..1f2c9bf382 100755--- a/packages/playwright-core/bin/reinstall_msedge_stable_linux.sh+++ b/packages/playwright-core/bin/reinstall_msedge_stable_linux.sh@@ -14,8 +14,8 @@ if [[ ! -f "/etc/os-release" ]]; thenfiID=$(bash -c 'source /etc/os-release && echo $ID')-if [[ "${ID}" != "ubuntu" ]]; then- echo "ERROR: cannot install on $ID distribution - only Ubuntu is supported"+if [[ "${ID}" != "ubuntu" && "${ID}" != "debian" ]]; then+ echo "ERROR: cannot install on $ID distribution - only Ubuntu and Debian are supported"exit 1fi