Created
June 14, 2020 06:46
-
-
Save ksakae1216/fd35b0450779c73a34d3f6f1951e30f4 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
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