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
chore: print error if install-deps is used != ubuntu (#12877)
Max Schmittd795f5dd64da
diff --git a/packages/playwright-core/src/utils/dependencies.ts b/packages/playwright-core/src/utils/dependencies.tsindex 51e692f84c..c0c5171ff6 100644--- a/packages/playwright-core/src/utils/dependencies.ts+++ b/packages/playwright-core/src/utils/dependencies.ts@@ -21,6 +21,7 @@ import childProcess from 'child_process';import * as utils from './utils';import { buildPlaywrightCLICommand } from './registry';import { deps } from './nativeDeps';+import { getUbuntuVersion } from './ubuntuVersion';const BIN_DIRECTORY = path.join(__dirname, '..', '..', 'bin');@@ -53,6 +54,8 @@ export async function installDependenciesWindows(targets: Set<DependencyGroup>,}export async function installDependenciesLinux(targets: Set<DependencyGroup>, dryRun: boolean) {+ if (await getUbuntuVersion() === '')+ throw new Error(`Unsupported Linux distribution, only Ubuntu is supported!`);const libraries: string[] = [];for (const target of targets) {const info = deps[utils.hostPlatform];