Skip to content

Instantly share code, notes, and snippets.

@ksakae1216
Created June 14, 2020 06:46
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 ksakae1216/fd35b0450779c73a34d3f6f1951e30f4 to your computer and use it in GitHub Desktop.
Save ksakae1216/fd35b0450779c73a34d3f6f1951e30f4 to your computer and use it in GitHub Desktop.
import * as loginPo from '../support/po/login.po';
describe('Login', () => {
beforeEach(() => {
loginPo.navigatoTo();
loginPo.valid();
});
it('display login', () => {
cy.matchImageSnapshot('login');
});
it('do login', () => {
cy.get(':nth-child(1) > .form-control').type('abcde');
cy.get(':nth-child(2) > .form-control').type('zzz');
cy.get('.btn').click();
cy.url().should('eq', 'http://localhost:4200/engineer-list');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment