mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-30 01:13:31 +00:00
chore: generate
This commit is contained in:
parent
9ca2b44235
commit
de78da8a23
1 changed files with 2 additions and 6 deletions
|
|
@ -60,9 +60,7 @@ test("creates a session in a new project, connects OpenCode Go, and selects its
|
|||
sessions: [],
|
||||
pageMessages: () => ({ items: [] }),
|
||||
fileList: (path) =>
|
||||
path
|
||||
? []
|
||||
: [{ name: "NewProject", path: "NewProject", absolute: directory, type: "directory", ignored: false }],
|
||||
path ? [] : [{ name: "NewProject", path: "NewProject", absolute: directory, type: "directory", ignored: false }],
|
||||
findFiles: () => ["NewProject"],
|
||||
})
|
||||
await page.addInitScript(() => {
|
||||
|
|
@ -87,9 +85,7 @@ test("creates a session in a new project, connects OpenCode Go, and selects its
|
|||
await page.locator('[data-input="provider-api-key"]').fill("mock-go-api-key")
|
||||
await page.locator('[data-action="provider-connect-submit"]').click()
|
||||
await expect(page.locator('[data-component="dialog-v2"]')).toHaveCount(0)
|
||||
expect(connections).toEqual([
|
||||
{ integrationID: "opencode-go", body: { type: "api", key: "mock-go-api-key" } },
|
||||
])
|
||||
expect(connections).toEqual([{ integrationID: "opencode-go", body: { type: "api", key: "mock-go-api-key" } }])
|
||||
|
||||
await expect(modelControl).toHaveAttribute("data-control-type", "popover")
|
||||
await modelControl.click()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue