Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.