Skip to content

Commit

Permalink
Fix Id naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidSumra committed Dec 27, 2024
1 parent d1ca896 commit 27dde91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/facility_spec/FacilityHomepage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe("Facility Homepage Function", () => {
// Verify Icon and Corresponding Text Should be Visible
NavItems.forEach((item) => {
facilityHome.verifyIconVisibility(item.icon);
facilityHome.verifyTextVisibility(item.text.replace(" ", "-"));
facilityHome.verifyTextVisibility(item.text);
});
facilityHome.toggleSideBar();
// Toggle Sidebar and Just Icon Should be visible
Expand Down
2 changes: 1 addition & 1 deletion cypress/pageobject/Facility/FacilityHome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class FacilityHome {

verifyTextVisibility(expectedText: string, isVisible: boolean = true) {
if (isVisible) {
cy.get(`[data-testid="sidebar-text-${expectedText}"]`)
cy.get(`[data-testid="sidebar-text-${expectedText.replace(" ", "-")}"]`)
.then(($elem) => {
expect($elem.text().trim()).to.equal(expectedText);
})
Expand Down

0 comments on commit 27dde91

Please sign in to comment.