mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fixing smoke tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
a1e54ee6f1
commit
6a1c60706a
@ -105,7 +105,7 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
|
|||||||
|
|
||||||
// Check if controls are available
|
// Check if controls are available
|
||||||
await frame.waitForSelector(".Dock.isOpen");
|
await frame.waitForSelector(".Dock.isOpen");
|
||||||
await frame.waitForSelector(".LogList .VirtualList");
|
await frame.waitForSelector("[data-testid=pod-log-list]");
|
||||||
await frame.waitForSelector(".LogResourceSelector");
|
await frame.waitForSelector(".LogResourceSelector");
|
||||||
|
|
||||||
const logSearchInput = await frame.waitForSelector(
|
const logSearchInput = await frame.waitForSelector(
|
||||||
@ -115,17 +115,23 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
|
|||||||
await logSearchInput.type(":");
|
await logSearchInput.type(":");
|
||||||
await frame.waitForSelector(".LogList .list span.active");
|
await frame.waitForSelector(".LogList .list span.active");
|
||||||
|
|
||||||
const showTimestampsButton = await frame.waitForSelector(
|
const showTimestampsCheckbox = await frame.waitForSelector(
|
||||||
"[data-testid='log-controls'] .show-timestamps",
|
"[data-testid='log-controls'] .show-timestamps",
|
||||||
);
|
);
|
||||||
|
|
||||||
await showTimestampsButton.click();
|
await showTimestampsCheckbox.click();
|
||||||
|
|
||||||
const showPreviousButton = await frame.waitForSelector(
|
const showPreviousCheckbox = await frame.waitForSelector(
|
||||||
"[data-testid='log-controls'] .show-previous",
|
"[data-testid='log-controls'] .show-previous",
|
||||||
);
|
);
|
||||||
|
|
||||||
await showPreviousButton.click();
|
await showPreviousCheckbox.click();
|
||||||
|
|
||||||
|
const showWrapLogsCheckbox = await frame.waitForSelector(
|
||||||
|
"[data-testid='log-controls'] .wrap-logs",
|
||||||
|
);
|
||||||
|
|
||||||
|
await showWrapLogsCheckbox.click();
|
||||||
},
|
},
|
||||||
10 * 60 * 1000,
|
10 * 60 * 1000,
|
||||||
);
|
);
|
||||||
|
|||||||
@ -63,6 +63,7 @@ export const LogList = observer(({ model }: LogListProps) => {
|
|||||||
ref={parentRef}
|
ref={parentRef}
|
||||||
className={styles.LogList}
|
className={styles.LogList}
|
||||||
onScroll={onScroll}
|
onScroll={onScroll}
|
||||||
|
data-testid="pod-log-list"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user