Skip to content

Commit

Permalink
Rename "Daily Rounds" to "Log Updates" in patient log update tests an…
Browse files Browse the repository at this point in the history
…d components
  • Loading branch information
yash-learner committed Nov 13, 2024
1 parent 732e1c8 commit 465274f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions cypress/e2e/patient_spec/PatientLogUpdate.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
cy.verifyNotification("Progress Note Log Update filed successfully");
cy.closeNotification();
// Verify the data reflection
cy.contains("button", "Daily Rounds").click();
cy.contains("button", "Log Updates").click();
patientLogupdate.clickLogUpdateViewDetails(
"#dailyround-entry",
"#logupdate-entry",
patientCategory,
);
cy.verifyContentPresence("#consultation-preview", [
Expand Down Expand Up @@ -180,9 +180,9 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
cy.submitButton("Complete");
cy.verifyNotification("Detailed Log Update filed successfully");
cy.closeNotification();
cy.contains("button", "Daily Rounds").click();
cy.contains("button", "Log Updates").click();
patientLogupdate.clickLogUpdateViewDetails(
"#dailyround-entry",
"#logupdate-entry",
patientCategory,
);
cy.verifyContentPresence("#respiratory-support", [
Expand All @@ -195,9 +195,9 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
]);
// Go back and edit the data on a third section
patientLogupdate.clickGoBackConsultation();
cy.contains("button", "Daily Rounds").click();
cy.contains("button", "Log Updates").click();
patientLogupdate.clickLogUpdateUpdateLog(
"#dailyround-entry",
"#logupdate-entry",
patientCategory,
);
patientLogupdate.selectCriticalCareSection("Dialysis");
Expand All @@ -210,9 +210,9 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
cy.verifyNotification("Detailed Log Update filed successfully");
cy.closeNotification();
//Reverify the editted and newly added data
cy.contains("button", "Daily Rounds").click();
cy.contains("button", "Log Updates").click();
patientLogupdate.clickLogUpdateViewDetails(
"#dailyround-entry",
"#logupdate-entry",
patientCategory,
);
cy.verifyContentPresence("#respiratory-support", [
Expand Down Expand Up @@ -285,9 +285,9 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
cy.verifyNotification("Brief Update created successfully");
cy.closeNotification();
// edit the card and verify the data.
cy.contains("button", "Daily Rounds").click();
cy.contains("button", "Log Updates").click();
patientLogupdate.clickLogUpdateViewDetails(
"#dailyround-entry",
"#logupdate-entry",
patientCategory,
);
cy.verifyContentPresence("#consultation-preview", [
Expand All @@ -309,9 +309,9 @@ describe("Patient Log Update in Normal, Critical and TeleIcu", () => {
patientLogupdate.typeDiastolic(patientModifiedDiastolic);
cy.submitButton("Continue");
cy.verifyNotification("Brief Update updated successfully");
cy.contains("button", "Daily Rounds").click();
cy.contains("button", "Log Updates").click();
patientLogupdate.clickLogUpdateViewDetails(
"#dailyround-entry",
"#logupdate-entry",
patientCategory,
);
cy.verifyContentPresence("#consultation-preview", [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const DefaultLogUpdateCard = ({ round, ...props }: Props) => {
return (
<div
className="flex w-full flex-col gap-4 rounded-lg border border-secondary-400 p-4 @container"
id="dailyround-entry"
id="logupdate-entry"
>
<LogUpdateCardAttribute
attributeKey={"rounds_type"}
Expand Down

0 comments on commit 465274f

Please sign in to comment.