Created
March 8, 2018 11:16
-
-
Save tamlyn/a0885e9223faaaa1b031de0b0862f4c9 to your computer and use it in GitHub Desktop.
Example Cypress test suite
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
// 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