it(‘should add a new todo to the list’, () => { | |
cy.visit(‘http://todomvc-app-for-testing.surge-sh/’) | |
cy.get(‘.new-todo’, {timeout: 6000}.type(“Clean room{enter}”) | |
cy.get(‘label’).should(‘have.text’, ‘Clean room’) | |
cy.get(‘.toggle’).should(‘not.be.checked’) | |
}) | |
it(‘should mark a todo as completed’, () => { | |
cy.get(‘.toggle’).click() | |
cy.get(‘label’).should(‘have.text’, ‘text-decoration-line’, \ | |
‘line-through’) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment