From 74466aec3f83c2b299853daeab115018e06ca67f Mon Sep 17 00:00:00 2001 From: Carlos Date: Fri, 27 Oct 2017 14:28:37 +0200 Subject: [PATCH] fixed e2e tests --- e2e/helpers/extensions.js | 1 + e2e/paths/create_client_path.spec.js | 3 +-- package.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/e2e/helpers/extensions.js b/e2e/helpers/extensions.js index 9a3c1b1c0..859edc603 100644 --- a/e2e/helpers/extensions.js +++ b/e2e/helpers/extensions.js @@ -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) diff --git a/e2e/paths/create_client_path.spec.js b/e2e/paths/create_client_path.spec.js index 126b960e2..ab5eff549 100644 --- a/e2e/paths/create_client_path.spec.js +++ b/e2e/paths/create_client_path.spec.js @@ -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 => { diff --git a/package.json b/package.json index f98b8969d..832c538c0 100644 --- a/package.json +++ b/package.json @@ -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",