diff --git a/src/renderer/components/+preferences/preferences-navigation/__tests__/preferences-navigation.test.tsx b/src/renderer/components/+preferences/preferences-navigation/__tests__/preferences-navigation.test.tsx index a009323b60..f5c9371fb5 100644 --- a/src/renderer/components/+preferences/preferences-navigation/__tests__/preferences-navigation.test.tsx +++ b/src/renderer/components/+preferences/preferences-navigation/__tests__/preferences-navigation.test.tsx @@ -64,11 +64,11 @@ describe("", () => { }); it("does not show custom settings block", () => { - const { container } = render( + const { queryByTestId } = render( , ); - expect(container).not.toHaveTextContent("Custom Settings"); + expect(queryByTestId("extension-settings")).not.toBeInTheDocument(); }); }); @@ -134,11 +134,11 @@ describe("", () => { }); it("shows custom settings block", () => { - const { container } = render( + const { getByTestId } = render( , ); - expect(container).toHaveTextContent("Custom Settings"); + expect(getByTestId("extension-settings")).toBeInTheDocument(); }); it("renders extension navigation items", () => {