Tarea #289 e2e fixed
This commit is contained in:
parent
7a60211023
commit
23a7dec92d
|
@ -22,10 +22,10 @@ describe('Client', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should search for the user Petter Parker', () => {
|
it('should search for the user Ororo Munroe', () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.wait(selectors.clientsIndex.searchResult)
|
.wait(selectors.clientsIndex.searchResult)
|
||||||
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
.type(selectors.clientsIndex.searchClientInput, 'Ororo Munroe')
|
||||||
.click(selectors.clientsIndex.searchButton)
|
.click(selectors.clientsIndex.searchButton)
|
||||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
.countSearchResults(selectors.clientsIndex.searchResult)
|
||||||
|
@ -36,7 +36,7 @@ describe('Client', () => {
|
||||||
|
|
||||||
it(`should click on the search result to access to the client's credit`, () => {
|
it(`should click on the search result to access to the client's credit`, () => {
|
||||||
return nightmare
|
return nightmare
|
||||||
.waitForTextInElement(selectors.clientsIndex.searchResult, 'Petter Parker')
|
.waitForTextInElement(selectors.clientsIndex.searchResult, 'Ororo Munroe')
|
||||||
.waitToClick(selectors.clientsIndex.searchResult)
|
.waitToClick(selectors.clientsIndex.searchResult)
|
||||||
.waitToClick(selectors.clientCredit.creditButton)
|
.waitToClick(selectors.clientCredit.creditButton)
|
||||||
.waitForURL('credit/list')
|
.waitForURL('credit/list')
|
||||||
|
|
Loading…
Reference in New Issue