mirror of
https://github.com/anomalyco/opencode.git
synced 2026-02-01 14:44:46 +00:00
19 lines
600 B
TypeScript
19 lines
600 B
TypeScript
import { test, expect } from "../fixtures"
|
|
import { openPalette, clickListItem } from "../actions"
|
|
|
|
test("can open a file tab from the search palette", async ({ page, gotoSession }) => {
|
|
await gotoSession()
|
|
|
|
const dialog = await openPalette(page)
|
|
|
|
const input = dialog.getByRole("textbox").first()
|
|
await input.fill("package.json")
|
|
|
|
await clickListItem(dialog, { keyStartsWith: "file:" })
|
|
|
|
await expect(dialog).toHaveCount(0)
|
|
|
|
const tabs = page.locator('[data-component="tabs"][data-variant="normal"]')
|
|
await expect(tabs.locator('[data-slot="tabs-trigger"]').first()).toBeVisible()
|
|
})
|