Skip to content

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

fix(utils): fix check-availability script (#3158)

Andrey Lushnikovc8c92c509dad
diff --git a/utils/check_availability.js b/utils/check_availability.js
index 8ed7fdd177..02ff589acd 100755
--- a/utils/check_availability.js
+++ b/utils/check_availability.js
@@ -20,7 +20,13 @@ const browserFetcher = require('../lib/install/browserFetcher.js');
const https = require('https');
const SUPPORTER_PLATFORMS = ['linux', 'mac', 'win32', 'win64'];
-const fetcherOptions = SUPPORTER_PLATFORMS.map(platform => platform === 'mac' ? 'mac10.15' : platform);
+const fetcherOptions = SUPPORTER_PLATFORMS.map(platform => {
+ if (platform === 'mac')
+ return 'mac10.15';
+ if (platform === 'linux')
+ return 'ubuntu18.04';
+ return platform;
+});
const colors = {
reset: '\x1b[0m',