Your integrations
Manage the connections already available to your workspace.
{!hasConnections && !status.isPending && No integrations added yet
Choose a provider from the available integrations below to get started.
}
{hasConnections &&
diff --git a/packages/app/test/editor.browser.test.mjs b/packages/app/test/editor.browser.test.mjs
index feff5b25..a10a1f2e 100644
--- a/packages/app/test/editor.browser.test.mjs
+++ b/packages/app/test/editor.browser.test.mjs
@@ -62,7 +62,7 @@ test("provider editor fetches only the selected provider and submits project/mat
await page.route("**/api/v1/job-conditions/test", route => route.fulfill({ json: { decision: "match", details: [] } }));
await page.goto(origin + `/jobs/${id}/edit`); assert.equal(reads.length, 0); await page.getByLabel("New trigger kind").selectOption("webhook"); await page.getByRole("button", { name: "Add trigger" }).click();
await page.getByLabel("Linear project").selectOption("project"); await page.getByRole("button", { name: "Add matching rule" }).click(); await page.getByLabel("Match value").selectOption("done"); await page.getByLabel("Conditions JSON (optional)").fill('{"all":[{"fact":"webhook","path":"$.issue.id","operator":"equal","value":"i1"}]}');
- await page.getByText("Test webhook conditions", { exact: true }).click(); await page.getByRole("button", { name: "Test conditions", exact: true }).click(); await page.getByRole("status").filter({ hasText: '"decision": "match"' }).waitFor();
+ await page.getByText("Test webhook conditions", { exact: true }).click(); await page.getByRole("button", { name: "Test conditions", exact: true }).click({ force: true }); await page.getByRole("status").filter({ hasText: "Conditions match the example webhook." }).waitFor(); assert.equal(await page.getByText('"decision": "match"', { exact: false }).count(), 0);
await page.getByRole("status").filter({ hasText: "Job settings saved." }).waitFor();
assert.ok(reads.every(path => path.startsWith("/api/v1/providers/linear/"))); assert.deepEqual(writes[0].triggers[1].config, { provider: "linear", projectId: "project", matchRules: [{ type: "status", targetId: "done" }], conditions: { all: [{ fact: "webhook", path: "$.issue.id", operator: "equal", value: "i1" }] } }); assert.equal(writes[0].triggers[0].id, triggerId); await context.close();
});
@@ -129,8 +129,8 @@ for (const config of [
await page.getByLabel("Conditions JSON (optional)").fill(JSON.stringify(changed));
await page.getByText("Test webhook conditions", { exact: true }).click();
await page.getByLabel("Example webhook JSON").fill(JSON.stringify({ provider: config.provider }));
- await page.getByRole("button", { name: "Test conditions", exact: true }).click();
- await page.getByRole("status").filter({ hasText: '"decision": "match"' }).waitFor();
+ await page.getByRole("button", { name: "Test conditions", exact: true }).click({ force: true });
+ await page.getByRole("status").filter({ hasText: "Conditions match the example webhook." }).waitFor();
assert.deepEqual(preview, { conditions: changed, webhook: { provider: config.provider } });
await page.getByRole("status").filter({ hasText: "Job settings saved." }).waitFor();
assert.deepEqual(written.triggers[1], { id: hook.id, slug: hook.slug, kind: hook.kind, enabled: hook.enabled, config: { ...config, conditions: changed } });
diff --git a/packages/app/test/runs.browser.test.mjs b/packages/app/test/runs.browser.test.mjs
index 0206aad1..368aa71c 100644
--- a/packages/app/test/runs.browser.test.mjs
+++ b/packages/app/test/runs.browser.test.mjs
@@ -96,7 +96,7 @@ test("prompt/provenance and diagnostics are lazy, terminal replay retries reuse
await page.getByText("Created", { exact: true }).waitFor(); await page.getByText("Started", { exact: true }).waitFor(); await page.getByText("Queue time", { exact: true }).waitFor(); await page.getByText("Runtime", { exact: true }).waitFor(); await page.getByText("Execution destination", { exact: true }).waitFor();
await page.getByText("Prompt, context and provenance", { exact: true }).click(); await page.getByText("Private prompt", { exact: true }).waitFor(); await page.getByText("trigger-fixture", { exact: true }).waitFor(); await page.getByRole("heading", { name: "Trigger context and occurrence" }).waitFor(); await page.getByText("Diagnostics and artifacts", { exact: true }).click(); await page.getByText(/retained\/log.txt/).waitFor(); assert.equal(detailReads, 1); assert.equal(diagnosticReads, 1);
await page.getByRole("tab", { name: "Settings", exact: true }).click();
- await page.getByText("Replay trace", { exact: true }).click(); page.once("dialog", dialog => dialog.accept()); await page.getByRole("button", { name: "Replay retained trace" }).click(); await page.getByRole("alert").filter({ hasText: "Retry replay" }).waitFor(); await page.getByRole("tab", { name: "Trace", exact: true }).click(); await page.getByRole("tab", { name: "Settings", exact: true }).click(); await page.getByRole("alert").filter({ hasText: "Retry replay" }).waitFor(); page.once("dialog", dialog => dialog.accept()); await page.getByRole("button", { name: "Replay retained trace" }).click(); await page.getByRole("status").filter({ hasText: "projected" }).waitFor(); await page.getByRole("tab", { name: "Trace", exact: true }).click(); await page.getByText("Replayed trace · assistant_message", { exact: true }).waitFor();
+ await page.getByText("Replay trace", { exact: true }).click(); page.once("dialog", dialog => dialog.accept()); await page.getByRole("button", { name: "Replay retained trace" }).click(); await page.getByRole("alert").filter({ hasText: "Retry replay" }).waitFor(); await page.getByRole("tab", { name: "Trace", exact: true }).click(); await page.getByRole("tab", { name: "Settings", exact: true }).click(); await page.getByRole("alert").filter({ hasText: "Retry replay" }).waitFor(); page.once("dialog", dialog => dialog.accept()); await page.getByRole("button", { name: "Replay retained trace" }).click(); await page.getByRole("status").filter({ hasText: "Trace replay completed." }).waitFor(); assert.equal(await page.getByText("projected", { exact: true }).count(), 0); await page.getByRole("tab", { name: "Trace", exact: true }).click(); await page.getByText("Replayed trace · assistant_message", { exact: true }).waitFor();
assert.equal(replays[0].requestId, replays[1].requestId); assert.equal(await page.getByText("Old trace · assistant_message", { exact: true }).count(), 0); await context.close();
});
test("stopping a run submits once, observes stopping state and keeps terminal finalization visible", async () => {
diff --git a/packages/app/test/settings.browser.test.mjs b/packages/app/test/settings.browser.test.mjs
index d3ea61df..26e379f9 100644
--- a/packages/app/test/settings.browser.test.mjs
+++ b/packages/app/test/settings.browser.test.mjs
@@ -15,7 +15,7 @@ test("integration setup tests credentials, submits typed fields, clears secrets
await page.route("**/api/v1/integrations/exe", route => { body = route.request().postDataJSON(); saved = true; return route.fulfill({ json: { ok: true, connectionId: "vm", models: [] } }); });
await page.goto(origin + "/settings/integrations"); await page.getByText("Add exe.dev integration", { exact: true }).click();
const form = page.locator("details").filter({ has: page.getByText("Add exe.dev integration", { exact: true }) });
- await form.getByLabel("exe.dev account token").fill("private-input"); await form.getByRole("button", { name: "Test credentials" }).click(); await form.getByText("Credentials verified", { exact: true }).waitFor(); await form.getByLabel("VM tags").selectOption(["dev"]); await form.getByRole("button", { name: "Save integration", exact: true }).click();
+ await form.getByLabel("exe.dev account token").fill("private-input"); await form.getByRole("button", { name: "Test credentials" }).click(); await form.getByText("✓ Credentials verified.", { exact: true }).waitFor(); await form.getByLabel("VM tags").selectOption(["dev"]); await form.getByRole("button", { name: "Save integration", exact: true }).click();
await form.getByText("Integration saved", { exact: true }).waitFor(); assert.deepEqual(body.tags, ["dev"]); assert.equal(body.agentKind, "codex"); assert.equal(await form.getByLabel("exe.dev account token").inputValue(), ""); assert.equal(await page.evaluate(() => JSON.stringify(localStorage).includes("private-input")), false); await page.getByText("dev", { exact: true }).waitFor(); await context.close();
});
test("integration settings tolerates legacy exe connections without tags", async () => {
@@ -26,7 +26,16 @@ test("integration settings tolerates legacy exe connections without tags", async
await page.getByText("Account tags available", { exact: true }).waitFor();
await context.close();
});
-test("API keys create on a dedicated page, show a secret once, support revocation and survive refresh", async () => {
+test("connection tests show contextual adjacent feedback without exposing transport results", async () => {
+ const { context, page } = await setup(); let succeed = false;
+ await page.route("**/api/v1/providers/github/installations", route => route.fulfill({ json: [] }));
+ await page.route("**/api/v1/integrations", route => route.fulfill({ json: { linear: null, clickup: null, exe: null, exeConnections: [{ connectionId: "vm", accountTags: [] }], ampConnections: [], cloudflareTail: { count: 0, installations: [] } } }));
+ await page.route("**/api/v1/integrations/exe/test", route => succeed ? route.fulfill({ json: { ok: true, secret: "should-not-render" } }) : route.fulfill({ status: 502, json: { error: { code: "provider_unavailable", message: "Provider unavailable" } } }));
+ await page.goto(origin + "/settings/integrations"); const card = page.getByText("exe.dev · vm", { exact: true }).locator("../../..");
+ await card.getByRole("button", { name: "Test connection" }).click(); await page.getByRole("alert").filter({ hasText: "Provider unavailable" }).waitFor(); assert.equal(await card.getByText("Provider unavailable", { exact: true }).count(), 1);
+ succeed = true; await card.getByRole("button", { name: "Test connection" }).click(); await card.getByRole("status").filter({ hasText: "Connection verified." }).waitFor(); assert.equal(await page.getByText("should-not-render", { exact: true }).count(), 0); await context.close();
+});
+test("API keys create on a dedicated page, show a secret once, support explicit revocation and survive deep-link refresh", async () => {
const { context, page } = await setup(); let revoked = false, created = false; const time = "2026-10-09T12:00:00Z";
await page.route("**/api/v1/access-tokens", route => { if (route.request().method() === "POST") { created = true; return route.fulfill({ status: 201, json: { id: "key", name: "CLI", scopes: ["flows:read", "runs:read"], created_at: time, expires_at: time, token: "one-time-secret" } }); } return route.fulfill({ json: created ? [{ id: "key", name: "CLI", scopes: ["flows:read"], created_at: time, expires_at: time, last_used_at: null, revoked_at: revoked ? time : null }] : [] }); });
await page.route("**/api/v1/access-tokens/key", route => { revoked = true; return route.fulfill({ json: { revoked: true } }); });