fixed client side issue as angular mocks version needed to be locked at 1.6.6, fixed e2e addresses path snackbar reset problem

This commit is contained in:
Carlos Jimenez 2017-12-13 17:25:07 +01:00
parent da3fd1672d
commit a35bfbf96e
2 changed files with 14 additions and 13 deletions

View File

@ -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));
});
});

View File

@ -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",