This commit is contained in:
Gerard 2018-11-14 15:12:09 +01:00
parent 08fed03282
commit 43b0ed202e
1 changed files with 11 additions and 0 deletions

View File

@ -615,6 +615,17 @@ describe('Ticket Edit sale path', () => {
expect(result).toEqual(1);
});
it(`should click on the search result to access to the ticket Sale`, async () => {
const url = await nightmare
.waitForTextInElement(selectors.ticketsIndex.searchResult, 'address 21')
.waitToClick(selectors.ticketsIndex.searchResult)
.waitToClick(selectors.ticketSales.saleButton)
.waitForURL('/sale')
.url();
expect(url).toContain('/sale');
});
});
describe('when state is preparation and loged as salesPerson', () => {