feat(desktop): more e2e tests (#13975)

This commit is contained in:
Filip
2026-02-17 15:42:50 +01:00
committed by GitHub
parent 222b6cda96
commit 4d5e86d8a5
7 changed files with 171 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
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()
})