Skip to content

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

fix: use most recent stable debian release browser binaries in case of debian testing and unstable (#27397)

mash-graz2c56af3a3b51
diff --git a/packages/playwright-core/src/utils/hostPlatform.ts b/packages/playwright-core/src/utils/hostPlatform.ts
index a766a98ebc..f084f922d1 100644
--- a/packages/playwright-core/src/utils/hostPlatform.ts
+++ b/packages/playwright-core/src/utils/hostPlatform.ts
@@ -72,6 +72,10 @@ export const hostPlatform = ((): HostPlatform => {
return ('debian11' + archSuffix) as HostPlatform;
if (distroInfo?.id === 'debian' && distroInfo?.version === '12')
return ('debian12' + archSuffix) as HostPlatform;
+ // use most recent supported release for 'debian testing' and 'unstable'.
+ // they never include a numeric version entry in /etc/os-release.
+ if (distroInfo?.id === 'debian' && distroInfo?.version === '')
+ return ('debian12' + archSuffix) as HostPlatform;
return ('generic-linux' + archSuffix) as HostPlatform;
}
if (platform === 'win32')