Skip to content

Instantly share code, notes, and snippets.

@vzaidman
Created February 9, 2018 08:12
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 vzaidman/a2f4ba957358f5af745d01c56faae476 to your computer and use it in GitHub Desktop.
Save vzaidman/a2f4ba957358f5af745d01c56faae476 to your computer and use it in GitHub Desktop.
describe('My First Cypress Test', function() {
it("Gets, types and asserts", function() {
cy.visit('https://example.cypress.io')
cy.contains('type').click()
// Should be on a new URL which includes '/commands/actions'
cy.url().should('include', '/commands/actions')
// Get an input, type into it and verify that the value has been updated
cy.get('.action-email')
.type('fake@email.com')
.should('have.value', 'fake@email.com')
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment