fix(webui): save settings when editing completes (NAN-323) (#6384)
* fix(webui): save settings when editing completes (NAN-323) * fix(webui): close settings completion and verification gaps * refactor(webui): simplify settings edit ownership
This commit is contained in:
1 parent
26e1f41a00
commit
c6babb20e8
34 files changed
+1363
-388
No files matched your search
@@ -1,7 +1,8 @@
|
||||
import { act, fireEvent, render, screen, waitFor, within } from "@testing-library/react";
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
import { FilePreviewPanel } from "@/components/FilePreviewPanel";
|
||||
import { preloadMarkdownText } from "@/components/MarkdownText";
|
||||
import { CodeBlock } from "@/components/CodeBlock";
|
||||
import { PreviewPane } from "@/components/PreviewPane";
|
||||
import { FilePreviewStore, useFilePreviewState } from "@/hooks/useFilePreviewState";
|
||||
@@ -38,6 +39,8 @@ vi.mock("@/lib/api", async (importOriginal) => {
|
||||
});
|
||||
|
||||
describe("FilePreviewPanel", () => {
|
||||
beforeAll(preloadMarkdownText);
|
||||
|
||||
beforeEach(async () => {
|
||||
await setAppLanguage("en");
|
||||
vi.mocked(fetchFilePreview).mockReset();
|
||||
|
||||
Reference in new issue
Block a user