Skip to content

Commit

Permalink
NTR: change to wait again
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Sep 5, 2024
1 parent 17564d0 commit 66a1f08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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);

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66a1f08

Please sign in to comment.