|
|
@@ -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()
|