Skip to content

Commit

Permalink
cypress_test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
meghanakr7 committed May 5, 2024
1 parent 5683029 commit 72097d4
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions cypress/cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,30 @@ describe('Application Build Check', () => {


describe('User Signup Test', () => {
it('Test unsuccessful signup with already registered email address', () => {
// it('Test unsuccessful signup with already registered email address', () => {

cy.visit('http://localhost:8070/Geoweaver');
cy.get('.introjs-skipbutton').click();
// cy.visit('http://localhost:8070/Geoweaver');
// cy.get('.introjs-skipbutton').click();

cy.get('#toolbar-loginout-a > .fa').click()
// cy.get('#toolbar-loginout-a > .fa').click()

cy.get('[onclick="GW.user.signupdialog()"]', { timeout: 10000 }).should('be.visible');
cy.get('[onclick="GW.user.signupdialog()"]').click()
// cy.get('[onclick="GW.user.signupdialog()"]', { timeout: 10000 }).should('be.visible');
// cy.get('[onclick="GW.user.signupdialog()"]').click()

cy.get('#username').type('newuser');
cy.get('input[name="username"]');
// cy.get('#username').type('newuser');
// cy.get('input[name="username"]');

cy.get('#password').type('Geoweaver@123');
// cy.get('#password').type('Geoweaver@123');

cy.get('#rpassword').type('Geoweaver@123');
cy.get('input[name="email"]').type('[email protected]');
cy.get('#agree_yes').click()
// cy.get('#rpassword').type('Geoweaver@123');
// cy.get('input[name="email"]').type('[email protected]');
// cy.get('#agree_yes').click()

// Submit the form
// // Submit the form

cy.get('[onclick="GW.user.register()"]').click()
cy.contains("the email address has already been registered")
});
// cy.get('[onclick="GW.user.register()"]').click()
// cy.contains("the email address has already been registered")
// });

it('Test unsuccessful signup without email address', () => {

Expand Down

0 comments on commit 72097d4

Please sign in to comment.