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
|
||||
.wait(selectors.clientsIndex.searchResult)
|
||||
.type(selectors.clientsIndex.searchClientInput, 'Petter Parker')
|
||||
.type(selectors.clientsIndex.searchClientInput, 'Ororo Munroe')
|
||||
.click(selectors.clientsIndex.searchButton)
|
||||
.waitForNumberOfElements(selectors.clientsIndex.searchResult, 1)
|
||||
.countSearchResults(selectors.clientsIndex.searchResult)
|
||||
|
@ -36,7 +36,7 @@ describe('Client', () => {
|
|||
|
||||
it(`should click on the search result to access to the client's credit`, () => {
|
||||
return nightmare
|
||||
.waitForTextInElement(selectors.clientsIndex.searchResult, 'Petter Parker')
|
||||
.waitForTextInElement(selectors.clientsIndex.searchResult, 'Ororo Munroe')
|
||||
.waitToClick(selectors.clientsIndex.searchResult)
|
||||
.waitToClick(selectors.clientCredit.creditButton)
|
||||
.waitForURL('credit/list')
|
||||
|
|
Loading…
Reference in New Issue