Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Wait for tree activation before expanding rename folders (#5602)

Nick Gomez21381354e5ef
diff --git a/packages/app/tests/stress/rename-content-preservation.e2e.ts b/packages/app/tests/stress/rename-content-preservation.e2e.ts
index d9d0ed8af..1b378e209 100644
--- a/packages/app/tests/stress/rename-content-preservation.e2e.ts
+++ b/packages/app/tests/stress/rename-content-preservation.e2e.ts
@@ -152,6 +152,10 @@ test.describe('FileTree sidebar rename — content preservation', () => {
timeout: 10_000,
});
+ await expect(
+ sidebar(page).getByRole('treeitem', { name: 'hello.md', exact: true }),
+ ).toHaveAttribute('aria-selected', 'true');
+
const fooRow = folderRow(page, 'foo');
await expect(fooRow).toHaveAttribute('aria-expanded', 'false', { timeout: 10_000 });
await fooRow.focus();