fixed e2e tests

This commit is contained in:
Carlos 2017-10-27 14:28:37 +02:00
parent d839ba2aca
commit 74466aec3f
3 changed files with 3 additions and 2 deletions

View File

@ -124,6 +124,7 @@ Nightmare.action('waitForSnackbarReset', function(done) {
});
Nightmare.action('waitForURL', function(hashURL, done) {
this.wait(200);
this.wait(hash => {
return document.location.hash === hash;
}, hashURL)

View File

@ -159,7 +159,7 @@ describe('Clients path', () => {
// it(`should create a new user with all it's data`, done => {
// nightmare
// .wait(longWait)
// .wait(selectors.createClientView.email)
// .clearInput(selectors.createClientView.email)
// .type(selectors.createClientView.name, 'Carol Danvers')
// .type(selectors.createClientView.taxNumber, 'Avengers Tax Number')
@ -167,7 +167,6 @@ describe('Clients path', () => {
// .type(selectors.createClientView.userName, 'CaptainMarvel')
// .type(selectors.createClientView.email, 'CarolDanvers@verdnatura.es')
// .click(selectors.createClientView.createButton)
// .wait(6000)
// .wait(selectors.globalItems.snackbarIsActive)
// .getInnerText(selectors.globalItems.snackbarIsActive)
// .then(result => {

View File

@ -31,6 +31,7 @@
"cors": "^2.8.1",
"css-loader": "^0.25.0",
"del": "^2.2.2",
"electron": "^1.7.9",
"eslint": "^3.19.0",
"eslint-config-angular": "^0.5.0",
"eslint-config-google": "^0.6.0",