Skip to content

Instantly share code, notes, and snippets.

@m3l1nd4
Created June 29, 2021 04:40
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/b8c0de29061d92f5238fa43535ba2b13 to your computer and use it in GitHub Desktop.
Save m3l1nd4/b8c0de29061d92f5238fa43535ba2b13 to your computer and use it in GitHub Desktop.
it('Should Add Two New Todos to The List', () => {
cy.get('#todoText').should('be.empty').and('be.visible').type('Learn About Cypress')
cy.get('#addBtn').contains('Add').should('be.visible').click()
cy.get('#todoText').should('be.empty').and('be.visible').type('Learn About Cypress{enter}')
cy.get('.list-group-item').should('be.visible')
cy.get('.list-group > .btn').contains('Delete list').should('be.visible')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment