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
@@ -59,12 +59,14 @@ describe("Runtime configuration settings", () => {
|
||||
});
|
||||
|
||||
it("places common settings in their feature pages and reserves advanced for low-frequency controls", () => {
|
||||
renderSettingsView({ initialSection: "runtime", initialSettings: runtimeSettings() });
|
||||
const payload = runtimeSettings();
|
||||
payload.image_generation.enabled = true;
|
||||
renderSettingsView({ initialSection: "runtime", initialSettings: payload });
|
||||
expect(document.getElementById("runtime-tools.exec.enable")).toBeInTheDocument();
|
||||
fireEvent.click(screen.getByRole("button", { name: "Advanced" }));
|
||||
expect(document.getElementById("runtime-tools.exec.sandbox")).toBeInTheDocument();
|
||||
fireEvent.click(screen.getByRole("button", { name: "Capabilities" }));
|
||||
fireEvent.click(screen.getByRole("switch", { name: "Image generation" }));
|
||||
fireEvent.click(within(screen.getByRole("region", { name: "Image generation" })).getByRole("button", { name: "Configure" }));
|
||||
expect(document.getElementById("runtime-tools.image_generation.save_dir")).toBeInTheDocument();
|
||||
fireEvent.click(screen.getByRole("button", { name: "Close" }));
|
||||
expect(screen.getByRole("switch", { name: "Web access" })).toBeInTheDocument();
|
||||
|
||||
Reference in new issue
Block a user