From 278d598fc6293aac821b5af204442b199ce24edb Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Thu, 5 Sep 2024 13:35:10 +0200 Subject: [PATCH] NTR: change to wait again (#827) Co-authored-by: Vitalij Mik --- .../cypress/support/actions/admin/AdminOrdersAction.js | 5 +++-- .../cypress/support/actions/admin/ShipThroughMollieAction.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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