-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(fe:FSADT1-1573): create client detail skeleton (#1324)
* feat: add client details page skeleton * chore: add stub for predictive search error * feat: update roles allowed * feat: update redirect url from client search * test: redirect on click according to feature flag value * chore: set the feature flag on environments dev and test * chore: fix script coverage command * chore: set feature flag value on test setup * chore: add stub for non-individual client creation * refactor: setup feature flag value for tests * docs: comment code * docs: replace "detail" with "details" * test: render client details page skeleton * chore: remove unused code * chore: remove more unused code * test: render without crashing * chore: skip sonar scanning on code block * test: remove tests where FF is off * Revert "test: remove tests where FF is off" This reverts commit 05a91c5.
- Loading branch information
1 parent
ee43df3
commit 07d3398
Showing
14 changed files
with
378 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
describe("Client Details Page", () => { | ||
beforeEach(() => { | ||
cy.visit("/"); | ||
|
||
cy.login("[email protected]", "Uat Test", "idir", { | ||
given_name: "James", | ||
family_name: "Baxter", | ||
"cognito:groups": ["CLIENT_VIEWER"], | ||
}); | ||
|
||
cy.visit("/clients/0"); | ||
}); | ||
|
||
it("renders the page skeleton", () => { | ||
cy.get("cds-breadcrumb").should("contain", "Client search"); | ||
cy.contains("h2", "Client summary"); | ||
cy.contains("cds-tab", "Client locations"); | ||
cy.contains("cds-tab", "Client contacts"); | ||
cy.contains("cds-tab", "Related clients"); | ||
cy.contains("cds-tab", "Activity log"); | ||
}); | ||
}); |
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
Oops, something went wrong.