/// <reference types='cypress' />
// @ts-check

import { user } from '../prototypes/users';

describe('A test for creating a new account on ashanti web', () => {
	it('goes to register page and starts the test', () => {
		cy.visit('/register');
		// cy.get('input[name=\'terms-and-policies\'] ~ span').click();
		cy.get('input[id=\'email\']').type(user.email);
		cy.get('input[id=\'username\']').type(user.username);
		cy.get('input[id=\'name\']').type(user.name);
		cy.get('input[id=\'password\']').type(user.password);
		cy.get('input[id=\'password_confirmation\']').type(user.password + '{enter}');
	});
});