Skip to content

Commit 4a45c9b

Browse files
committed
test(app): seed added projects in settings fixtures
1 parent f516928 commit 4a45c9b

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎packages/app/e2e/regression/multi-server.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ test("a project's auto-accept choice overrides the default in both directions",
233233
onPermissionReply: (reply) => replies.push(reply.permissionID),
234234
},
235235
})
236-
await seed(page, { tabs: [api.id, web.id] })
236+
await seed(page, { tabs: [api.id, web.id], usedProjects: { local: ["proj_api", "proj_web"] } })
237237
const dock = page.locator('[data-component="dock-prompt"][data-kind="permission"]')
238238
const settings = page.getByTestId("settings-screen")
239239

‎packages/app/e2e/regression/settings-search.spec.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,12 @@ test("section search takes typed input, clears in place, and escapes in steps",
311311
})
312312

313313
for (const count of [0, 7, 8]) {
314-
test(`Projects search appears from 8 projects (${count} projects)`, async ({ page }) => {
315-
const view = await open(page, { count })
314+
test(`Projects search appears from 8 added projects (${count} projects)`, async ({ page }) => {
315+
const view = await open(page, {
316+
count,
317+
seed: { usedProjects: { local: Array.from({ length: count }, (_, index) => `proj_search_${index}`) } },
318+
})
319+
316320
await view.settings.getByRole("tab", { name: "Projects", exact: true }).click()
317321
const search = view.settings.getByRole("searchbox", { name: "Search projects", exact: true })
318322
const projects = view.settings.getByRole("button", { name: /^OpenCode / })

0 commit comments

Comments
 (0)