From c22bd93bf197557e1b9e55ff9d4d72f3464f5974 Mon Sep 17 00:00:00 2001 From: Merethe Hansen Date: Wed, 24 Jul 2024 11:19:48 -0700 Subject: [PATCH] fix syphilis guidance test --- .../TestResultGuidance/SyphilisResultGuidance.test.tsx | 6 +++--- .../__snapshots__/SyphilisResultGuidance.test.tsx.snap | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/commonComponents/TestResultGuidance/SyphilisResultGuidance.test.tsx b/frontend/src/app/commonComponents/TestResultGuidance/SyphilisResultGuidance.test.tsx index a00b87b8ee..bc928ccb50 100644 --- a/frontend/src/app/commonComponents/TestResultGuidance/SyphilisResultGuidance.test.tsx +++ b/frontend/src/app/commonComponents/TestResultGuidance/SyphilisResultGuidance.test.tsx @@ -15,7 +15,7 @@ describe("SyphilisResultGuidance", () => { testResult: TEST_RESULTS.POSITIVE, } as MultiplexResult; - it("displays guidance for a positive RSV result", () => { + it("displays guidance for a positive syphilis result", () => { const { container } = render( ); @@ -29,12 +29,12 @@ describe("SyphilisResultGuidance", () => { ]; test.each(nonPositiveCases)( - "displays no RSV guidance for %p result", + "displays no syphilis guidance for %p result", (testResult) => { const mockResult = cloneDeep(mockResultTemplate); mockResult.testResult = testResult; render(); - expect(screen.queryByText("For Syphilis")).not.toBeInTheDocument(); + expect(screen.queryByText("For syphilis:")).not.toBeInTheDocument(); } ); }); diff --git a/frontend/src/app/commonComponents/TestResultGuidance/__snapshots__/SyphilisResultGuidance.test.tsx.snap b/frontend/src/app/commonComponents/TestResultGuidance/__snapshots__/SyphilisResultGuidance.test.tsx.snap index c3bb257cd3..401ce26129 100644 --- a/frontend/src/app/commonComponents/TestResultGuidance/__snapshots__/SyphilisResultGuidance.test.tsx.snap +++ b/frontend/src/app/commonComponents/TestResultGuidance/__snapshots__/SyphilisResultGuidance.test.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`SyphilisResultGuidance displays guidance for a positive RSV result 1`] = ` +exports[`SyphilisResultGuidance displays guidance for a positive syphilis result 1`] = `