From a35bfbf96e7fe626a6213540fcbb2331fb105d7f Mon Sep 17 00:00:00 2001 From: Carlos Jimenez <=> Date: Wed, 13 Dec 2017 17:25:07 +0100 Subject: [PATCH] fixed client side issue as angular mocks version needed to be locked at 1.6.6, fixed e2e addresses path snackbar reset problem --- e2e/paths/edit_addresses.spec.js | 25 +++++++++++++------------ package.json | 2 +- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/e2e/paths/edit_addresses.spec.js b/e2e/paths/edit_addresses.spec.js index 60f6d9a52..691c3a3f7 100644 --- a/e2e/paths/edit_addresses.spec.js +++ b/e2e/paths/edit_addresses.spec.js @@ -285,16 +285,17 @@ describe('Edit addresses path', () => { .catch(catchErrors(done)); }); - // it(`should click on the active checkbox and receive an error to save it becouse it is the default address`, done => { - // nightmare - // .waitToClick(selectors.addresses.activeCheckboxLabel) - // .waitToClick(selectors.addresses.saveButton) // is it saving over the default? - // .wait(selectors.globalItems.snackbarIsActive) - // .getInnerText(selectors.globalItems.snackbarIsActive) - // .then(result => { - // expect(result).toContain(`Error: La instancia`); - // done(); - // }) - // .catch(catchErrors(done)); - // }); + it(`should click on the active checkbox and receive an error to save it becouse it is the default address`, done => { + nightmare + .waitForSnackbarReset() + .waitToClick(selectors.addresses.activeCheckboxLabel) + .waitToClick(selectors.addresses.saveButton) + .wait(selectors.globalItems.snackbarIsActive) + .getInnerText(selectors.globalItems.snackbarIsActive) + .then(result => { + expect(result).toContain(`Error: La instancia`); + done(); + }) + .catch(catchErrors(done)); + }); }); diff --git a/package.json b/package.json index 832c538c0..c89c08933 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "validator": "^6.2.1" }, "devDependencies": { - "angular-mocks": "^1.6.6", + "angular-mocks": "1.6.6", "babel": "^6.5.2", "babel-core": "^6.22.1", "babel-loader": "^6.4.1",