From 6c28c4df85cafcea4c5156e03e9197677135e8e5 Mon Sep 17 00:00:00 2001 From: pearl-truss Date: Tue, 12 Sep 2023 14:44:34 -0400 Subject: [PATCH] update pagerowheader unit tests --- .../components/Header/PageHeadingRow/PageHeadingRow.test.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/app-web/src/components/Header/PageHeadingRow/PageHeadingRow.test.tsx b/services/app-web/src/components/Header/PageHeadingRow/PageHeadingRow.test.tsx index 939aa1ae15..795a13452a 100644 --- a/services/app-web/src/components/Header/PageHeadingRow/PageHeadingRow.test.tsx +++ b/services/app-web/src/components/Header/PageHeadingRow/PageHeadingRow.test.tsx @@ -45,7 +45,10 @@ describe('Page Heading Row', () => { it('renders without errors and without the managed care header on the help page page', () => { renderWithProviders() - expect(screen.getByRole('heading')).not.toBeInTheDocument() + expect(screen.getByRole('heading')).toBeInTheDocument() + expect(screen.getByRole('heading')).not.toHaveTextContent( + 'Medicaid and CHIP Managed Care Reporting and Review System' + ) }) it('does not display heading text when isLoading', async () => {