Skip to content

The open source coding agent.

TypeScript
454 B
Raw Blame
import { test, expect } from "../fixtures"
import { promptSelector } from "../selectors"

test("ctrl+l focuses the prompt", async ({ page, gotoSession }) => {
  await gotoSession()

  const prompt = page.locator(promptSelector)
  await expect(prompt).toBeVisible()

  await page.locator("main").click({ position: { x: 5, y: 5 } })
  await expect(prompt).not.toBeFocused()

  await page.keyboard.press("Control+L")
  await expect(prompt).toBeFocused()
})