Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from Abstract-Tech/feature/vertical-nav
added authn test
- Loading branch information
Showing
2 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
env/build/openedx/e2e/cypress/e2e/register-user/register_user.cy.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
describe("Register user test", () => { | ||
beforeEach(() => { | ||
|
||
|
||
cy.visit(`${Cypress.env("LMS_URL")}`); | ||
|
||
cy.on("uncaught:exception", (err) => { | ||
if (err.message.includes("ResizeObserver loop limit exceeded")) { | ||
// This error is expected, so suppress it and continue the test | ||
return false; | ||
} | ||
}); | ||
|
||
|
||
cy.on('uncaught:exception', (e) => { | ||
if (e.message.includes('Things went bad')) { | ||
// We expected this error, so let's ignore it and let the test continue | ||
return false; | ||
} | ||
}); | ||
|
||
|
||
cy.get("body"); | ||
cy.get(".global-header .nav-links .secondary a.register-btn").click({ force: true }); | ||
|
||
|
||
}); | ||
|
||
it("test the registration page", function() { | ||
cy.get('#name').type('test_name'); | ||
cy.get('#email').type('123@gmail.com'); | ||
cy.get('#username').type('test_username', { force: true } ); | ||
cy.get('#password').type('test_password12'); | ||
cy.get("#country").type('Italy'); | ||
cy.get('.dropdown-container button[name="countryItem"][value="Italy"]').click({ force: true }); | ||
|
||
cy.get("#register-user").click({ force: true }); | ||
}); | ||
}); | ||
|
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