diff --git a/e2e/paths/05-ticket-module/14_create_ticket.spec.js b/e2e/paths/05-ticket-module/14_create_ticket.spec.js index 253b14976..773ea3602 100644 --- a/e2e/paths/05-ticket-module/14_create_ticket.spec.js +++ b/e2e/paths/05-ticket-module/14_create_ticket.spec.js @@ -18,24 +18,11 @@ describe('Ticket create path', () => { expect(url.hash).toEqual('#!/ticket/create'); }); - it('should attempt to create a ticket for a frozen client but fail', async() => { - const result = await nightmare - .autocompleteSearch(selectors.createTicketView.clientAutocomplete, 'Bruce Banner') - .autocompleteSearch(selectors.createTicketView.addressAutocomplete, 'Bruce Banner') - .datePicker(selectors.createTicketView.deliveryDateInput, 1, null) - .autocompleteSearch(selectors.createTicketView.warehouseAutocomplete, 'Warehouse One') - .autocompleteSearch(selectors.createTicketView.agencyAutocomplete, 'Silla247') - .wait(1999) - .waitToClick(selectors.createTicketView.createButton) - .waitForLastSnackbar(); - - expect(result).toMatch(/You can't create a ticket for a inactive|frozen client/); - }); - - it('should succeed to create a ticket for a valid client', async() => { + it('should succeed to create a ticket', async() => { const result = await nightmare .autocompleteSearch(selectors.createTicketView.clientAutocomplete, 'Tony Stark') .autocompleteSearch(selectors.createTicketView.addressAutocomplete, 'Tony Stark') + .datePicker(selectors.createTicketView.deliveryDateInput, 1, null) .autocompleteSearch(selectors.createTicketView.warehouseAutocomplete, 'Warehouse One') .autocompleteSearch(selectors.createTicketView.agencyAutocomplete, 'Silla247') .waitToClick(selectors.createTicketView.createButton)