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: [],
|
sessions: [],
|
||||||
pageMessages: () => ({ items: [] }),
|
pageMessages: () => ({ items: [] }),
|
||||||
fileList: (path) =>
|
fileList: (path) =>
|
||||||
path
|
path ? [] : [{ name: "NewProject", path: "NewProject", absolute: directory, type: "directory", ignored: false }],
|
||||||
? []
|
|
||||||
: [{ name: "NewProject", path: "NewProject", absolute: directory, type: "directory", ignored: false }],
|
|
||||||
findFiles: () => ["NewProject"],
|
findFiles: () => ["NewProject"],
|
||||||
})
|
})
|
||||||
await page.addInitScript(() => {
|
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-input="provider-api-key"]').fill("mock-go-api-key")
|
||||||
await page.locator('[data-action="provider-connect-submit"]').click()
|
await page.locator('[data-action="provider-connect-submit"]').click()
|
||||||
await expect(page.locator('[data-component="dialog-v2"]')).toHaveCount(0)
|
await expect(page.locator('[data-component="dialog-v2"]')).toHaveCount(0)
|
||||||
expect(connections).toEqual([
|
expect(connections).toEqual([{ integrationID: "opencode-go", body: { type: "api", key: "mock-go-api-key" } }])
|
||||||
{ integrationID: "opencode-go", body: { type: "api", key: "mock-go-api-key" } },
|
|
||||||
])
|
|
||||||
|
|
||||||
await expect(modelControl).toHaveAttribute("data-control-type", "popover")
|
await expect(modelControl).toHaveAttribute("data-control-type", "popover")
|
||||||
await modelControl.click()
|
await modelControl.click()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue