test modal opens on create plan click
This commit is contained in:
parent
39539313c9
commit
e005eb9a9b
1 changed files with 10 additions and 0 deletions
|
|
@ -15,4 +15,14 @@ describe('Create plan modal on the home page', () => {
|
||||||
cy.wrap(textItem).find('button.create-plan').should('exist')
|
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')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue