mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix download-logs tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
6b2b9bcc0f
commit
d598ee5c37
@ -746,31 +746,35 @@ exports[`download logs options in logs dock tab opening pod logs when logs avail
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="LogList flex"
|
class="LogList"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="VirtualList box grow"
|
class="virtualizer"
|
||||||
|
style="height: 38px;"
|
||||||
>
|
>
|
||||||
<div>
|
<div
|
||||||
<div
|
class="anchorLine"
|
||||||
class="list"
|
style="top: 0px;"
|
||||||
style="position: relative; height: 420000px; width: 100%; overflow: auto; will-change: transform; direction: ltr;"
|
/>
|
||||||
>
|
<div
|
||||||
|
class="rowWrapper"
|
||||||
|
style="transform: translateY(0px);"
|
||||||
|
>
|
||||||
|
<div>
|
||||||
<div
|
<div
|
||||||
style="height: 18px; width: 100%;"
|
class="LogRow"
|
||||||
>
|
>
|
||||||
<div
|
<span>
|
||||||
class="LogRow"
|
some-logs
|
||||||
style="position: absolute; left: 0px; top: 0px; height: 18px; width: 100%;"
|
</span>
|
||||||
>
|
<br />
|
||||||
<span>
|
|
||||||
some-logs
|
|
||||||
</span>
|
|
||||||
<br />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="anchorLine"
|
||||||
|
style="bottom: 0px;"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@ -789,6 +793,21 @@ exports[`download logs options in logs dock tab opening pod logs when logs avail
|
|||||||
<div
|
<div
|
||||||
class="flex gaps align-center"
|
class="flex gaps align-center"
|
||||||
>
|
>
|
||||||
|
<label
|
||||||
|
class="Checkbox flex align-center wrap-logs"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
/>
|
||||||
|
<i
|
||||||
|
class="box flex align-center"
|
||||||
|
/>
|
||||||
|
<span
|
||||||
|
class="label"
|
||||||
|
>
|
||||||
|
Wrap logs
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
<label
|
<label
|
||||||
class="Checkbox flex align-center show-timestamps"
|
class="Checkbox flex align-center show-timestamps"
|
||||||
>
|
>
|
||||||
@ -1599,11 +1618,21 @@ exports[`download logs options in logs dock tab opening pod logs when logs not a
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="LogList flex box grow align-center justify-center"
|
class="LogList"
|
||||||
>
|
>
|
||||||
There are no logs available for container
|
<div
|
||||||
|
class="virtualizer"
|
||||||
docker-exporter
|
style="height: 0px;"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="anchorLine"
|
||||||
|
style="top: 0px;"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="anchorLine"
|
||||||
|
style="bottom: 0px;"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="controls"
|
class="controls"
|
||||||
@ -1613,6 +1642,21 @@ exports[`download logs options in logs dock tab opening pod logs when logs not a
|
|||||||
<div
|
<div
|
||||||
class="flex gaps align-center"
|
class="flex gaps align-center"
|
||||||
>
|
>
|
||||||
|
<label
|
||||||
|
class="Checkbox flex align-center wrap-logs"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
/>
|
||||||
|
<i
|
||||||
|
class="box flex align-center"
|
||||||
|
/>
|
||||||
|
<span
|
||||||
|
class="label"
|
||||||
|
>
|
||||||
|
Wrap logs
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
<label
|
<label
|
||||||
class="Checkbox flex align-center show-timestamps"
|
class="Checkbox flex align-center show-timestamps"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -29,6 +29,17 @@ import showErrorNotificationInjectable from "../../renderer/components/notificat
|
|||||||
import type { DiContainer } from "@ogre-tools/injectable";
|
import type { DiContainer } from "@ogre-tools/injectable";
|
||||||
import type { Container } from "../../common/k8s-api/endpoints";
|
import type { Container } from "../../common/k8s-api/endpoints";
|
||||||
|
|
||||||
|
const observe = jest.fn();
|
||||||
|
|
||||||
|
Object.defineProperty(window, "IntersectionObserver", {
|
||||||
|
writable: true,
|
||||||
|
value: jest.fn().mockImplementation(() => ({
|
||||||
|
observe,
|
||||||
|
disconnect: jest.fn(),
|
||||||
|
unobserve: jest.fn(),
|
||||||
|
})),
|
||||||
|
});
|
||||||
|
|
||||||
describe("download logs options in logs dock tab", () => {
|
describe("download logs options in logs dock tab", () => {
|
||||||
let windowDi: DiContainer;
|
let windowDi: DiContainer;
|
||||||
let rendered: RenderResult;
|
let rendered: RenderResult;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user