Fixing finding wrapped log line height

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-11-30 15:49:16 +03:00
1 parent 5a41265255
commit 0f6b0f3ceb
1 file changed
+5 -4
+5 -4
View File
@@ -189,9 +189,9 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
await frame.waitForSelector(".Dock.isOpen");
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(
"[data-testid='log-controls'] .wrap-logs",
@@ -199,9 +199,10 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
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,
);