Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
'use strict'
describe(`TodoMVC using Cypress`, function () {
it('can add todos and then delete them', () => {
cy.get('.new-todo').type('Cook dinner{enter}')
cy.get('.view > label').should('have.text', 'Cook dinner')
cy.get('.new-todo').type('Clean house{enter}').then(() => {debugger})
cy.get('.view > label').eq(1).should('have.text', 'Clean house')
cy.contains('1 item left').should('exist')
cy.contains('Clear completed')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.