1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix selector

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-11-28 16:15:17 +03:00
parent 24d059f9c3
commit cbee79176d
2 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,7 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
);
await logSearchInput.type(":");
await frame.waitForSelector(".LogList .list span.active");
await frame.waitForSelector("[data-testid=search-overlay-active]");
const showTimestampsCheckbox = await frame.waitForSelector(
"[data-testid='log-controls'] .show-timestamps",

View File

@ -35,6 +35,7 @@ export function LogRow({ rowIndex, model }: { rowIndex: number; model: LogTabVie
? (
<span
className={cssNames(styles.overlay, { [styles.active]: active })}
data-testid={active ? "search-overlay-active" : "search-overlay"}
dangerouslySetInnerHTML={{ __html: ansiToHtml(overlayValue) }}
/>
)