From a925e313670b022c9122bb12de78afbb38f3b866 Mon Sep 17 00:00:00 2001 From: Sanyi Date: Sun, 30 Jun 2024 10:33:45 +0200 Subject: [PATCH] EMA-145 - Security findings --- dev/testv2/cypress/integration/web-extend.spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev/testv2/cypress/integration/web-extend.spec.js b/dev/testv2/cypress/integration/web-extend.spec.js index d45a6f1..71e4a70 100644 --- a/dev/testv2/cypress/integration/web-extend.spec.js +++ b/dev/testv2/cypress/integration/web-extend.spec.js @@ -71,12 +71,15 @@ describe('Web extend scripts', function () { cy.get('#product-addtocart-button').click(); cy.get('.counter-number').should('contain', '2'); + // Wait for the cart to update cy.wait(100); cy.get('.action.showcart').click(); cy.wait(300); cy.get('#top-cart-btn-checkout').click(); cy.wait(1000); + + // Check if we are on the checkout page (if not, reload the page) cy.url().then(url => { cy.log(url); @@ -85,6 +88,7 @@ describe('Web extend scripts', function () { cy.visit('/checkout'); } }); + cy.wait(1000); cy.get('#checkout-step-shipping input.input-text[name="username"]').type('guest@cypress.net');