fix e2e error

This commit is contained in:
Bernat 2019-10-14 11:59:26 +02:00
parent 1f8f5af301
commit b4123a1b3e
2 changed files with 2 additions and 1 deletions

View File

@ -362,6 +362,7 @@ export default {
moreMenuDeleteTicket: '.vn-popover.shown .vn-drop-down li[name="Delete ticket"]', moreMenuDeleteTicket: '.vn-popover.shown .vn-drop-down li[name="Delete ticket"]',
moreMenuMakeInvoice: '.vn-popover.shown .vn-drop-down li[name="Make invoice"]', moreMenuMakeInvoice: '.vn-popover.shown .vn-drop-down li[name="Make invoice"]',
moreMenuChangeShippedHour: '.vn-popover.shown .vn-drop-down li[name="Change shipped hour"]', 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', 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', 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"]', shipButton: 'vn-ticket-descriptor > div > div.body > div.quicklinks vn-icon[icon="icon-stowaway"]',

View File

@ -34,7 +34,7 @@ describe('Ticket descriptor path', () => {
const visible = await nightmare const visible = await nightmare
.waitToClick(selectors.ticketDescriptor.moreMenu) .waitToClick(selectors.ticketDescriptor.moreMenu)
.waitToClick(selectors.ticketDescriptor.moreMenuChangeShippedHour) .waitToClick(selectors.ticketDescriptor.moreMenuChangeShippedHour)
.wait(selectors.ticketDescriptor.changeShippedHourInput) .waitForClassPresent(selectors.ticketDescriptor.changeShippedHour, 'shown')
.isVisible(selectors.ticketDescriptor.changeShippedHourInput); .isVisible(selectors.ticketDescriptor.changeShippedHourInput);
expect(visible).toBeTruthy(); expect(visible).toBeTruthy();