Skip to content

Commit

Permalink
Small fixups - sort call centers in the picker, check for all of them…
Browse files Browse the repository at this point in the history
… being there in the test, and update the User Pool details in Readme (#3)
  • Loading branch information
casewalker authored Nov 21, 2023
1 parent 4f12de4 commit 3afcfcf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ This site relies on some environment variables:

The base URL for the Hosted UI Cognito sign-in page associated with this
UserPool's application (the current working UserPool is "_Cognito for Connect
Call Centers_" (ID: _us-east-1_jKQHCtx7s_) and the "App integration" client is
"_ReactAppClient_")
Call Centers_" (ID: _us-east-1_AZyvZQdFN_) and the "App integration" client is
"_Amplify App_")

- `NEXT_PUBLIC_COGNITO_CLIENT_ID`

The Client ID of the App Integration - App Client (from the "_ReactAppClient_"
The Client ID of the App Integration - App Client (from the "_Amplify App_"
client)

- `NEXT_PUBLIC_COGNITO_REDIRECT_URI`
Expand Down
2 changes: 1 addition & 1 deletion components/CallCenterPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function CallCenterPicker({
<>
<h2>Choose a Call Center to connect to:</h2>
<div>
{cognitoGroups.map((group: string) => (
{cognitoGroups.sort().map((group: string) => (
<div key={group}>
<input
type="radio"
Expand Down
4 changes: 4 additions & 0 deletions cypress/e2e/app.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ describe("Happy paths", () => {
fixture: "postSamlFormPage",
}).as("samlPostToAws");

cy.contains("callcenter1");
cy.contains("callcenter2");
cy.contains("callcenter3");

cy.get("input").parent("div").contains("callcenter1").click();
cy.get("button").should("not.be.disabled");
cy.get("button").click();
Expand Down

0 comments on commit 3afcfcf

Please sign in to comment.