test(notion): expect the OAuth completion page from the callback

This commit is contained in:
gengruilin committed 2026-10-11 02:17:38 +08:00
1 parent 1c3f2e4278
commit c710a65ece
1 file changed
+1 -1
@@ -38,7 +38,7 @@ async function fixture(servers: Record<string, unknown> = {}) {
}
const authorize = async () => {
await world.ctx.mcpServers.startAuthorization('notion')
expect(await callback(await phase(() => view()?.authorization, 'waiting-browser'))).toBe(204)
expect(await callback(await phase(() => view()?.authorization, 'waiting-browser'))).toBe(200)
await state('connected')
}
return { ...world, view, state, mount, prompt, ping, grant, agent, authorize }