mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 02:20:42 +00:00
test: tighten config custom theme assertion
This commit is contained in:
@@ -986,7 +986,7 @@ describe("config view", () => {
|
||||
const customButton = findButtonByText(container, "Light Green");
|
||||
expect(customButton.disabled).toBe(false);
|
||||
customButton.click();
|
||||
expect(setTheme).toHaveBeenCalledWith("custom", expect.any(Object));
|
||||
expect(setTheme).toHaveBeenCalledWith("custom", { element: customButton });
|
||||
|
||||
const replaceButton = findButtonContainingText(container, "Replace Light Green");
|
||||
const clearButton = findButtonContainingText(container, "Clear Light Green");
|
||||
|
||||
Reference in New Issue
Block a user