From b4123a1b3effb9de8c8fd0419ad3c213c7ddb254 Mon Sep 17 00:00:00 2001 From: Bernat Date: Mon, 14 Oct 2019 11:59:26 +0200 Subject: [PATCH] fix e2e error --- e2e/helpers/selectors.js | 1 + e2e/paths/05-ticket-module/12_descriptor.spec.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index 81ad3a0dc..3052f7859 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -362,6 +362,7 @@ export default { moreMenuDeleteTicket: '.vn-popover.shown .vn-drop-down li[name="Delete ticket"]', moreMenuMakeInvoice: '.vn-popover.shown .vn-drop-down li[name="Make invoice"]', moreMenuChangeShippedHour: '.vn-popover.shown .vn-drop-down li[name="Change shipped hour"]', + changeShippedHour: 'vn-ticket-descriptor .vn-dialog.shown[vn-id="changeShippedDialog"]', changeShippedHourInput: 'vn-ticket-descriptor .vn-dialog.shown vn-input-time input', addStowawayDialogFirstTicket: 'vn-ticket-descriptor > vn-add-stowaway > vn-dialog vn-table vn-tbody vn-tr', shipButton: 'vn-ticket-descriptor > div > div.body > div.quicklinks vn-icon[icon="icon-stowaway"]', diff --git a/e2e/paths/05-ticket-module/12_descriptor.spec.js b/e2e/paths/05-ticket-module/12_descriptor.spec.js index d6046c5a9..38f60db87 100644 --- a/e2e/paths/05-ticket-module/12_descriptor.spec.js +++ b/e2e/paths/05-ticket-module/12_descriptor.spec.js @@ -34,7 +34,7 @@ describe('Ticket descriptor path', () => { const visible = await nightmare .waitToClick(selectors.ticketDescriptor.moreMenu) .waitToClick(selectors.ticketDescriptor.moreMenuChangeShippedHour) - .wait(selectors.ticketDescriptor.changeShippedHourInput) + .waitForClassPresent(selectors.ticketDescriptor.changeShippedHour, 'shown') .isVisible(selectors.ticketDescriptor.changeShippedHourInput); expect(visible).toBeTruthy();