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: ubuntu version detection for linux mint (#28085)
faulpeltzd9ccc80d0c99
diff --git a/packages/playwright-core/src/utils/hostPlatform.ts b/packages/playwright-core/src/utils/hostPlatform.tsindex 796c1f04d0..1cf354d574 100644--- a/packages/playwright-core/src/utils/hostPlatform.ts+++ b/packages/playwright-core/src/utils/hostPlatform.ts@@ -72,6 +72,12 @@ function calculatePlatform(): { hostPlatform: HostPlatform, isOfficiallySupportereturn { hostPlatform: ('ubuntu20.04' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform };return { hostPlatform: ('ubuntu22.04' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform };}+ // Linux Mint is ubuntu-based but does not have the same versions+ if (distroInfo?.id === 'linuxmint') {+ if (parseInt(distroInfo.version, 10) <= 20)+ return { hostPlatform: ('ubuntu20.04' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform: false };+ return { hostPlatform: ('ubuntu22.04' + archSuffix) as HostPlatform, isOfficiallySupportedPlatform: false };+ }if (distroInfo?.id === 'debian' || distroInfo?.id === 'raspbian') {const isOfficiallySupportedPlatform = distroInfo?.id === 'debian';if (distroInfo?.version === '11')