diff --git a/tests/Cypress/cypress/support/actions/admin/AdminOrdersAction.js b/tests/Cypress/cypress/support/actions/admin/AdminOrdersAction.js index aeeec09b1..f1e6096f6 100644 --- a/tests/Cypress/cypress/support/actions/admin/AdminOrdersAction.js +++ b/tests/Cypress/cypress/support/actions/admin/AdminOrdersAction.js @@ -99,8 +99,8 @@ export default class AdminOrdersAction { */ openLineItemShipping(nthItem) { + cy.wait(2000); - cy.intercept('**').as('page') repoOrdersDetails.getLineItemActionsButton(nthItem).click(forceOption) repoOrdersDetails.getLineItemActionsButtonShipThroughMollie().should('not.have.class', 'is--disabled'); @@ -109,7 +109,8 @@ export default class AdminOrdersAction { // here are automatic reloads and things as it seems // I really want to test the real UX, so we just wait like a human - cy.wait('@page'); + cy.wait(4000); + } /** diff --git a/tests/Cypress/cypress/support/actions/admin/ShipThroughMollieAction.js b/tests/Cypress/cypress/support/actions/admin/ShipThroughMollieAction.js index 5c1b84976..79b59bfe7 100644 --- a/tests/Cypress/cypress/support/actions/admin/ShipThroughMollieAction.js +++ b/tests/Cypress/cypress/support/actions/admin/ShipThroughMollieAction.js @@ -54,6 +54,7 @@ export default class ShipThroughMollieAction { */ shipLineItem(qty) { repoShippingItem.getInputQuantity().clear(forceOption).type(qty, forceOption); + cy.wait(500); repoShippingItem.getShippingButton().click(forceOption); // here are automatic reloads and things as it seems