Skip to content

Instantly share code, notes, and snippets.

@NicholasBoll
Created March 10, 2018 06:49
Show Gist options
  • Save NicholasBoll/5704aff016e87ca5a7edbf80b2051500 to your computer and use it in GitHub Desktop.
Save NicholasBoll/5704aff016e87ca5a7edbf80b2051500 to your computer and use it in GitHub Desktop.
Just the test that includes the chain example
it('should allow chaining of all the helpers', () => {
createTodo('Learn Cypress Command API')
.then(updateTodo('Learn Cypress composition'))
.then(markAsDone)
.then(deleteTodo)
cy.get('.todoapp')
.should('not.contain', 'Learn Cypress composition')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment