Skip to content

Instantly share code, notes, and snippets.

@JustDravee
Created August 12, 2021 11:38
Show Gist options
  • Save JustDravee/0f04d00e10068c92e001d95c9f038d2d to your computer and use it in GitHub Desktop.
Save JustDravee/0f04d00e10068c92e001d95c9f038d2d to your computer and use it in GitHub Desktop.
/// <reference types="Cypress" />
it('Signup X2', () => {
const url = "http://barker-social.com:xxxxx/register";
const users = [{mail:"testuser1@barker.com", name:"testuser1"},{mail:"testuser2@barker.com", name:"testuser2"}]
users.forEach(e => {
cy.visit(url);
cy.get('#email').type(e.mail);
cy.get('#username').type(e.name);
cy.get('#password').type("12345678");
cy.get('#password_confirmation').type("12345678");
cy.get('#pin').type("12345678");
cy.get('#ui-id-2').click()
cy.get('#profile_name').type(e.name)
cy.get('#ui-id-4').click()
cy.get('.btn.btn-primary').click()
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment