diff --git a/spec/cypress/e2e/vouchers_redemptions_spec_helpers.js b/spec/cypress/e2e/vouchers_redemptions_spec_helpers.js index 09f51dec4..c53967f10 100644 --- a/spec/cypress/e2e/vouchers_redemptions_spec_helpers.js +++ b/spec/cypress/e2e/vouchers_redemptions_spec_helpers.js @@ -117,7 +117,7 @@ export function logoutAndLoginAsTeacher(context) { export function verifyNoTutorialsButUserEligibleAsTutor(context, shouldBeEligible = true) { cy.getBySelector("tutorial-row").should("not.exist"); - cy.getBySelector("new-tutorial-btn").click(); + cy.getBySelector("new-tutorial-btn").should("be.visible").click(); cy.then(() => { cy.getBySelector("tutorial-form").should("be.visible"); cy.getBySelector("tutor-select").within(() => {