summaryrefslogtreecommitdiffhomepage
path: root/packages/app/e2e/files
diff options
context:
space:
mode:
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")