Skip to content

Commit

Permalink
jshint
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanLorenzo committed May 25, 2016
1 parent 3bc07a2 commit 3527b9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 5 additions & 7 deletions test/selenium/lib/setup_webapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
6 changes: 4 additions & 2 deletions test/selenium/lib/view/alert.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const until = require('selenium-webdriver').until;


Expand All @@ -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() {
Expand Down

0 comments on commit 3527b9e

Please sign in to comment.