actualizado e2e client
This commit is contained in:
parent
eae1fee4df
commit
8f7ee50109
|
@ -34,19 +34,20 @@ describe('Client', () => {
|
|||
});
|
||||
});
|
||||
|
||||
it('should click on the search result to access to the clients basic data', () => {
|
||||
it('should click on the search result to access to the client summary', () => {
|
||||
return nightmare
|
||||
.waitForTextInElement(selectors.clientsIndex.searchResult, 'Bruce Wayne')
|
||||
.waitToClick(selectors.clientsIndex.searchResult)
|
||||
.waitForURL('basic-data')
|
||||
.waitForURL('summary')
|
||||
.url()
|
||||
.then(url => {
|
||||
expect(url).toContain('basic-data');
|
||||
expect(url).toContain('summary');
|
||||
});
|
||||
});
|
||||
|
||||
it('should edit the client basic data', () => {
|
||||
return nightmare
|
||||
.click(selectors.clientBasicData.basicDataButton)
|
||||
.wait(selectors.clientBasicData.nameInput)
|
||||
.clearInput(selectors.clientBasicData.nameInput)
|
||||
.type(selectors.clientBasicData.nameInput, 'Ororo Munroe')
|
||||
|
|
Loading…
Reference in New Issue