fix(app): preserve file tree tab on reopen + fix e2e test regressions (#16482)

This commit is contained in:
Filip
2026-03-07 09:47:45 -06:00
committed by GitHub
parent 641e1781a2
commit 66fcab7b08
7 changed files with 50 additions and 39 deletions
+7
View File
@@ -43,6 +43,13 @@ test("file tree can expand folders and open a file", async ({ page, gotoSession
await tab.click()
await expect(tab).toHaveAttribute("aria-selected", "true")
await toggle.click()
await expect(toggle).toHaveAttribute("aria-expanded", "false")
await toggle.click()
await expect(toggle).toHaveAttribute("aria-expanded", "true")
await expect(allTab).toHaveAttribute("aria-selected", "true")
const viewer = page.locator('[data-component="file"][data-mode="text"]').first()
await expect(viewer).toBeVisible()
await expect(viewer).toContainText("export default function FileTree")