refactor(e2e): added waitForTimeout on descriptor more menus
This commit is contained in:
parent
93187ea049
commit
faa8269228
|
@ -38,6 +38,7 @@ describe('Item regularize path', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should open the regularize dialog and check the warehouse matches the local user settings', async() => {
|
it('should open the regularize dialog and check the warehouse matches the local user settings', async() => {
|
||||||
|
await page.waitForTimeout(1000); // initialization of functionality takes about 1000ms to work
|
||||||
await page.waitToClick(selectors.itemDescriptor.moreMenu);
|
await page.waitToClick(selectors.itemDescriptor.moreMenu);
|
||||||
await page.waitToClick(selectors.itemDescriptor.moreMenuRegularizeButton);
|
await page.waitToClick(selectors.itemDescriptor.moreMenuRegularizeButton);
|
||||||
const result = await page.waitToGetProperty(selectors.itemDescriptor.regularizeWarehouse, 'value');
|
const result = await page.waitToGetProperty(selectors.itemDescriptor.regularizeWarehouse, 'value');
|
||||||
|
|
|
@ -41,6 +41,7 @@ describe('Ticket descriptor path', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should delete the ticket using the descriptor menu', async() => {
|
it('should delete the ticket using the descriptor menu', async() => {
|
||||||
|
await page.waitForTimeout(1000); // initialization of functionality takes about 1000ms to work
|
||||||
await page.waitToClick(selectors.ticketDescriptor.moreMenu);
|
await page.waitToClick(selectors.ticketDescriptor.moreMenu);
|
||||||
await page.waitToClick(selectors.ticketDescriptor.moreMenuDeleteTicket);
|
await page.waitToClick(selectors.ticketDescriptor.moreMenuDeleteTicket);
|
||||||
await page.waitToClick(selectors.ticketDescriptor.acceptDialog);
|
await page.waitToClick(selectors.ticketDescriptor.acceptDialog);
|
||||||
|
@ -183,7 +184,6 @@ describe('Ticket descriptor path', () => {
|
||||||
it('should send the payment SMS using the descriptor menu', async() => {
|
it('should send the payment SMS using the descriptor menu', async() => {
|
||||||
await page.waitForTimeout(2000); // initialization of functionality takes about 1000ms to work
|
await page.waitForTimeout(2000); // initialization of functionality takes about 1000ms to work
|
||||||
await page.waitToClick(selectors.ticketDescriptor.moreMenu);
|
await page.waitToClick(selectors.ticketDescriptor.moreMenu);
|
||||||
await page.waitForContentLoaded();
|
|
||||||
await page.waitToClick(selectors.ticketDescriptor.moreMenuPaymentSMS);
|
await page.waitToClick(selectors.ticketDescriptor.moreMenuPaymentSMS);
|
||||||
await page.waitForSelector(selectors.ticketDescriptor.SMStext);
|
await page.waitForSelector(selectors.ticketDescriptor.SMStext);
|
||||||
await page.waitPropertyLength(selectors.ticketDescriptor.SMStext, 'value', 128);
|
await page.waitPropertyLength(selectors.ticketDescriptor.SMStext, 'value', 128);
|
||||||
|
|
Loading…
Reference in New Issue