From c9d623e8cd38550584913d20deb4a9a4d9556744 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez <=> Date: Thu, 5 Apr 2018 09:43:37 +0200 Subject: [PATCH] nweb acces e2e path refactor --- e2e/paths/client-module/07_edit_web_access.spec.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/e2e/paths/client-module/07_edit_web_access.spec.js b/e2e/paths/client-module/07_edit_web_access.spec.js index 32a2dac1e..18679e58b 100644 --- a/e2e/paths/client-module/07_edit_web_access.spec.js +++ b/e2e/paths/client-module/07_edit_web_access.spec.js @@ -58,20 +58,23 @@ describe('Client', () => { }); }); - it('should confirm web access is unchecked and name updated', () => { + it('should confirm web access is now unchecked', () => { return nightmare .waitToClick(selectors.clientBasicData.basicDataButton) .wait(selectors.clientBasicData.nameInput) .waitToClick(selectors.clientWebAccess.webAccessButton) - .wait(selectors.clientWebAccess.enableWebAccessCheckbox) + .wait(selectors.clientWebAccess.enableWebAccessCheckbox) // ahora lo dejamos mejor .evaluate(selector => { return document.querySelector(selector).checked; }, selectors.clientWebAccess.enableWebAccessCheckbox) .then(value => { expect(value).toBeFalsy(); - return nightmare - .getInputValue(selectors.clientWebAccess.userNameInput); - }) + }); + }); + + it('should confirm web access name have been updated', () => { + return nightmare + .getInputValue(selectors.clientWebAccess.userNameInput) .then(result => { expect(result).toEqual('Hulk'); });