Skip to content

Commit

Permalink
fixed the changes requested
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 committed Nov 8, 2023
1 parent bc60aab commit bef5fd1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions cypress/e2e/users_spec/user_manage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ describe("Manage User", () => {
manageUserPage.clickDoctorConnectButton();
manageUserPage.assertDoctorConnectVisibility(usernamerealname);
});

afterEach(() => {
cy.saveLocalStorage();
});
Expand Down
4 changes: 2 additions & 2 deletions cypress/pageobject/Users/ManageUserPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export class ManageUserPage {
}

assertDoctorConnectVisibility(realName) {
cy.get("#Doctor-connect-homedoctor").should("contain.text", realName);
cy.get("#Doctor-connect-remotedoctor").should("contain.text", realName);
cy.get("#doctor-connect-home-doctor").should("contain.text", realName);
cy.get("#doctor-connect-remote-doctor").should("contain.text", realName);
}
}

Expand Down
11 changes: 7 additions & 4 deletions src/Components/Facility/DoctorVideoSlideover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,25 @@ export default function DoctorVideoSlideover(props: {
title: "Doctors",
user_type: "Doctor",
home: true,
id: "Doctor-connect-homedoctor",
},
{
title: "Staff",
user_type: "Staff",
home: true,
id: "Doctor-connect-homestaff",
},
{
title: "TeleICU Hub",
user_type: "Doctor",
home: false,
id: "Doctor-connect-remotedoctor",
},
].map((type, i) => (
<div key={i} className="mb-4" id={type.id}>
<div
key={i}
className="mb-4"
id={`doctor-connect-${
type.home ? "home" : "remote"
}-${type.user_type.toLowerCase()}`}
>
<div>
<span className="text-lg font-semibold">{type.title}</span>
</div>
Expand Down

0 comments on commit bef5fd1

Please sign in to comment.