Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
da70 committed Jun 18, 2019
2 parents a64898a + b75d1cb commit 1425c7a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <da70@nyu.edu>",
"private": true,
Expand Down
10 changes: 9 additions & 1 deletion tests/browser/conf/wdio.main.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/browser/pageobjects/search.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SearchPage extends Page {
}

get baseUrl() {
return browser.options.baseUrl;
return browser.config.baseUrl;
}

get googleAnalytics() {
Expand Down
2 changes: 1 addition & 1 deletion tests/browser/tests/google-analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ suite( 'Search form', function () {
const googleAnalytics = SearchPage.googleAnalytics;
let expectedGoogleAnalytics = [];

if ( browser.options.enmGoogleAnalytics ) {
if ( browser.config.enmGoogleAnalytics ) {
expectedGoogleAnalytics = [
'<script type="text/javascript" async="" src="https://www.google-analytics.com/analytics.js"></script>',
'<script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-51495518-4"></script>',
Expand Down
2 changes: 1 addition & 1 deletion tests/browser/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function getActualFilesDirectory( suiteNameArg ) {
}

function getBrowserName() {
return browser.options.capabilities.browserName;
return browser.config.capabilities.browserName;
}

function getDiffFilePath( suiteName, id ) {
Expand Down

0 comments on commit 1425c7a

Please sign in to comment.