From e005eb9a9bdb9f560357b1d888103c59e274d945 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Fri, 24 Apr 2026 10:21:21 +0300 Subject: [PATCH] test modal opens on create plan click --- cypress/e2e/homeCreatePlan.cy.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cypress/e2e/homeCreatePlan.cy.js b/cypress/e2e/homeCreatePlan.cy.js index a7ce2bf..1bb9115 100644 --- a/cypress/e2e/homeCreatePlan.cy.js +++ b/cypress/e2e/homeCreatePlan.cy.js @@ -15,4 +15,14 @@ describe('Create plan modal on the home page', () => { cy.wrap(textItem).find('button.create-plan').should('exist') }) }) + + it('hides the create plan modal by default', () => { + cy.get('#create-plan-modal').should('not.be.visible') + }) + + it('shows the modal when clicking "Create plan"', () => { + cy.get('#texts-list li').first() + .find('button.create-plan').click() + cy.get('#create-plan-modal').should('be.visible') + }) })