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:
1 parent
a1e54ee6f1
commit
6a1c60706a
2 files changed
+12
-5
No files matched your search
@@ -105,7 +105,7 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
|
||||
|
||||
// Check if controls are available
|
||||
await frame.waitForSelector(".Dock.isOpen");
|
||||
await frame.waitForSelector(".LogList .VirtualList");
|
||||
await frame.waitForSelector("[data-testid=pod-log-list]");
|
||||
await frame.waitForSelector(".LogResourceSelector");
|
||||
|
||||
const logSearchInput = await frame.waitForSelector(
|
||||
@@ -115,17 +115,23 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
|
||||
await logSearchInput.type(":");
|
||||
await frame.waitForSelector(".LogList .list span.active");
|
||||
|
||||
const showTimestampsButton = await frame.waitForSelector(
|
||||
const showTimestampsCheckbox = await frame.waitForSelector(
|
||||
"[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",
|
||||
);
|
||||
|
||||
await showPreviousButton.click();
|
||||
await showPreviousCheckbox.click();
|
||||
|
||||
const showWrapLogsCheckbox = await frame.waitForSelector(
|
||||
"[data-testid='log-controls'] .wrap-logs",
|
||||
);
|
||||
|
||||
await showWrapLogsCheckbox.click();
|
||||
},
|
||||
10 * 60 * 1000,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user