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
+7 -2
View File
@@ -1,7 +1,7 @@
import "@testing-library/jest-dom/vitest";
import { beforeEach } from "vitest";
import { beforeAll, beforeEach } from "vitest";
import i18n from "@/i18n";
import i18n, { initializeI18n, loadAllLocaleResources } from "@/i18n";
function createTestStorage(): Storage {
const store = new Map<string, string>();
@@ -53,6 +53,11 @@ if (!("randomUUID" in globalThis.crypto)) {
});
}
beforeAll(async () => {
await initializeI18n();
await loadAllLocaleResources();
});
beforeEach(async () => {
await i18n.changeLanguage("en");
document.documentElement.lang = "en";