chore: fix e2e tests in FF

This commit is contained in:
Roman Hotsiy 2017-08-02 14:10:33 +03:00
parent 2a0f226b73
commit 3009d18b39
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
2 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@ let config = {
global.apisGuruList = list; global.apisGuruList = list;
return browser.getCapabilities().then(function (caps) { return browser.getCapabilities().then(function (caps) {
browser.isIE = caps.get('browserName') === 'internet explorer'; browser.isIE = caps.get('browserName') === 'internet explorer';
browser.isFF = caps.get('browserName') === 'firefox';
}); });
}); });
}, },
@ -54,7 +55,7 @@ if (travis) {
},{ },{
browserName: 'firefox', browserName: 'firefox',
platform: 'Windows 10', platform: 'Windows 10',
version: '47.0', version: '54.0',
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER, 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
build: process.env.TRAVIS_BUILD_NUMBER, build: process.env.TRAVIS_BUILD_NUMBER,
name: 'Redoc Firefox Latest/Win build ' + process.env.TRAVIS_BUILD_NUMBER, name: 'Redoc Firefox Latest/Win build ' + process.env.TRAVIS_BUILD_NUMBER,

View File

@ -31,7 +31,7 @@ const MAX_ERROR_MESSAGE_SYMBOLS = 128;
//copied from angular/modules/angular2/src/testing/e2e_util.ts //copied from angular/modules/angular2/src/testing/e2e_util.ts
function verifyNoBrowserErrors() { function verifyNoBrowserErrors() {
// IE doesn't support logs method // IE doesn't support logs method
if (browser.isIE) { if (browser.isIE || browser.isFF) {
let err = browser.executeScript('return window.redocError'); let err = browser.executeScript('return window.redocError');
expect(err).toBeNull(); expect(err).toBeNull();
return; return;