From c710a65ecec6ea5fa9bf2f019a4394b14e16809e Mon Sep 17 00:00:00 2001 From: gengruilin Date: Sun, 11 Oct 2026 02:17:38 +0800 Subject: [PATCH] test(notion): expect the OAuth completion page from the callback --- packages/connector/notion/tests/plugin.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/connector/notion/tests/plugin.spec.ts b/packages/connector/notion/tests/plugin.spec.ts index 61b68e21c6..a3f272644b 100644 --- a/packages/connector/notion/tests/plugin.spec.ts +++ b/packages/connector/notion/tests/plugin.spec.ts @@ -38,7 +38,7 @@ async function fixture(servers: Record = {}) { } 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 }