mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-06 00:46:53 +00:00
19 lines
602 B
TypeScript
19 lines
602 B
TypeScript
import { test, expect } from "../fixtures"
|
|
import { waitTerminalReady } from "../actions"
|
|
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 waitTerminalReady(page, { term: terminal })
|
|
})
|