Update tests to reflect what behaviour we actually want

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-06-27 11:54:20 -04:00
1 parent 69220d1b2e
commit 7381c0fcf7
1 file changed
+3 -3
@@ -214,8 +214,8 @@ describe("<NamespaceSelectFilter />", () => {
result.getByText("test-2").click(); result.getByText("test-2").click();
}); });
it("should show placeholder text as 'All namespaces'", () => { it("should not show placeholder 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");
}); });
describe("when multi-selection key is raised", () => { describe("when multi-selection key is raised", () => {
@@ -226,7 +226,7 @@ describe("<NamespaceSelectFilter />", () => {
}); });
it("should show placeholder text as 'All namespaces'", () => { 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");
}); });
}); });
}); });