Skip to content

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

chore: default to ubuntu 24.04 for unsupported distros (#38269)

Yury Semikhatskybf6a60fd92c8
diff --git a/packages/playwright-core/src/server/utils/hostPlatform.ts b/packages/playwright-core/src/server/utils/hostPlatform.ts
index ef01a75186..635d65d3d9 100644
--- a/packages/playwright-core/src/server/utils/hostPlatform.ts
+++ b/packages/playwright-core/src/server/utils/hostPlatform.ts
@@ -111,7 +111,7 @@ function calculatePlatform(): { hostPlatform: HostPlatform, isOfficiallySupporte
if (distroInfo?.version === '')
return { hostPlatform: ('debian13' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform };
}
- return { hostPlatform: ('ubuntu20.04' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform: false };
+ return { hostPlatform: ('ubuntu24.04' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform: false };
}
if (platform === 'win32')
return { hostPlatform: 'win64', isOfficiallySupportedPlatform: true };