mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-16 13:44:44 +00:00
21 lines
543 B
TypeScript
21 lines
543 B
TypeScript
import { test, expect } from "../fixtures"
|
|
import { closeDialog, openPalette } from "../actions"
|
|
|
|
test("search palette opens and closes", async ({ page, gotoSession }) => {
|
|
await gotoSession()
|
|
|
|
const dialog = await openPalette(page)
|
|
|
|
await page.keyboard.press("Escape")
|
|
await expect(dialog).toHaveCount(0)
|
|
})
|
|
|
|
test("search palette also opens with cmd+p", async ({ page, gotoSession }) => {
|
|
await gotoSession()
|
|
|
|
const dialog = await openPalette(page, "P")
|
|
|
|
await closeDialog(page, dialog)
|
|
await expect(dialog).toHaveCount(0)
|
|
})
|