mirror of
https://github.com/anomalyco/opencode.git
synced 2026-02-01 22:48:16 +00:00
18 lines
542 B
TypeScript
18 lines
542 B
TypeScript
import { test, expect } from "../fixtures"
|
|
import { terminalSelector } from "../selectors"
|
|
import { terminalToggleKey } from "../utils"
|
|
|
|
test("terminal panel can be toggled", async ({ page, gotoSession }) => {
|
|
await gotoSession()
|
|
|
|
const terminal = page.locator(terminalSelector)
|
|
const initiallyOpen = await terminal.isVisible()
|
|
if (initiallyOpen) {
|
|
await page.keyboard.press(terminalToggleKey)
|
|
await expect(terminal).toHaveCount(0)
|
|
}
|
|
|
|
await page.keyboard.press(terminalToggleKey)
|
|
await expect(terminal).toBeVisible()
|
|
})
|