Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
test(e2e): fix the quick actions and Apps accounts specs that still fail on main (#11231)
pseudoyu7d8507ea18a3
diff --git a/e2e/quick-actions.spec.ts b/e2e/quick-actions.spec.tsindex 429bcc4cd4..2755227ed4 100644--- a/e2e/quick-actions.spec.ts+++ b/e2e/quick-actions.spec.ts@@ -96,14 +96,14 @@ test("renders assistant quick actions and sends the hidden prompt", async ({const token = api.getToken();if (!token) throw new Error("E2E token missing");- await page.addInitScript(- ({ authToken, activeSessionId }) => {- localStorage.setItem("multica_token", authToken);- localStorage.setItem("multica:chat:activeSessionId", activeSessionId);- localStorage.setItem("multica:chat:isOpen", "false");- },- { authToken: token, activeSessionId: sessionId },- );+ // The ?session= deep link below opens the conversation. Seeding the+ // un-namespaced activeSessionId key as well made the chat page take the+ // link as already applied, so the workspace rehydration that follows+ // cleared the session and stripped it from the URL.+ await page.addInitScript((authToken) => {+ localStorage.setItem("multica_token", authToken);+ localStorage.setItem("multica:chat:isOpen", "false");+ }, token);await page.setViewportSize({ width: 1440, height: 960 });await page.goto(`/${workspace.slug}/chat?session=${sessionId}`, {diff --git a/e2e/settings.spec.ts b/e2e/settings.spec.tsindex bc0232a424..16da3097f0 100644--- a/e2e/settings.spec.ts+++ b/e2e/settings.spec.ts@@ -55,6 +55,47 @@ test.describe("Settings", () => {// Connected accounts, report the result once and refresh the list.async function mockConnectedApps(page: Page) {let connected = false;+ // The Apps page only counts agents the viewer may run, so the mocked+ // agent_apps entry needs a live agent behind it in the agent list.+ await page.route(+ (url) => url.pathname === "/api/agents",+ async (route) => {+ if (route.request().method() !== "GET") return route.fallback();+ const response = await route.fetch();+ const agents = await response.json();+ await route.fulfill({+ response,+ json: [+ ...agents,+ {+ id: "agent-1",+ workspace_id: new URL(route.request().url()).searchParams.get("workspace_id") ?? "",+ runtime_id: "runtime-1",+ name: "Notion Agent",+ description: "",+ instructions: "",+ avatar_url: null,+ runtime_mode: "local",+ runtime_config: {},+ custom_args: [],+ visibility: "workspace",+ permission_mode: "public_to",+ invocation_targets: [{ target_type: "workspace", target_id: null }],+ status: "idle",+ max_concurrent_tasks: 1,+ model: "",+ owner_id: null,+ skills: [],+ created_at: "2026-06-30T00:00:00Z",+ updated_at: "2026-06-30T00:00:00Z",+ archived_at: null,+ archived_by: null,+ composio_toolkit_allowlist: [],+ },+ ],+ });+ },+ );await page.route((url) => url.pathname === "/api/config",async (route) => {