test: tighten quick settings theme assertion

This commit is contained in:
Peter Steinberger
2026-05-09 04:52:22 +01:00
parent 1ddab3067c
commit 8d563f40ea

View File

@@ -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();
});
});