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
fix(docker): install gpg on slim images (#34340)
Yury Semikhatsky224d7bf847b6
diff --git a/packages/playwright-core/bin/reinstall_msedge_beta_linux.sh b/packages/playwright-core/bin/reinstall_msedge_beta_linux.shindex ececd05ace..a1531a95d0 100755--- a/packages/playwright-core/bin/reinstall_msedge_beta_linux.sh+++ b/packages/playwright-core/bin/reinstall_msedge_beta_linux.sh@@ -32,6 +32,12 @@ if ! command -v curl >/dev/null; thenapt-get install -y curlfi+# GnuPG is not preinstalled in slim images+if ! command -v gpg >/dev/null; then+ apt-get update+ apt-get install -y gpg+fi+# 3. Add the GPG key, the apt repo, update the apt cache, and install the packagecurl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpginstall -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/diff --git a/packages/playwright-core/bin/reinstall_msedge_dev_linux.sh b/packages/playwright-core/bin/reinstall_msedge_dev_linux.shindex 6ab84c3100..7fde34e5b8 100755--- a/packages/playwright-core/bin/reinstall_msedge_dev_linux.sh+++ b/packages/playwright-core/bin/reinstall_msedge_dev_linux.sh@@ -32,6 +32,12 @@ if ! command -v curl >/dev/null; thenapt-get install -y curlfi+# GnuPG is not preinstalled in slim images+if ! command -v gpg >/dev/null; then+ apt-get update+ apt-get install -y gpg+fi+# 3. Add the GPG key, the apt repo, update the apt cache, and install the packagecurl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpginstall -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/diff --git a/packages/playwright-core/bin/reinstall_msedge_stable_linux.sh b/packages/playwright-core/bin/reinstall_msedge_stable_linux.shindex e66f85bbba..4acb1dbf1b 100755--- a/packages/playwright-core/bin/reinstall_msedge_stable_linux.sh+++ b/packages/playwright-core/bin/reinstall_msedge_stable_linux.sh@@ -32,6 +32,12 @@ if ! command -v curl >/dev/null; thenapt-get install -y curlfi+# GnuPG is not preinstalled in slim images+if ! command -v gpg >/dev/null; then+ apt-get update+ apt-get install -y gpg+fi+# 3. Add the GPG key, the apt repo, update the apt cache, and install the packagecurl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /tmp/microsoft.gpginstall -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/