Skip to content

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

fix: best-effort support for KDE Neon (#20920)

Andrey Lushnikov4feb7c9e3b27
diff --git a/packages/playwright-core/src/utils/hostPlatform.ts b/packages/playwright-core/src/utils/hostPlatform.ts
index b46c447e8f..2bdb606c08 100644
--- a/packages/playwright-core/src/utils/hostPlatform.ts
+++ b/packages/playwright-core/src/utils/hostPlatform.ts
@@ -58,7 +58,8 @@ export const hostPlatform = ((): HostPlatform => {
const distroInfo = getLinuxDistributionInfoSync();
// Pop!_OS is ubuntu-based and has the same versions.
- if (distroInfo?.id === 'ubuntu' || distroInfo?.id === 'pop') {
+ // KDE Neon is ubuntu-based and has the same versions.
+ if (distroInfo?.id === 'ubuntu' || distroInfo?.id === 'pop' || distroInfo?.id === 'neon') {
if (parseInt(distroInfo.version, 10) <= 19)
return ('ubuntu18.04' + archSuffix) as HostPlatform;
if (parseInt(distroInfo.version, 10) <= 21)