Skip to content

Commit

Permalink
Fix Id Name and Function Spell
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidSumra committed Dec 27, 2024
1 parent 205f1ce commit 47593e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/facility_spec/FacilityHomepage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ describe("Facility Homepage Function", () => {
it("Verify Sidebar functionality", () => {
// Verify Icon and Corresponding Text Should be Visible
NavItems.forEach((item) => {
facilityHome.verifyIconVisiblity(item.icon);
facilityHome.verifyTextVisibility(item.text);
facilityHome.verifyIconVisibility(item.icon);
facilityHome.verifyTextVisibility(item.text.replace(" ", "-"));
});
facilityHome.toggleSideBar();
// Toggle Sidebar and Just Icon Should be visible
NavItems.forEach((item) => {
facilityHome.verifyIconVisiblity(item.icon);
facilityHome.verifyIconVisibility(item.icon);
facilityHome.verifyTextVisibility(item.text, false);
});
facilityHome.toggleSideBar();
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 @@ -4,7 +4,7 @@ class FacilityHome {
sidebar_toggle = "sidebar-toggle";

// Operations
verifyIconVisiblity(iconClassName: string) {
verifyIconVisibility(iconClassName: string) {
cy.get(`.${iconClassName}`).should("be.visible").should("exist");
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Common/Sidebar/SidebarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const SidebarItemBase = forwardRef<HTMLAnchorElement, SidebarItemBaseProps>(
className={`${
shrinked ? "hidden" : "grow"
} flex w-full items-center text-nowrap pl-4 text-sm tracking-wide`}
data-testid={`sidebar-text-${props.text}`}
data-testid={`sidebar-text-${props.text.replace(" ", "-")}`}
>
{t(props.text)}
</span>
Expand Down

0 comments on commit 47593e9

Please sign in to comment.