mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fixing finding wrapped log line height
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
5a41265255
commit
0f6b0f3ceb
@ -189,9 +189,9 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
|
|||||||
|
|
||||||
await frame.waitForSelector(".Dock.isOpen");
|
await frame.waitForSelector(".Dock.isOpen");
|
||||||
const logLine = await frame.waitForSelector("[data-testid=pod-log-list] [data-index='0']");
|
const logLine = await frame.waitForSelector("[data-testid=pod-log-list] [data-index='0']");
|
||||||
let boundingBox = await logLine.boundingBox();
|
const lineBoundingBox = await logLine.boundingBox();
|
||||||
|
|
||||||
expect(boundingBox?.height).toBeLessThan(30);
|
expect(lineBoundingBox?.height).toBeLessThan(30);
|
||||||
|
|
||||||
const showWrapLogsCheckbox = await frame.waitForSelector(
|
const showWrapLogsCheckbox = await frame.waitForSelector(
|
||||||
"[data-testid='log-controls'] .wrap-logs",
|
"[data-testid='log-controls'] .wrap-logs",
|
||||||
@ -199,9 +199,10 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
|
|||||||
|
|
||||||
await showWrapLogsCheckbox.click();
|
await showWrapLogsCheckbox.click();
|
||||||
|
|
||||||
boundingBox = await logLine.boundingBox();
|
const wrappedLogLine = await frame.waitForSelector("[data-testid=pod-log-list] [data-index='0']");
|
||||||
|
const wrappedLineBoundingBox = await wrappedLogLine.boundingBox();
|
||||||
|
|
||||||
expect(boundingBox?.height).toBeGreaterThan(30);
|
expect(wrappedLineBoundingBox?.height).toBeGreaterThan(30);
|
||||||
},
|
},
|
||||||
10 * 60 * 1000,
|
10 * 60 * 1000,
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user