Fix timeout in tests

This commit is contained in:
Sindhu Balasubramanian
2026-02-04 23:10:47 -08:00
parent 25a89ebcb6
commit 418b81c490
2 changed files with 9 additions and 3 deletions

View File

@@ -250,7 +250,8 @@ class TreeNode {
// Try three times to wait for the node to expand.
for (let i = 0; i < RETRY_COUNT; i++) {
try {
await tree.waitFor({ state: "visible" });
// Use a longer timeout (30s) since expanding may require loading children from the server
await tree.waitFor({ state: "visible", timeout: 30 * 1000 });
// The tree has expanded, let's get out of here
return true;
} catch {