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') + }) })