mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-24 22:53:02 +00:00
test: unhide raw config body
This commit is contained in:
@@ -579,7 +579,7 @@ describe("config view", () => {
|
||||
revealButton.click();
|
||||
|
||||
const textarea = queryRequired(container, "textarea", HTMLTextAreaElement);
|
||||
expect(textarea.value).toContain("supersecret");
|
||||
expect(textarea.value).toBe('{\n "openai": { "apiKey": "supersecret" }\n}\n');
|
||||
textarea.value = textarea.value.replace("supersecret", "updatedsecret");
|
||||
textarea.dispatchEvent(new Event("input", { bubbles: true }));
|
||||
expect(onRawChange).toHaveBeenCalledWith(textarea.value);
|
||||
|
||||
Reference in New Issue
Block a user