summaryrefslogtreecommitdiffhomepage
path: root/packages/app/e2e/files
diff options
context:
space:
mode:
authorFilip <[email protected]>2026-03-07 16:47:45 +0100
committerGitHub <[email protected]>2026-03-07 09:47:45 -0600
commit66fcab7b0801130c212aa67159415d75d935f555 (patch)
treeee7edb3346c6b3ecc0147f227b4b1a0aabbb0713 /packages/app/e2e/files
parent641e1781a25f848a9375a9196e5039c8e65e5551 (diff)
downloadopencode-66fcab7b0801130c212aa67159415d75d935f555.tar.gz
opencode-66fcab7b0801130c212aa67159415d75d935f555.zip
fix(app): preserve file tree tab on reopen + fix e2e test regressions (#16482)
Diffstat (limited to 'packages/app/e2e/files')
-rw-r--r--packages/app/e2e/files/file-tree.spec.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/app/e2e/files/file-tree.spec.ts b/packages/app/e2e/files/file-tree.spec.ts
index 44efb7f00..a5872bdf8 100644
--- a/packages/app/e2e/files/file-tree.spec.ts
+++ b/packages/app/e2e/files/file-tree.spec.ts
@@ -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")