From 7381c0fcf70722082f647e2fce14b3c8dc6b7e4e Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Mon, 27 Jun 2022 11:54:20 -0400 Subject: [PATCH] Update tests to reflect what behaviour we actually want Signed-off-by: Sebastian Malton --- .../components/+namespaces/namespace-select-filter.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/+namespaces/namespace-select-filter.test.tsx b/src/renderer/components/+namespaces/namespace-select-filter.test.tsx index afc0ccf69a..951e7ce10d 100644 --- a/src/renderer/components/+namespaces/namespace-select-filter.test.tsx +++ b/src/renderer/components/+namespaces/namespace-select-filter.test.tsx @@ -214,8 +214,8 @@ describe("", () => { result.getByText("test-2").click(); }); - it("should show placeholder text as 'All namespaces'", () => { - expect(result.baseElement.querySelector("#react-select-namespace-select-filter-placeholder")).toHaveTextContent("All namespaces"); + it("should not show placeholder as 'All namespaces'", () => { + expect(result.baseElement.querySelector("#react-select-namespace-select-filter-placeholder")).not.toHaveTextContent("All namespaces"); }); describe("when multi-selection key is raised", () => { @@ -226,7 +226,7 @@ describe("", () => { }); it("should show placeholder text as 'All namespaces'", () => { - expect(result.baseElement.querySelector("#react-select-namespace-select-filter-placeholder")).toHaveTextContent("All namespaces"); + expect(result.baseElement.querySelector("#react-select-namespace-select-filter-placeholder")).not.toHaveTextContent("All namespaces"); }); }); });