From cea3bcebce900b4c35459057c4eab8f876805241 Mon Sep 17 00:00:00 2001 From: Mike Brown Date: Fri, 15 Dec 2023 11:29:48 -0500 Subject: [PATCH] Update tests and snapshot --- .../TestResultPrintModal.test.tsx | 15 ++--- .../TestResultPrintModal.test.tsx.snap | 56 ++++++++++++++++--- .../patientApp/timeOfTest/TestResult.test.tsx | 32 +++-------- 3 files changed, 61 insertions(+), 42 deletions(-) diff --git a/frontend/src/app/testResults/viewResults/actionMenuModals/TestResultPrintModal.test.tsx b/frontend/src/app/testResults/viewResults/actionMenuModals/TestResultPrintModal.test.tsx index cc07692214..48a512c9e3 100644 --- a/frontend/src/app/testResults/viewResults/actionMenuModals/TestResultPrintModal.test.tsx +++ b/frontend/src/app/testResults/viewResults/actionMenuModals/TestResultPrintModal.test.tsx @@ -92,7 +92,7 @@ describe("TestResultPrintModal with only COVID results", () => { it("should render only COVID information", () => { renderWithUser(); - expect(screen.getByText("Test result: COVID-19")).toBeInTheDocument(); + expect(screen.getByText("For COVID-19:")).toBeInTheDocument(); }); it("matches screenshot", () => { @@ -136,9 +136,7 @@ describe("TestResultPrintModal with multiplex results in SimpleReport App", () = }); it("should render flu information", () => { - expect( - screen.getByText("Test results: COVID-19 and flu") - ).toBeInTheDocument(); + expect(screen.getByText("Test results")).toBeInTheDocument(); expect(screen.getByText("For flu A and B:")).toBeInTheDocument(); }); @@ -185,9 +183,7 @@ describe("TestResultPrintModal with multiplex results in Pxp App", () => { }); it("should render information", () => { - expect( - screen.getByText("Test results: COVID-19 and flu") - ).toBeInTheDocument(); + expect(screen.getByText("Test results")).toBeInTheDocument(); expect(screen.getByText("fake npi for pxp")).toBeInTheDocument(); expect(screen.getAllByText("Negative").length).toBe(3); }); @@ -231,11 +227,8 @@ describe("TestResultPrintModal with RSV and flu results", () => { ); }); - // this should be changed when we correct our copy to the right header text (#7000) it("should render flu information", () => { - expect( - screen.getByText("Test results: COVID-19 and flu") - ).toBeInTheDocument(); + expect(screen.getByText("Test results")).toBeInTheDocument(); expect(screen.getByText("For flu A and B:")).toBeInTheDocument(); }); diff --git a/frontend/src/app/testResults/viewResults/actionMenuModals/__snapshots__/TestResultPrintModal.test.tsx.snap b/frontend/src/app/testResults/viewResults/actionMenuModals/__snapshots__/TestResultPrintModal.test.tsx.snap index 5284a3a5ee..83c9125ea9 100644 --- a/frontend/src/app/testResults/viewResults/actionMenuModals/__snapshots__/TestResultPrintModal.test.tsx.snap +++ b/frontend/src/app/testResults/viewResults/actionMenuModals/__snapshots__/TestResultPrintModal.test.tsx.snap @@ -57,7 +57,7 @@ Object { class="display-flex flex-align-end flex-justify margin-bottom-1" >

- Test results: COVID-19 and flu + Test results

SimpleReport logo (cdc.gov/flu/treatment/takingcare.htm).

+

+ For RSV: +

+

+ RSV usually causes mild, cold-like symptoms. Most people can recover at home, but RSV can cause serious illness and hospitalization for infants and older adults. You can help prevent the spread of RSV by staying at home when sick, avoiding close contact with others, and washing your hands frequently. +

+

+ You can take steps to relieve symptoms, including managing fever and pain with over-the-counter fever reducers, and drinking enough fluids. If your child has RSV, talk to their healthcare provider before giving them non-prescription cold medicine. +

+

+ Contact your healthcare professional if your symptoms worsen, you are having trouble breathing, or are dehydrated. + + Learn more about RSV symptoms and care on the CDC website. + +