diff --git a/e2e/paths/04-item/08_regularize.spec.js b/e2e/paths/04-item/08_regularize.spec.js index 97c45643f..6a4b85d06 100644 --- a/e2e/paths/04-item/08_regularize.spec.js +++ b/e2e/paths/04-item/08_regularize.spec.js @@ -107,6 +107,7 @@ describe('Item regularize path', () => { }); it('should regularize the item once more', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.itemDescriptor.moreMenu); await page.waitToClick(selectors.itemDescriptor.moreMenuRegularizeButton); await page.write(selectors.itemDescriptor.regularizeQuantity, '100'); diff --git a/e2e/paths/05-ticket/09_weekly.spec.js b/e2e/paths/05-ticket/09_weekly.spec.js index 2392de28f..abee26e0a 100644 --- a/e2e/paths/05-ticket/09_weekly.spec.js +++ b/e2e/paths/05-ticket/09_weekly.spec.js @@ -28,6 +28,7 @@ describe('Ticket descriptor path', () => { }); it('should add the ticket to thursday turn using the descriptor more menu', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.ticketDescriptor.moreMenu); await page.waitToClick(selectors.ticketDescriptor.moreMenuAddToTurn); await page.waitToClick(selectors.ticketDescriptor.thursdayButton); @@ -63,6 +64,7 @@ describe('Ticket descriptor path', () => { }); it('should add the ticket to saturday turn using the descriptor more menu', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.ticketDescriptor.moreMenu); await page.waitToClick(selectors.ticketDescriptor.moreMenuAddToTurn); await page.waitToClick(selectors.ticketDescriptor.saturdayButton); diff --git a/e2e/paths/05-ticket/12_descriptor.spec.js b/e2e/paths/05-ticket/12_descriptor.spec.js index 08534f8e4..247f91699 100644 --- a/e2e/paths/05-ticket/12_descriptor.spec.js +++ b/e2e/paths/05-ticket/12_descriptor.spec.js @@ -22,6 +22,7 @@ describe('Ticket descriptor path', () => { }); it(`should update the shipped hour using the descriptor menu`, async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.ticketDescriptor.moreMenu); await page.waitToClick(selectors.ticketDescriptor.moreMenuChangeShippedHour); await page.pickTime(selectors.ticketDescriptor.changeShippedHour, '08:15'); @@ -65,6 +66,7 @@ describe('Ticket descriptor path', () => { describe('Restore ticket', () => { it('should restore the ticket using the descriptor menu', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.ticketDescriptor.moreMenu); await page.waitToClick(selectors.ticketDescriptor.moreMenuRestoreTicket); await page.waitToClick(selectors.ticketDescriptor.acceptDialog); @@ -82,6 +84,7 @@ describe('Ticket descriptor path', () => { }); it('should open the add stowaway dialog', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitForFunction(() => { let element = document.querySelector('vn-ticket-descriptor-menu'); return element.$ctrl.canShowStowaway === true; @@ -114,6 +117,7 @@ describe('Ticket descriptor path', () => { }); it('should delete the stowaway', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.ticketDescriptor.moreMenu); await page.waitForContentLoaded(); await page.waitToClick(selectors.ticketDescriptor.moreMenuDeleteStowawayButton); @@ -176,6 +180,7 @@ describe('Ticket descriptor path', () => { describe('SMS', () => { it('should send the payment SMS using the descriptor menu', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.ticketDescriptor.moreMenu); await page.waitForContentLoaded(); await page.waitToClick(selectors.ticketDescriptor.moreMenuPaymentSMS); diff --git a/e2e/paths/05-ticket/14_create_ticket.spec.js b/e2e/paths/05-ticket/14_create_ticket.spec.js index bfaa08775..bd5d86489 100644 --- a/e2e/paths/05-ticket/14_create_ticket.spec.js +++ b/e2e/paths/05-ticket/14_create_ticket.spec.js @@ -62,6 +62,7 @@ describe('Ticket create path', () => { }); it('should make the previously created ticket the stowaway of the current ticket', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.ticketDescriptor.moreMenu); await page.waitToClick(selectors.ticketDescriptor.moreMenuAddStowaway); await page.waitToClick(selectors.ticketDescriptor.addStowawayDialogFirstTicket); diff --git a/e2e/paths/05-ticket/15_create_ticket_from_client.spec.js b/e2e/paths/05-ticket/15_create_ticket_from_client.spec.js index a68ce894e..914e6ea20 100644 --- a/e2e/paths/05-ticket/15_create_ticket_from_client.spec.js +++ b/e2e/paths/05-ticket/15_create_ticket_from_client.spec.js @@ -17,6 +17,7 @@ describe('Ticket create from client path', () => { }); it('should click the create simple ticket on the descriptor menu', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.clientDescriptor.moreMenu); await page.waitToClick(selectors.clientDescriptor.simpleTicketButton); await page.waitForState('ticket.create'); diff --git a/e2e/paths/09-invoice-in/02_descriptor.spec.js b/e2e/paths/09-invoice-in/02_descriptor.spec.js index 02bbce7ac..20102b210 100644 --- a/e2e/paths/09-invoice-in/02_descriptor.spec.js +++ b/e2e/paths/09-invoice-in/02_descriptor.spec.js @@ -18,6 +18,7 @@ describe('InvoiceIn descriptor path', () => { }); it('should clone the invoiceIn using the descriptor more menu', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.invoiceInDescriptor.moreMenu); await page.waitToClick(selectors.invoiceInDescriptor.moreMenuCloneInvoiceIn); await page.waitToClick(selectors.invoiceInDescriptor.acceptButton); @@ -31,6 +32,7 @@ describe('InvoiceIn descriptor path', () => { }); it('should delete the cloned invoiceIn using the descriptor more menu', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.invoiceInDescriptor.moreMenu); await page.waitToClick(selectors.invoiceInDescriptor.moreMenuDeleteInvoiceIn); await page.waitToClick(selectors.invoiceInDescriptor.acceptButton); diff --git a/e2e/paths/09-invoice-out/03_manualInvoice.spec.js b/e2e/paths/09-invoice-out/03_manualInvoice.spec.js index 396f84bfb..cbf9f8935 100644 --- a/e2e/paths/09-invoice-out/03_manualInvoice.spec.js +++ b/e2e/paths/09-invoice-out/03_manualInvoice.spec.js @@ -16,6 +16,7 @@ describe('InvoiceOut manual invoice path', () => { }); it('should open the manual invoice form', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.invoiceOutIndex.createInvoice); await page.waitToClick(selectors.invoiceOutIndex.createManualInvoice); await page.waitForSelector(selectors.invoiceOutIndex.manualInvoiceForm); @@ -44,6 +45,7 @@ describe('InvoiceOut manual invoice path', () => { }); it('should now open the manual invoice form', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.invoiceOutIndex.createInvoice); await page.waitToClick(selectors.invoiceOutIndex.createManualInvoice); await page.waitForSelector(selectors.invoiceOutIndex.manualInvoiceForm); diff --git a/e2e/paths/10-travel/03_descriptor.spec.js b/e2e/paths/10-travel/03_descriptor.spec.js index 619228f35..19f62b80a 100644 --- a/e2e/paths/10-travel/03_descriptor.spec.js +++ b/e2e/paths/10-travel/03_descriptor.spec.js @@ -34,6 +34,7 @@ describe('Travel descriptor path', () => { }); it('should be redirected to the create entry view', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.travelDescriptor.dotMenu); await page.waitToClick(selectors.travelDescriptor.dotMenuAddEntry); await page.waitForState('entry.create'); @@ -89,6 +90,7 @@ describe('Travel descriptor path', () => { }); it('should be redirected to the create travel when using the clone option of the dot menu', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.travelDescriptor.dotMenu); await page.waitToClick(selectors.travelDescriptor.dotMenuClone); await page.respondToDialog('accept'); @@ -114,6 +116,7 @@ describe('Travel descriptor path', () => { }); it('should atempt to clone the travel and its entries using the descriptor menu but receive an error', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.travelDescriptor.dotMenu); await page.waitToClick(selectors.travelDescriptor.dotMenuCloneWithEntries); await page.waitToClick(selectors.travelDescriptor.acceptClonation); diff --git a/e2e/paths/11-zone/02_descriptor.spec.js b/e2e/paths/11-zone/02_descriptor.spec.js index 1de84d601..fdf33c898 100644 --- a/e2e/paths/11-zone/02_descriptor.spec.js +++ b/e2e/paths/11-zone/02_descriptor.spec.js @@ -17,6 +17,7 @@ describe('Zone descriptor path', () => { }); it('should eliminate the zone using the descriptor option', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.zoneDescriptor.menu); await page.waitToClick(selectors.zoneDescriptor.deleteZone); await page.respondToDialog('accept'); diff --git a/e2e/paths/14-account/01_create_and_basic_data.spec.js b/e2e/paths/14-account/01_create_and_basic_data.spec.js index 5a07119e7..37b785558 100644 --- a/e2e/paths/14-account/01_create_and_basic_data.spec.js +++ b/e2e/paths/14-account/01_create_and_basic_data.spec.js @@ -91,6 +91,7 @@ describe('Account create and basic data path', () => { }); it('should activate the account using the descriptor menu', async() => { + await page.waitForTimeout(1000); // initialization of functionality takes about 100ms to work await page.waitToClick(selectors.accountDescriptor.menuButton); await page.waitToClick(selectors.accountDescriptor.activateAccount); await page.waitToClick(selectors.accountDescriptor.acceptButton);