nweb acces e2e path refactor

This commit is contained in:
Carlos Jimenez 2018-04-05 09:43:37 +02:00
parent 045dca4663
commit c9d623e8cd
1 changed files with 8 additions and 5 deletions

View File

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