palette.spec.ts 443 B

123456789101112131415
  1. import { test, expect } from "./fixtures"
  2. import { modKey } from "./utils"
  3. test("search palette opens and closes", async ({ page, gotoSession }) => {
  4. await gotoSession()
  5. await page.keyboard.press(`${modKey}+P`)
  6. const dialog = page.getByRole("dialog")
  7. await expect(dialog).toBeVisible()
  8. await expect(dialog.getByRole("textbox").first()).toBeVisible()
  9. await page.keyboard.press("Escape")
  10. await expect(dialog).toHaveCount(0)
  11. })