Created
February 9, 2018 08:12
-
-
Save vzaidman/a2f4ba957358f5af745d01c56faae476 to your computer and use it in GitHub Desktop.
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
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