-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
935 additions
and
944 deletions.
There are no files selected for viewing
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
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
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
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
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,35 @@ | ||
const PARTICIPANT_USERNAME = Cypress.env('PARTICIPANT_USERNAME'); | ||
const PARTICIPANT_PASSWORD = Cypress.env('PARTICIPANT_PASSWORD'); | ||
|
||
const CLEVER_SCHOOL_NAME = Cypress.env('cleverSchoolName'); | ||
const CLEVER_USERNAME = Cypress.env('CLEVER_USERNAME'); | ||
const CLEVER_PASSWORD = Cypress.env('CLEVER_PASSWORD'); | ||
|
||
describe('Participant: Auth', () => { | ||
it('Logs in as participant using username and password', () => { | ||
cy.login(PARTICIPANT_USERNAME, PARTICIPANT_PASSWORD); | ||
cy.get('[data-cy="user-display-name"]').should('contain', 'Hi, Cypress!'); | ||
}); | ||
|
||
// @TODO: Enable test once test account is properly provisioned on test environment. | ||
it.skip('Logs in as participant using email and password', () => { | ||
// cy.login(PARTICIPANT_EMAIL, PARTICIPANT_EMAIL_PASSWORD); | ||
// cy.get('[data-cy="user-display-name"]').should('contain', PARTICIPANT_USERNAME); | ||
}); | ||
|
||
it('Logs in as participant using Clever SSO', () => { | ||
// Perform SSO login flow. | ||
cy.loginWithClever(CLEVER_SCHOOL_NAME, CLEVER_USERNAME, CLEVER_PASSWORD); | ||
|
||
// Validate that the participant homepage is loaded. | ||
cy.visit('/'); | ||
cy.waitForParticipantHomepage(); | ||
cy.get('[data-cy="home-participant__administration-emptystate"]').should('not.exist'); | ||
cy.get('[data-cy="home-participant__administration"]').should('contain', 'Cypress Test Roar Apps Administration'); | ||
}); | ||
|
||
it('Logs out', () => { | ||
cy.login(PARTICIPANT_USERNAME, PARTICIPANT_PASSWORD); | ||
cy.logout(); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
const PARTICIPANT_TESTLEGAL_USERNAME = Cypress.env('PARTICIPANT_TESTLEGAL_USERNAME'); | ||
const PARTICIPANT_TESTLEGAL_PASSWORD = Cypress.env('PARTICIPANT_TESTLEGAL_PASSWORD'); | ||
|
||
describe('Participant: Legal Docs', () => { | ||
it('Renders an assent form for un-assented users', () => { | ||
// Login as the participant with the test legal document. | ||
cy.login(PARTICIPANT_TESTLEGAL_USERNAME, PARTICIPANT_TESTLEGAL_PASSWORD); | ||
|
||
// Wait for the participant home page to load. | ||
cy.waitForParticipantHomepage(); | ||
|
||
// Validate that the mock assent form is shown. | ||
// @TODO: Replace this with an actual legal document using cy.intercept once the legal document is available. | ||
cy.get('.p-dialog-title').contains('CONSENT').should('be.visible'); | ||
cy.get('.p-confirm-dialog-accept').contains('Continue').should('be.visible'); | ||
cy.get('button').contains('Continue').should('be.visible'); | ||
}); | ||
}); |
21 changes: 0 additions & 21 deletions
21
cypress/e2e/participant/default-tests/loginAndLogout.cy.js
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,9 @@ | ||
const timeout = Cypress.env('timeout'); | ||
describe('Playing Video', () => { | ||
it('plays-video', () => { | ||
cy.login(Cypress.env('participantUsername'), Cypress.env('participantPassword')); | ||
cy.visit('/', { timeout: 2 * timeout }); | ||
cy.login(Cypress.env('PARTICIPANT_USERNAME'), Cypress.env('PARTICIPANT_PASSWORD')); | ||
cy.visit('/'); | ||
cy.selectAdministration(Cypress.env('testRoarAppsAdministration')); | ||
cy.get('.tabview-nav-link-label', { timeout: 2 * timeout }) | ||
.contains('ROAR - Word') | ||
.click(); | ||
cy.get('.video-player-wrapper', { timeout: 2 * timeout }).click(); | ||
cy.get('.tabview-nav-link-label').contains('ROAR - Word').click(); | ||
cy.get('.video-player-wrapper').click(); | ||
}); | ||
}); |
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
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,15 @@ | ||
const PARTNER_ADMIN_USERNAME = Cypress.env('PARTNER_ADMIN_USERNAME'); | ||
const PARTNER_ADMIN_PASSWORD = Cypress.env('PARTNER_ADMIN_PASSWORD'); | ||
|
||
describe('Partner Admin: Auth', () => { | ||
it('Logs in as a partner admin', () => { | ||
cy.login(PARTNER_ADMIN_USERNAME, PARTNER_ADMIN_PASSWORD); | ||
|
||
cy.get('[data-cy="user-display-name"]').should('contain', PARTNER_ADMIN_USERNAME); | ||
}); | ||
|
||
it('Logs out', () => { | ||
cy.login(PARTNER_ADMIN_USERNAME, PARTNER_ADMIN_PASSWORD); | ||
cy.logout(); | ||
}); | ||
}); |
18 changes: 0 additions & 18 deletions
18
cypress/e2e/partner-admin/default-tests/exportSelectedProgressReport.cy.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.