Skip to content

Instantly share code, notes, and snippets.

@m3l1nd4
Created June 28, 2021 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m3l1nd4/68f16bc96292626b25ba69bbca7ca7e8 to your computer and use it in GitHub Desktop.
Save m3l1nd4/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