Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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.sh
index 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" ]]; then
fi
ID=$(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 1
fi
diff --git a/packages/playwright-core/bin/reinstall_chrome_stable_linux.sh b/packages/playwright-core/bin/reinstall_chrome_stable_linux.sh
index 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" ]]; then
fi
ID=$(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 1
fi
diff --git a/packages/playwright-core/bin/reinstall_msedge_beta_linux.sh b/packages/playwright-core/bin/reinstall_msedge_beta_linux.sh
index 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" ]]; then
fi
ID=$(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 1
fi
diff --git a/packages/playwright-core/bin/reinstall_msedge_dev_linux.sh b/packages/playwright-core/bin/reinstall_msedge_dev_linux.sh
index 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" ]]; then
fi
ID=$(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 1
fi
diff --git a/packages/playwright-core/bin/reinstall_msedge_stable_linux.sh b/packages/playwright-core/bin/reinstall_msedge_stable_linux.sh
index 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" ]]; then
fi
ID=$(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 1
fi