mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Update tests to reflect what behaviour we actually want
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
69220d1b2e
commit
7381c0fcf7
@ -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");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user