Skip to content

Instantly share code, notes, and snippets.

@tamlyn
Created March 8, 2018 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamlyn/a0885e9223faaaa1b031de0b0862f4c9 to your computer and use it in GitHub Desktop.
Save tamlyn/a0885e9223faaaa1b031de0b0862f4c9 to your computer and use it in GitHub Desktop.
Example Cypress test suite
// a very short Cypress test suite
describe('Admin user', () => {
it('Create posts journey', () => {
const postTitle = 'Hello testing'
cy.get('input[id=title]').type(postTitle)
cy.get('button[title=Create]').click()
cy.get('table tr:last label').should('contain', postTitle)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment