fix(webui): restore session drag and review findings

This commit is contained in:
chengyongru
2026-08-12 17:26:13 +08:00
committed by chengyongru
parent 4b5319b760
commit 686dd0603e
24 changed files with 494 additions and 169 deletions
+4 -1
View File
@@ -1,3 +1,4 @@
import { waitFor } from "@testing-library/react";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
const render = vi.fn();
@@ -37,6 +38,8 @@ describe("main entry crypto shim", () => {
expect(globalThis.crypto.randomUUID()).toMatch(
/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,
);
expect(createRoot).toHaveBeenCalledWith(document.getElementById("root"));
await waitFor(() => {
expect(createRoot).toHaveBeenCalledWith(document.getElementById("root"));
});
});
});