mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 02:32:07 +01:00
fix: preserve recovery and optimistic task status transitions
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
7ddd8205ad
commit
fa9afcc466
13 files changed
+62
-10
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { expect, it, vi } from "vitest";
|
||||
import { parseSearchQuery } from "../lib/search-query-parser";
|
||||
import { searchApi } from "./search";
|
||||
import { api } from "./client";
|
||||
|
||||
vi.mock("./client", () => ({ api: { get: vi.fn() } }));
|
||||
|
||||
it("keeps scheduled monitor waits in is:open search requests", async () => {
|
||||
const parsed = parseSearchQuery("is:open deployment", {});
|
||||
await searchApi.search("company-1", { q: parsed.query, ...parsed.filters });
|
||||
const url = new URL(vi.mocked(api.get).mock.calls[0]![0], "http://localhost");
|
||||
expect(url.searchParams.getAll("displayStatus")).toEqual(["backlog", "todo", "in_progress", "monitoring", "in_review", "blocked"]);
|
||||
expect(url.searchParams.get("q")).toBe("deployment");
|
||||
});
|
||||
Reference in new issue
Block a user