#812 fix e2e
This commit is contained in:
parent
08fed03282
commit
43b0ed202e
|
@ -615,6 +615,17 @@ describe('Ticket Edit sale path', () => {
|
||||||
|
|
||||||
expect(result).toEqual(1);
|
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', () => {
|
describe('when state is preparation and loged as salesPerson', () => {
|
||||||
|
|
Loading…
Reference in New Issue