test(app): more e2e tests

This commit is contained in:
Adam
2026-01-19 06:54:47 -06:00
parent b90315bc7e
commit 2b086f0584
3 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { test, expect } from "./fixtures"
import { modKey } from "./utils"
test("sidebar can be collapsed and expanded", async ({ page, gotoSession }) => {
await gotoSession()
const createButton = page.getByRole("button", { name: /New (session|workspace)/ }).first()
const opened = (await createButton.count()) > 0
if (!opened) {
await page.keyboard.press(`${modKey}+B`)
await expect(createButton).toBeVisible()
}
await page.keyboard.press(`${modKey}+B`)
await expect(createButton).toHaveCount(0)
await page.keyboard.press(`${modKey}+B`)
await expect(createButton).toBeVisible()
})