-
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.
Merge branch 'ref/318/query-composables-merge' into ref/318/query-com…
…posables-tasks
- Loading branch information
Showing
17 changed files
with
314 additions
and
130 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
67 changes: 67 additions & 0 deletions
67
cypress/e2e/partner-admin/default-tests/parentSignUpInvitationCode.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,67 @@ | ||
const baseUrl = Cypress.env('baseUrl'); | ||
import { APP_ROUTES } from '../../../../src/constants/routes'; | ||
|
||
const orgs = [ | ||
{ | ||
tabName: 'Districts', | ||
orgName: Cypress.env('testPartnerDistrictName'), | ||
orgVerified: 'Districts - Cypress Test District', | ||
}, | ||
]; | ||
|
||
function visitSignUpPage(activationCode) { | ||
const registerUrl = `${baseUrl}/register/?code=${activationCode}`; | ||
cy.visit(registerUrl); | ||
} | ||
|
||
function inputLoginValues() { | ||
cy.get('input[name="firstName"]').type(Cypress.env('parentFirstName')); | ||
cy.get('input[name="lastName"]').type(Cypress.env('parentLastName')); | ||
cy.get('input[name="ParentEmail"]').type(Cypress.env('parentEmail')); | ||
cy.get('input[type="password"]').first().type(Cypress.env('parentPassword')); | ||
cy.get('input[type="password"]').eq(1).type(Cypress.env('parentPassword')); | ||
} | ||
|
||
function completeParentSignUp(org) { | ||
cy.get('div.p-checkbox-box').click(); | ||
cy.get('button').contains('Continue').click(); | ||
cy.get('button').contains('Next').click(); | ||
cy.get('h2').should('contain.text', org.orgVerified); | ||
} | ||
|
||
describe('The partner admin user', () => { | ||
beforeEach(() => { | ||
cy.login(Cypress.env('partnerAdminUsername'), Cypress.env('partnerAdminPassword')); | ||
cy.visit(APP_ROUTES.HOME); | ||
cy.visit(APP_ROUTES.LIST_ORGS); | ||
}); | ||
|
||
orgs.forEach((org) => { | ||
context(`when navigating to the ${org.tabName} tab`, () => { | ||
it(`should see the organization ${org.orgName} and should click on Invite Users`, () => { | ||
cy.checkOrgExists(org); | ||
|
||
// Locate the row with the orgName and click the "Invite Users" button specifically for that org | ||
cy.contains('td', org.orgName) | ||
.parents('tr') | ||
.find('button') | ||
.contains('Invite Users') // Ensure the button contains the text "Invite Users" | ||
.click(); | ||
|
||
cy.log(`Invite Users button clicked for ${org.orgName}.`); | ||
|
||
// Invoke the activation code input field to get the value | ||
cy.get('[data-cy="input-text-activation-code"]') | ||
.invoke('attr', 'value') | ||
.then((value) => { | ||
expect(value).to.not.be.empty; | ||
|
||
// Visit the sign-up page with the activation code | ||
visitSignUpPage(value); | ||
inputLoginValues(); | ||
completeParentSignUp(org); | ||
}); | ||
}); | ||
}); | ||
}); | ||
}); |
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
2 changes: 1 addition & 1 deletion
2
cypress/support/helper-functions/roar-syntax/languageOptions.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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Submodule roar-firebase-functions
updated
from 737a60 to 278754
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
Oops, something went wrong.