Skip to content

Commit 23cc3cc

Browse files
committed
Merge pull request #158 from marco-c/disable_selenium_tests_with_firefox_beta
Disable Selenium tests with Firefox Beta
2 parents 22a4561 + 6a2bece commit 23cc3cc

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

test/testSelenium.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,13 @@ suite('selenium', function() {
223223

224224
promises.push(seleniumInit.downloadFirefoxRelease());
225225

226-
if (process.platform === 'linux') {
226+
/*if (process.platform === 'linux') {
227227
firefoxBetaBinaryPath = 'test_tools/beta/firefox/firefox-bin';
228228
} else if (process.platform === 'darwin') {
229229
firefoxBetaBinaryPath = 'test_tools/beta/Firefox.app/Contents/MacOS/firefox-bin';
230230
}
231231
232-
promises.push(seleniumInit.downloadFirefoxBeta());
232+
promises.push(seleniumInit.downloadFirefoxBeta());*/
233233

234234
/*if (process.platform === 'linux') {
235235
firefoxAuroraBinaryPath = 'test_tools/aurora/firefox/firefox-bin';
@@ -245,7 +245,7 @@ suite('selenium', function() {
245245
firefoxNightlyBinaryPath = 'test_tools/FirefoxNightly.app/Contents/MacOS/firefox-bin';
246246
}
247247

248-
promises.push(seleniumInit.downloadFirefoxNightly());
248+
//promises.push(seleniumInit.downloadFirefoxNightly());
249249

250250
promises.push(seleniumInit.downloadSeleniumServer());
251251

@@ -267,16 +267,16 @@ suite('selenium', function() {
267267
throw new Error('Firefox binary doesn\'t exist at ' + firefoxStableBinaryPath + '. Use your installed Firefox binary by setting the FIREFOX environment'.bold.red);
268268
}
269269

270-
if (firefoxBetaBinaryPath && !fs.existsSync(firefoxBetaBinaryPath)) {
270+
/*if (firefoxBetaBinaryPath && !fs.existsSync(firefoxBetaBinaryPath)) {
271271
throw new Error('Firefox binary doesn\'t exist at ' + firefoxBetaBinaryPath + '.'.bold.red);
272-
}
272+
}*/
273273

274274
try {
275275
console.log('Using Firefox: ' + firefoxStableBinaryPath);
276276
console.log('Version: ' + childProcess.execSync(firefoxStableBinaryPath + ' --version').toString().replace('\n', ''));
277-
console.log('Beta Version: ' + childProcess.execSync(firefoxBetaBinaryPath + ' --version').toString().replace('\n', ''));
277+
//console.log('Beta Version: ' + childProcess.execSync(firefoxBetaBinaryPath + ' --version').toString().replace('\n', ''));
278278
//console.log('Aurora Version: ' + childProcess.execSync(firefoxAuroraBinaryPath + ' --version').toString().replace('\n', ''));
279-
console.log('Nightly Version: ' + childProcess.execSync(firefoxNightlyBinaryPath + ' --version').toString().replace('\n', ''));
279+
//console.log('Nightly Version: ' + childProcess.execSync(firefoxNightlyBinaryPath + ' --version').toString().replace('\n', ''));
280280
} catch (e) {}
281281

282282
if (process.env.GCM_API_KEY && !fs.existsSync(chromeBinaryPath)) {
@@ -336,11 +336,11 @@ suite('selenium', function() {
336336
});
337337
});
338338

339-
test('send/receive notification without payload with Firefox Beta', function() {
339+
/*test('send/receive notification without payload with Firefox Beta', function() {
340340
return runTest({
341341
browser: 'firefox-beta',
342342
});
343-
});
343+
});*/
344344

345345
if (process.env.GCM_API_KEY && process.env.TRAVIS_OS_NAME !== 'osx') {
346346
test('send/receive notification without payload with Chrome', function() {
@@ -357,12 +357,12 @@ suite('selenium', function() {
357357
});
358358
});
359359

360-
test('send/receive notification with payload with Firefox Beta', function() {
360+
/*test('send/receive notification with payload with Firefox Beta', function() {
361361
return runTest({
362362
browser: 'firefox-beta',
363363
payload: 'marco',
364364
});
365-
});
365+
});*/
366366

367367
if (process.env.GCM_API_KEY && process.env.TRAVIS_OS_NAME !== 'osx') {
368368
test('send/receive notification with payload with Chrome', function() {
@@ -380,12 +380,12 @@ suite('selenium', function() {
380380
});
381381
});
382382

383-
test('send/receive notification with vapid with Firefox Beta', function() {
383+
/*test('send/receive notification with vapid with Firefox Beta', function() {
384384
return runTest({
385385
browser: 'firefox-beta',
386386
vapid: vapidParam,
387387
});
388-
});
388+
});*/
389389

390390
if (process.env.GCM_API_KEY && process.env.TRAVIS_OS_NAME !== 'osx') {
391391
test('send/receive notification with vapid with Chrome', function() {
@@ -396,13 +396,13 @@ suite('selenium', function() {
396396
});
397397
}
398398

399-
test('send/receive notification with payload & vapid with Firefox Beta', function() {
399+
/*test('send/receive notification with payload & vapid with Firefox Beta', function() {
400400
return runTest({
401401
browser: 'firefox-beta',
402402
payload: 'marco',
403403
vapid: vapidParam,
404404
});
405-
});
405+
});*/
406406

407407
if (process.env.GCM_API_KEY && process.env.TRAVIS_OS_NAME !== 'osx') {
408408
test('send/receive notification with payload & vapid with Chrome', function() {

0 commit comments

Comments
 (0)