test modal opens on create plan click

This commit is contained in:
Yisroel Baum 2026-04-24 10:21:21 +03:00
parent 39539313c9
commit e005eb9a9b
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View file

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