18 lines
387 B
JavaScript
18 lines
387 B
JavaScript
describe('login', () => {
|
|
beforeEach(() => {
|
|
cy.manageCommand('cypress_reset');
|
|
})
|
|
|
|
it('can login to app with username/password', () => {
|
|
cy.visit('/');
|
|
|
|
cy.get('#username').type('admin');
|
|
cy.get('#password').type('test');
|
|
|
|
cy.get('[data-cy="login-button"]').click();
|
|
|
|
cy.get('[data-cy="welcome-message"]').should('contain', 'Willkommen, Peter');
|
|
});
|
|
|
|
})
|