Created
September 27, 2019 04:25
-
-
Save renaco/cbf738b9b4e30c3cfdca8041bf7c4141 to your computer and use it in GitHub Desktop.
Regiter to cypress webinars
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
describe('test_name', function () { | |
it('register_webinar', function () { | |
let nameToRegister = 'Renan' | |
let lastNameToRegister = 'Romero' | |
let emailToRegister = '[email protected]' | |
let questionOrg = 'romeroruiz.com' | |
let urlWebinar = 'https://zoom.us/webinar/register/7015681491757/WN_MUIJzTKCQQujUeUg6-IUXg?utm_campaign=Cypress%20CI%20Webcast&utm_source=hs_email&utm_medium=email&utm_content=76878149&_hsenc=p2ANqtz-_Ryz1IocUsHhlkp-U2iH0SDWDJPJ5Tj-bmIx4jH384fh449Ofxdzgvckf_NWPC6ramnTmiU2g1pCNcj9GMecfmF_bK1g&_hsmi=76878149' | |
cy.viewport(1366, 625) | |
cy.visit(urlWebinar) | |
cy.get('.questions > .rows:nth-child(1) > .col-md-6 > div > .has-error') | |
.click() | |
cy.get('#question_first_name') | |
.click() | |
cy.get('#question_first_name') | |
.type(nameToRegister) | |
cy.get('#question_last_name') | |
.type(lastNameToRegister) | |
cy.get('#question_email') | |
.type(emailToRegister) | |
cy.get('#question_confirm_email') | |
.type(emailToRegister) | |
cy.get('#question_org') | |
.type(questionOrg) | |
cy.get('#btnSubmit') | |
.click() | |
// cy.visit('https://zoom.us/w/283808728?tk=fJ6CCbqbZTT74SS7E1cwqrv88SJz1TkqTXJu7v7C1XQ.DQEAAAAAEOqT2BY3Nml2QzFIS1JNcXdXSDFTU0lHUGZRAA&uuid=WN_MUIJzTKCQQujUeUg6-IUXg') | |
// cy.visit('https://zoom.us/j/283808728?tk=fJ6CCbqbZTT74SS7E1cwqrv88SJz1TkqTXJu7v7C1XQ.DQEAAAAAEOqT2BY3Nml2QzFIS1JNcXdXSDFTU0lHUGZRAA&status=success') | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment