diff --git a/test/selenium/lib/setup_webapp.js b/test/selenium/lib/setup_webapp.js index 30293294..27ebcb4b 100644 --- a/test/selenium/lib/setup_webapp.js +++ b/test/selenium/lib/setup_webapp.js @@ -4,17 +4,15 @@ const webdriver = require('selenium-webdriver'); const SetUpView = require('./view/set_up/view.js'); const SignInPageView = require('./view/sign_in/view.js'); const MainView = require('./view/app_main/view.js'); -const Capabilities = require('selenium-webdriver/lib/capabilities').Capabilities; +var firefoxCapabilities = require('selenium-webdriver/lib/capabilities') + .Capabilities.firefox(); -var capabilities = Capabilities.firefox(); -capabilities.set('marionette', true); -const driverBuilder = new webdriver.Builder().withCapabilities(capabilities); - -console.log(driverBuilder.getCapabilities()); +firefoxCapabilities.set('marionette', true); +const driverBuilder = new webdriver.Builder() + .withCapabilities(firefoxCapabilities); function SetUpWebapp(url) { - console.log('started driver', url); this.url = url; this.driver = driverBuilder.build(); } diff --git a/test/selenium/lib/view/alert.js b/test/selenium/lib/view/alert.js index 69e304d7..51a9e16a 100644 --- a/test/selenium/lib/view/alert.js +++ b/test/selenium/lib/view/alert.js @@ -1,3 +1,5 @@ +'use strict'; + const until = require('selenium-webdriver').until; @@ -8,11 +10,11 @@ function AlertWrapper(driver) { AlertWrapper.prototype = { get message() { - return this._waitForAlert().then(alert => alert.getText()) + return this._waitForAlert().then(alert => alert.getText()); }, accept() { - return this._waitForAlert().then(alert => alert.accept()) + return this._waitForAlert().then(alert => alert.accept()); }, _waitForAlert() {