We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ccc23f commit 7612841Copy full SHA for 7612841
src/webapp/cypress/e2e/login.cy.js
@@ -0,0 +1,25 @@
1
+describe('login process', () => {
2
+
3
+ it('login as simple user', () => {
4
+ // go to login page
5
+ cy.visit('/login')
6
+ cy.get('#input-email').type('user@user.com')
7
+ cy.get('#input-password').type('user')
8
+ cy.get('button[type=submit]').click()
9
10
+ // we should be redirected to /dashboard
11
+ cy.url().should('include', '/dashboard')
12
+ })
13
14
15
+ it('login as admin', () => {
16
17
18
+ cy.get('#input-email').type('admin@admin.com')
19
+ cy.get('#input-password').type('admin')
20
21
22
23
24
25
+})
0 commit comments