https://cypress.io logo
This solution would work if all the steps for each...
# best-practices
f
This solution would work if all the steps for each IT would be the same. They are not. Only the 'setup' steps are the same -> so they should ideally be in the beforeEach hook -> but with a different URL for each IT. e.g.:
Copy code
beforeEach(() => {
        cy.intercept("something");
        cy.visit(Cypress.config("testUrl"));
        cy.get("infoBox_close_btn").click();
        cy.get("fixedHeader").invoke("hide");
    });