mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-21 21:56:46 +00:00
test: clear config diff panel
This commit is contained in:
@@ -838,14 +838,18 @@ describe("config view", () => {
|
||||
const details = queryRequired(container, ".config-diff", HTMLDetailsElement);
|
||||
details.open = true;
|
||||
details.dispatchEvent(new Event("toggle"));
|
||||
expect(normalizedText(container)).toContain("gateway.mode");
|
||||
expect(
|
||||
queryRequired(container, ".config-diff__item", HTMLElement)
|
||||
.querySelector(".config-diff__path")
|
||||
?.textContent?.trim(),
|
||||
).toBe("gateway.mode");
|
||||
|
||||
props.raw = props.originalRaw;
|
||||
props.formValue = props.originalValue;
|
||||
rerender();
|
||||
|
||||
expect(container.querySelector(".config-diff")).toBeNull();
|
||||
expect(normalizedText(container)).toContain("No changes");
|
||||
expect(container.querySelector(".config-status")?.textContent?.trim()).toBe("No changes");
|
||||
});
|
||||
|
||||
it("renders structured SecretRef values without stringifying", () => {
|
||||
|
||||
Reference in New Issue
Block a user