diff --git a/test/cypress/e2e/frontend/Login.cy.js b/test/cypress/e2e/frontend/Login.cy.js new file mode 100644 index 00000000..8f8d6784 --- /dev/null +++ b/test/cypress/e2e/frontend/Login.cy.js @@ -0,0 +1,14 @@ +/// + +describe('Frontend Login', () => { + it('Login works', function() { + cy.intercept('/api/users/me*').as('getCurrentUser') + + cy.visit("/") + cy.get('input[name="identity"]').type("admin@example.com") + cy.get('input[name="secret"]').type("changeme") + cy.get('button[type=submit]').click() + + cy.wait("@getCurrentUser") + }); +});