Commit 39a8511f authored by Giannis Kopanas's avatar Giannis Kopanas Committed by Alexandros Georgantas

test(signup): signup successfully

parent e28073ca
const { user1 } = require('../support/credentials')
describe('Signup page', () => {
it('is there', () => {
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')
})
})
const credentials = {
admin: {
username: 'admin',
password: 'password',
password: '123456789',
},
user1: {
givenName: 'John Travolta',
surname: 'actor',
username: 'user1',
password: '123456789',
email: 'john.travolta@awesome.com',
},
author: {
username: 'author',
......
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