1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Remove test that is not needed anymore

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
This commit is contained in:
Janne Savolainen 2021-11-30 15:51:26 +02:00
parent 8de892d8a2
commit 7664652a62
2 changed files with 4 additions and 52 deletions

View File

@ -18,7 +18,7 @@ exports[`kube-object-menu given kube object renders 1`] = `
> >
<i <i
class="Icon material interactive focusable" class="Icon material interactive focusable"
id="tooltip_target_6" id="tooltip_target_4"
tabindex="0" tabindex="0"
> >
<span <span
@ -68,7 +68,7 @@ exports[`kube-object-menu given kube object when removing kube object renders 1`
> >
<i <i
class="Icon material interactive focusable" class="Icon material interactive focusable"
id="tooltip_target_10" id="tooltip_target_8"
tabindex="0" tabindex="0"
> >
<span <span
@ -171,7 +171,7 @@ exports[`kube-object-menu given kube object with namespace when removing kube ob
> >
<i <i
class="Icon material interactive focusable" class="Icon material interactive focusable"
id="tooltip_target_35" id="tooltip_target_33"
tabindex="0" tabindex="0"
> >
<span <span
@ -274,7 +274,7 @@ exports[`kube-object-menu given kube object without namespace when removing kube
> >
<i <i
class="Icon material interactive focusable" class="Icon material interactive focusable"
id="tooltip_target_43" id="tooltip_target_41"
tabindex="0" tabindex="0"
> >
<span <span
@ -369,23 +369,3 @@ exports[`kube-object-menu given no kube object, renders 1`] = `
</div> </div>
</body> </body>
`; `;
exports[`kube-object-menu given rendered multiple times, renders separate instances 1`] = `
<body>
<div>
<ul
class="Animate opacity Menu MenuActions flex KubeObjectMenu toolbar gaps right bottom"
style="--enter-duration: 100ms; --leave-duration: 100ms;"
/>
<ul
class="Animate opacity Menu MenuActions flex KubeObjectMenu toolbar gaps right bottom"
style="--enter-duration: 100ms; --leave-duration: 100ms;"
>
<li>
Some menu item
</li>
</ul>
,
</div>
</body>
`;

View File

@ -108,34 +108,6 @@ describe("kube-object-menu", () => {
}).not.toThrow(); }).not.toThrow();
}); });
it("given rendered multiple times, renders separate instances", () => {
di.override(clusterInjectable, null);
const { baseElement } = render(
<>
<KubeObjectMenu
toolbar={true}
object={null} />
<KubeObjectMenu
toolbar={true}
object={KubeObject.create({
apiVersion: "some-api-version",
kind: "some-kind",
metadata: {
uid: "some-uid",
name: "some-other-name",
resourceVersion: "some-resource-version",
namespace: "some-namespace",
},
})}
/>,
</>,
);
expect(baseElement).toMatchSnapshot();
});
it("given no kube object, renders", () => { it("given no kube object, renders", () => {
objectStub = null; objectStub = null;