Fix tool access CI fallout

This commit is contained in:
Dotta committed 2026-06-10 22:20:55 +00:00
1 parent ad70e4183b
commit 2fa0e12aab
2 files changed
+30 -1

No files matched your search

+8
View File
@@ -601,6 +601,7 @@ const BOARD_ONLY_OPERATIONS = new Set([
"GET /api/companies/{companyId}/tools/applications",
"POST /api/companies/{companyId}/tools/applications",
"PATCH /api/tool-applications/{applicationId}",
"DELETE /api/tool-applications/{applicationId}",
"GET /api/companies/{companyId}/tools/connections",
"POST /api/companies/{companyId}/tools/connections",
"GET /api/tool-connections/{connectionId}",
@@ -4545,6 +4546,13 @@ registerCurrentRoute({
body: updateToolApplicationSchema,
});
registerCurrentRoute({
method: "delete",
path: "/api/tool-applications/{applicationId}",
tags: ["tool-access"],
summary: "Delete a tool application",
});
registerCurrentRoute({
method: "get",
path: "/api/companies/{companyId}/tools/connections",
+22 -1
View File
@@ -1059,8 +1059,29 @@ describe("IssueProperties", () => {
expect(container.textContent).toContain("Custom · gpt-5.4 · high");
expect(container.textContent).toContain("Model lane");
const modelOptionsTrigger = Array.from(container.querySelectorAll("button"))
.find((button) => button.textContent?.includes("Custom · gpt-5.4"));
expect(modelOptionsTrigger).not.toBeUndefined();
await act(async () => {
modelOptionsTrigger!.dispatchEvent(new MouseEvent("click", { bubbles: true }));
});
await flush();
let currentModelButton: HTMLButtonElement | undefined;
await waitForAssertion(() => {
currentModelButton = Array.from(container.querySelectorAll("button"))
.find((button) => button.textContent?.trim() === "GPT-5.4" || button.textContent?.trim() === "gpt-5.4");
expect(currentModelButton).not.toBeUndefined();
});
await act(async () => {
currentModelButton!.dispatchEvent(new MouseEvent("click", { bubbles: true }));
});
await flush();
const modelButton = Array.from(container.querySelectorAll("button"))
.find((button) => button.textContent?.includes("GPT-5.5"));
.find((button) => button.textContent?.includes("GPT-5.5") || button.textContent?.includes("gpt-5.5"));
expect(modelButton).not.toBeUndefined();
await act(async () => {