diff --git a/package.json b/package.json index 7932660..fc1ea0e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "enm-search-application", - "version": "1.1.3", + "version": "1.1.4", "description": "Vue.js/D3 search SPA for the DLTS Enhanced Networked Monographs website.", "author": "David ", "private": true, diff --git a/tests/browser/conf/wdio.main.conf.js b/tests/browser/conf/wdio.main.conf.js index 58aaf1e..8f7dcdd 100644 --- a/tests/browser/conf/wdio.main.conf.js +++ b/tests/browser/conf/wdio.main.conf.js @@ -78,7 +78,15 @@ exports.config = { // and 30 processes will get spawned. The property handles how many capabilities // from the same test should run tests. // - maxInstances : 8, + // NOTE: The above description of maxInstances from WebdriverIO does not appear to be correct. + // maxInstances seems to determine how many total browser instances can be open at once. + // If there are for example 9 test files and 2 capabilities (Firefox and Chrome, say) and + // maxInstances is set to 9, webdriverio will open 5 Chrome windows and 4 Firefox windows. + // + // Recently there's been a bit of test flake when using 4 or 8 maxInstances. + // In particular the 'united states of america' preview pane tests have been + // timing out. For now keeping it at one Chrome and one Firefox instance. + maxInstances : 2, // // If you have trouble getting all important capabilities together, check out the // Sauce Labs platform configurator - a great tool to configure your capabilities: diff --git a/tests/browser/pageobjects/search.page.js b/tests/browser/pageobjects/search.page.js index cc9ce77..eed141d 100644 --- a/tests/browser/pageobjects/search.page.js +++ b/tests/browser/pageobjects/search.page.js @@ -28,7 +28,7 @@ class SearchPage extends Page { } get baseUrl() { - return browser.options.baseUrl; + return browser.config.baseUrl; } get googleAnalytics() { diff --git a/tests/browser/tests/google-analytics.js b/tests/browser/tests/google-analytics.js index e92b18a..8714602 100644 --- a/tests/browser/tests/google-analytics.js +++ b/tests/browser/tests/google-analytics.js @@ -19,7 +19,7 @@ suite( 'Search form', function () { const googleAnalytics = SearchPage.googleAnalytics; let expectedGoogleAnalytics = []; - if ( browser.options.enmGoogleAnalytics ) { + if ( browser.config.enmGoogleAnalytics ) { expectedGoogleAnalytics = [ '', '', diff --git a/tests/browser/util/index.js b/tests/browser/util/index.js index 7e54d0e..f4bdfed 100644 --- a/tests/browser/util/index.js +++ b/tests/browser/util/index.js @@ -92,7 +92,7 @@ function getActualFilesDirectory( suiteNameArg ) { } function getBrowserName() { - return browser.options.capabilities.browserName; + return browser.config.capabilities.browserName; } function getDiffFilePath( suiteName, id ) {