diff --git a/ui/src/ui/views/config-quick.test.ts b/ui/src/ui/views/config-quick.test.ts index 8fc4402e860..330e4236caf 100644 --- a/ui/src/ui/views/config-quick.test.ts +++ b/ui/src/ui/views/config-quick.test.ts @@ -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(); }); });