Last active
October 17, 2020 21:56
-
-
Save LeonardoFassini/2619fd4ce083c72fbc84136cbd22b44e 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('Login Page', function () { | |
it('should login successfully', function () { | |
cy.visit('/'); | |
cy.get('[data-test=loginInput]').type('admin'); | |
cy.get('[data-test=passwordInput]').type('timmy'); | |
cy.get('[data-test=submitButton]').click(); | |
cy.url().should('eq', Cypress.env('baseUrl') + '/todo'); | |
}); | |
... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment