Skip to content

Commit 30e994d

Browse files
committed
Don't download Chrome browsers on Mac since it is currently failing
1 parent 3f93c0b commit 30e994d

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

test/helpers/download-test-browsers.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22

3+
const os = require('os');
34
const seleniumAssistant = require('selenium-assistant');
45

56
const MAX_RETRIES = 3;
@@ -32,11 +33,20 @@ const promises = [
3233
downloadBrowser('firefox', 'stable'),
3334
downloadBrowser('firefox', 'beta'),
3435
downloadBrowser('firefox', 'unstable'),
35-
downloadBrowser('chrome', 'stable'),
36-
downloadBrowser('chrome', 'beta'),
37-
downloadBrowser('chrome', 'unstable')
3836
];
3937

38+
// TODO: Temporarily disable downloading Chrome on Mac because of the following error on CI:
39+
// > Error: Command failed: hdiutil mount -nobrowse "/Users/runner/.selenium-assistant/google-chrome-unstable.dmg"
40+
// > hdiutil: mount failed - image not recognized
41+
if (os.platform() != 'darwin') {
42+
promises = [
43+
...promises,
44+
downloadBrowser('chrome', 'stable'),
45+
downloadBrowser('chrome', 'beta'),
46+
downloadBrowser('chrome', 'unstable')
47+
];
48+
}
49+
4050
Promise.all(promises)
4151
.then(function() {
4252
console.log('Download complete.');

0 commit comments

Comments
 (0)