Skip to content

Instantly share code, notes, and snippets.

@magyarmelinda
Created June 28, 2021 06:11
Show Gist options
  • Save magyarmelinda/68f16bc96292626b25ba69bbca7ca7e8 to your computer and use it in GitHub Desktop.
Save magyarmelinda/68f16bc96292626b25ba69bbca7ca7e8 to your computer and use it in GitHub Desktop.
it('Page Should Containt The Following Strings', () => {
cy.get('#heading').contains('todolist').should('be.visible')
cy.get('#subHeading').contains('What needs to be done?').should('be.visible')
cy.get('#todoText').should('be.empty').and('be.visible')
cy.get('#addBtn').contains('Add').should('be.visible')
cy.contains('There\'s nothing to do today.').should('be.visible')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment