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,6 +1,6 @@
|
||||
// @vitest-environment-options {"settings":{"disableIframePageLoading":true}}
|
||||
import { act, cleanup, fireEvent, render, screen, waitFor, within } from "@testing-library/react";
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
import App from "@/App";
|
||||
import { ThreadMessageCache } from "@/lib/thread-message-cache";
|
||||
@@ -97,6 +97,13 @@ async function selectTopic(name: string) {
|
||||
}
|
||||
|
||||
describe("temporary chat navigation", () => {
|
||||
beforeAll(async () => {
|
||||
await Promise.all([
|
||||
import("@/components/settings/SettingsView"),
|
||||
import("@/components/thread/ThreadShell"),
|
||||
]);
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
vi.mocked(fetchBootstrap).mockReset().mockResolvedValue({ token: "test", api_token: "test", ws_path: "/" });
|
||||
groupedTopics = false;
|
||||
|
||||
Reference in new issue
Block a user