Commit e43e166f authored by Giannis Kopanas's avatar Giannis Kopanas Committed by Alexandros Georgantas

test(signup): test about required fields

parent 39a8511f
......@@ -14,4 +14,18 @@ describe('Signup page', () => {
cy.get('button[type="submit"]').click()
cy.url().should('include', '/login')
})
it('User creation failure if required fields not filled', () => {
cy.visit('/signup')
const { givenName, surname, email, username, password } = user1
cy.get('input[name="givenName"]').type(givenName)
cy.get('input[name="surname"]').type(surname)
cy.get('input[name="username"]').type(username)
cy.get('input[name="email"]').type(email)
cy.get('input[name="password"]').type(password)
cy.get('button[type="submit"]').click()
cy.url().should('include', '/login')
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment