This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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