nweb acces e2e path refactor
This commit is contained in:
parent
045dca4663
commit
c9d623e8cd
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue