Skip to content
Snippets Groups Projects
Commit 39a8511f authored by Giannis Kopanas's avatar Giannis Kopanas Committed by Alexandros Georgantas
Browse files

test(signup): signup successfully

parent e28073ca
No related branches found
No related tags found
1 merge request!17Cypress
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',
......
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