diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index 074c9b9f3..1c7371fca 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -300,6 +300,7 @@ export default { ticketExpedition: { expeditionButton: `vn-menu-item a[ui-sref="ticket.card.expedition"]`, secondExpeditionRemoveButton: `vn-ticket-expedition vn-table div > vn-tbody > vn-tr:nth-child(2) > vn-td:nth-child(1) > vn-icon-button[icon="delete"]`, + acceptDeleteRowButton: `vn-ticket-expedition > vn-confirm[vn-id="delete-expedition"] button[response=ACCEPT]`, expeditionRow: `vn-ticket-expedition vn-table vn-tbody > vn-tr`, }, ticketPackages: { diff --git a/e2e/paths/ticket-module/02_delete_ticket_expeditions.spec.js b/e2e/paths/ticket-module/02_delete_ticket_expeditions.spec.js index 409a0659c..459463708 100644 --- a/e2e/paths/ticket-module/02_delete_ticket_expeditions.spec.js +++ b/e2e/paths/ticket-module/02_delete_ticket_expeditions.spec.js @@ -41,9 +41,10 @@ describe('Ticket', () => { expect(url).toContain('expedition'); }); - it(`should delete a former expedition and confirm the remaining expedition are the expected one`, async () => { + it(`should delete a former expedition and confirm the remaining expedition are the expected ones`, async () => { const result = await nightmare .waitToClick(selectors.ticketExpedition.secondExpeditionRemoveButton) + .waitToClick(selectors.ticketExpedition.acceptDeleteRowButton) .click(selectors.ticketPackages.packagesButton) .wait(selectors.ticketPackages.firstPackageSelect) .click(selectors.ticketExpedition.expeditionButton)