fix(webui): restore session drag and review findings
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user