mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Testing check() instead of click()
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
178c1f03c5
commit
f957eb0902
@ -191,16 +191,15 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
|
||||
const logLine = await frame.waitForSelector("[data-testid=pod-log-list] [data-index='0']");
|
||||
const lineBoundingBox = await logLine.boundingBox();
|
||||
|
||||
expect(lineBoundingBox?.width).toBeLessThan(20);
|
||||
expect(lineBoundingBox?.height).toBeLessThan(30);
|
||||
|
||||
await frame.click("[data-testid='log-controls'] .wrap-logs");
|
||||
await frame.waitForTimeout(3000);
|
||||
const wrappedLogLine = await frame.waitForSelector("[data-testid=pod-log-list] [data-index='0']");
|
||||
await frame.check(".wrap-logs input")
|
||||
await frame.waitForTimeout(5000);
|
||||
|
||||
const wrappedLogLine = await frame.waitForSelector("[data-testid=pod-log-list] [data-index='0'] > div");
|
||||
const wrappedLineBoundingBox = await wrappedLogLine.boundingBox();
|
||||
|
||||
expect(wrappedLineBoundingBox?.height).toBeGreaterThan(30);
|
||||
expect(wrappedLineBoundingBox?.width).toBeLessThan(30);
|
||||
},
|
||||
10 * 60 * 1000,
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user