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(launcher): default to ubuntu20.04 for newer releases (#3400)
Joel Einbinder23f5ed89b0a5
diff --git a/src/install/browserPaths.ts b/src/install/browserPaths.tsindex 8c3df5040a..e302b111a7 100644--- a/src/install/browserPaths.ts+++ b/src/install/browserPaths.ts@@ -36,11 +36,9 @@ export const hostPlatform = ((): BrowserPlatform => {}if (platform === 'linux') {const ubuntuVersion = getUbuntuVersionSync();- if (ubuntuVersion === '20.04')- return 'ubuntu20.04';- // For the sake of downloading logic, consider any other Linux distribution- // to be "ubuntu18.04".- return 'ubuntu18.04';+ if (parseInt(ubuntuVersion, 10) <= 19)+ return 'ubuntu18.04';+ return 'ubuntu20.04';}if (platform === 'win32')return os.arch() === 'x64' ? 'win64' : 'win32';