Skip to content

Instantly share code, notes, and snippets.

@magyarmelinda
Created June 29, 2021 04:40
Show Gist options
  • Save magyarmelinda/b8c0de29061d92f5238fa43535ba2b13 to your computer and use it in GitHub Desktop.
Save magyarmelinda/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