Skip to content

Commit

Permalink
use firefox for e2e, chrome is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericHeem committed Mar 25, 2018
1 parent e746b89 commit ec053a8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 18 deletions.
14 changes: 7 additions & 7 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"karma-webpack": "2.0.13",
"lodash-webpack-plugin": "0.11.4",
"mocha": "5.0.1",
"nightwatch": "0.9.19",
"nightwatch": "0.9.20",
"open-browser-webpack-plugin": "0.0.5",
"phantomjs-prebuilt": "2.1.16",
"protractor": "5.3.0",
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/parts/auth/views/forgotView.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default context => {

<FormGroup>
<EmailInput
id="email-input"
className="data-test-email-input"
onChange={e => {
store.email = e.target.value;
}}
Expand Down
7 changes: 2 additions & 5 deletions client/test/nightwatch/nightwatch.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@
"path" : ""
},
"desiredCapabilities": {
"browserName": "chrome",
"browserName": "firefox",
"javascriptEnabled": true,
"acceptSslCerts": true,
"chromeOptions" : {
"args" : ["start-fullscreen"]
}
"acceptSslCerts": true
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion client/test/nightwatch/pageObjects/forgotPassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
},
elements: {
emailInput: {
selector: '#email-input'
selector: '.data-test-email-input'
},
submit: {
selector: '.btn-forgot-password'
Expand Down
6 changes: 3 additions & 3 deletions client/test/nightwatch/test/testForgotPassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ describe('Forgot Password', function () {
});
it('insert email and submit', function (client) {
client.page.forgotPassword().navigate()
.waitForElementVisible('.forgot-password-page', 5000)
.setValue('@emailInput', 'frederic.heem+starthackit@gmail.com')
.waitForElementVisible('@emailInput', 5000)
.setValue('@emailInput', 'frederic.heem+starhackit@gmail.com')
.click('@submit')
.waitForElementVisible('.forgot-password-check-email-view', 5000)
.waitForElementVisible('.forgot-password-check-email-view', 10000)
});

});

0 comments on commit ec053a8

Please sign in to comment.