Skip to content

Commit

Permalink
sidebar-content removed and cypress timeout added
Browse files Browse the repository at this point in the history
  • Loading branch information
modamaan committed Jan 8, 2025
1 parent 7e7b91e commit e93c453
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cypress/pageObject/Patients/PatientSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export class PatientSearch {
}

clickSearchPatients() {
cy.get('[data-sidebar="content"]').contains("Search Patients").click();
cy.get('[data-sidebar="content"]', { timeout: 20000 })
.contains("Search Patients")
.click();
return this;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Facility/FacilityHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const FacilityHome = ({ facilityId }: Props) => {
authUser.user_type === "StateAdmin";

return (
<div data-sidebar="content">
<div>
<ConfirmDialog
title={t("delete_item", { name: facilityData?.name })}
description={
Expand Down
1 change: 0 additions & 1 deletion src/components/Schedule/Appointments/AppointmentsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export default function AppointmentsPage(props: { facilityId?: string }) {
</TabsList>
</Tabs>
}
data-sidebar="content"
>
<div className="mt-4 py-4 flex flex-col md:flex-row gap-4 justify-between border-t border-gray-200">
<div className="flex flex-col md:flex-row gap-4 items-start md:items-center">
Expand Down

0 comments on commit e93c453

Please sign in to comment.