test: align e2e fixtures with worker backends

pull/20593/head
Kit Langton 2026-04-02 09:18:38 -04:00
parent 7b2b22d5a2
commit 598296fc22
2 changed files with 7 additions and 16 deletions

View File

@ -276,8 +276,8 @@ export const test = base.extend<TestFixtures, WorkerFixtures>({
if (boundary) throw new Error(boundary)
},
directory: [
async ({}, use) => {
await use(await getWorktree())
async ({ backend }, use) => {
await use(await getWorktree(backend.url))
},
{ scope: "worker" },
],
@ -287,15 +287,15 @@ export const test = base.extend<TestFixtures, WorkerFixtures>({
},
{ scope: "worker" },
],
sdk: async ({ directory }, use) => {
await use(createSdk(directory))
sdk: async ({ directory, backend }, use) => {
await use(backend.sdk(directory))
},
gotoSession: async ({ page, directory }, use) => {
await seedStorage(page, { directory })
gotoSession: async ({ page, directory, backend }, use) => {
await seedStorage(page, { directory, serverUrl: backend.url })
const gotoSession = async (sessionID?: string) => {
await visit(page, sessionPath(directory, sessionID))
await waitSession(page, { directory, sessionID })
await waitSession(page, { directory, sessionID, serverUrl: backend.url })
}
await use(gotoSession)
},

View File

@ -684,15 +684,6 @@ export class TestLLMServer extends ServiceMap.Service<TestLLMServer, TestLLMServ
if (mode === "responses") return send(responses(auto, modelFrom(body)))
return send(auto)
}
// Auto-acknowledge tool-result follow-ups so tests only need to
// queue one response per tool call instead of two.
if (isToolResultFollowUp(body)) {
hits = [...hits, current]
yield* notify()
const auto: Sse = { type: "sse", head: [role()], tail: [textLine("ok"), finishLine("stop")] }
if (mode === "responses") return send(responses(auto, modelFrom(body)))
return send(auto)
}
const next = pull(current)
if (!next) {
hits = [...hits, current]