Skip to content

Instantly share code, notes, and snippets.

@LeonardoFassini
Last active October 17, 2020 21:56
Show Gist options
  • Save LeonardoFassini/2619fd4ce083c72fbc84136cbd22b44e to your computer and use it in GitHub Desktop.
Save LeonardoFassini/2619fd4ce083c72fbc84136cbd22b44e to your computer and use it in GitHub Desktop.
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