Created
August 12, 2021 11:38
-
-
Save JustDravee/0f04d00e10068c92e001d95c9f038d2d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <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