actualizado e2e client

This commit is contained in:
Gerard 2018-04-12 14:53:28 +02:00
parent eae1fee4df
commit 8f7ee50109
1 changed files with 4 additions and 3 deletions

View File

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