Fixing smoke tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-11-28 14:59:46 +03:00
1 parent a1e54ee6f1
commit 6a1c60706a
2 files changed
+12 -5

No files matched your search

+11 -5
View File
@@ -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={{