mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-17 11:50:48 +00:00
test: tighten quick settings theme assertion
This commit is contained in:
@@ -398,9 +398,10 @@ describe("renderQuickSettings", () => {
|
||||
container,
|
||||
);
|
||||
|
||||
expectButtonByText(container, "Light Green").click();
|
||||
const customThemeButton = expectButtonByText(container, "Light Green");
|
||||
customThemeButton.click();
|
||||
|
||||
expect(setTheme).toHaveBeenCalledWith("custom", expect.any(Object));
|
||||
expect(setTheme).toHaveBeenCalledWith("custom", { element: customThemeButton });
|
||||
expect(onOpenCustomThemeImport).not.toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user