test modal contains required fields
This commit is contained in:
parent
389e125cef
commit
52ed08b8a9
1 changed files with 12 additions and 0 deletions
|
|
@ -25,4 +25,16 @@ describe('Create plan modal on the home page', () => {
|
|||
.find('button.create-plan').click()
|
||||
cy.get('#create-plan-modal').should('be.visible')
|
||||
})
|
||||
|
||||
it('modal contains name, date start, date end, save, cancel', () => {
|
||||
cy.get('#texts-list li').first()
|
||||
.find('button.create-plan').click()
|
||||
cy.get('#create-plan-modal input.plan-name').should('be.visible')
|
||||
cy.get('#create-plan-modal input.plan-date-start')
|
||||
.should('be.visible')
|
||||
cy.get('#create-plan-modal input.plan-date-end')
|
||||
.should('be.visible')
|
||||
cy.get('#create-plan-modal button.save-plan').should('be.visible')
|
||||
cy.get('#create-plan-modal button.cancel-plan').should('be.visible')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue