fix(desktop): reformat redis key expansion spec for CI

This commit is contained in:
t8y2 committed 2026-08-26 21:56:55 +08:00
1 parent 8333c78320
commit ac2af84e7b
1 file changed
+2 -6
@@ -319,17 +319,13 @@ function leafVisible(host: HTMLElement, keyRaw: string): boolean {
// The toolbar refresh action: the only untitled `h-6 w-6` icon button (the
// create-key button next to it carries a title).
function clickRefresh(host: HTMLElement) {
const refresh = Array.from(host.querySelectorAll<HTMLButtonElement>("button")).find(
(button) => button.className.includes("h-6 w-6") && !button.hasAttribute("title"),
);
const refresh = Array.from(host.querySelectorAll<HTMLButtonElement>("button")).find((button) => button.className.includes("h-6 w-6") && !button.hasAttribute("title"));
expect(refresh, "refresh button").toBeDefined();
refresh!.click();
}
function clickLoadMore(host: HTMLElement) {
const loadMore = Array.from(host.querySelectorAll<HTMLButtonElement>("button")).find(
(button) => button.textContent?.includes("redis.loadMoreKeys") && !button.disabled,
);
const loadMore = Array.from(host.querySelectorAll<HTMLButtonElement>("button")).find((button) => button.textContent?.includes("redis.loadMoreKeys") && !button.disabled);
expect(loadMore, "load more button").toBeDefined();
loadMore!.click();
}