Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/ui-react/tests/browser/keyboard-hints.pointer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ for (const width of live ? [1280] : [320, 600, 1280]) {
}
expect(composerHint.getBoundingClientRect().height > 0 && composerHint.innerText.includes("⏎"), "composer keys").toBe(fine);
await expect.poll(() => ui!.stores.ui.getState().filePanelOpen).toBe(true);
// The open panel has started the real lazy tree load (#3285). A cold Vite
// transform must finish before the treeitem poll gets its 1000ms budget.
// The open panel has started the real lazy tree load (#3285). Awaiting it
// states the dependency; the wait below does not need it, because
// `expect.element` without a timeout gets the test's remaining time, not
// `expect.poll`'s 1000 ms. A tree module held for 5 s still passed there.
await import("../../src/components/files/file-tree.js");
const tree = page.getByRole("treeitem", { name: /return.md/ });
await expect.element(tree).toBeVisible();
Expand Down
Loading