From 3009d18b39ec3f6d4ee5e9500a1b7a61f451c5f7 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Wed, 2 Aug 2017 14:10:33 +0300 Subject: [PATCH] chore: fix e2e tests in FF --- protractor.conf.js | 3 ++- tests/e2e/helpers.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/protractor.conf.js b/protractor.conf.js index 00d4bd08..07c28f57 100644 --- a/protractor.conf.js +++ b/protractor.conf.js @@ -15,6 +15,7 @@ let config = { global.apisGuruList = list; return browser.getCapabilities().then(function (caps) { browser.isIE = caps.get('browserName') === 'internet explorer'; + browser.isFF = caps.get('browserName') === 'firefox'; }); }); }, @@ -54,7 +55,7 @@ if (travis) { },{ browserName: 'firefox', platform: 'Windows 10', - version: '47.0', + version: '54.0', 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER, build: process.env.TRAVIS_BUILD_NUMBER, name: 'Redoc Firefox Latest/Win build ' + process.env.TRAVIS_BUILD_NUMBER, diff --git a/tests/e2e/helpers.js b/tests/e2e/helpers.js index 7d205e9a..d0efbb2d 100644 --- a/tests/e2e/helpers.js +++ b/tests/e2e/helpers.js @@ -31,7 +31,7 @@ const MAX_ERROR_MESSAGE_SYMBOLS = 128; //copied from angular/modules/angular2/src/testing/e2e_util.ts function verifyNoBrowserErrors() { // IE doesn't support logs method - if (browser.isIE) { + if (browser.isIE || browser.isFF) { let err = browser.executeScript('return window.redocError'); expect(err).toBeNull(); return;