test: tighten quick settings theme assertion · openclaw/openclaw@8d563f4
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -398,9 +398,10 @@ describe("renderQuickSettings", () => {
|
398 | 398 | container, |
399 | 399 | ); |
400 | 400 | |
401 | | -expectButtonByText(container, "Light Green").click(); |
| 401 | +const customThemeButton = expectButtonByText(container, "Light Green"); |
| 402 | +customThemeButton.click(); |
402 | 403 | |
403 | | -expect(setTheme).toHaveBeenCalledWith("custom", expect.any(Object)); |
| 404 | +expect(setTheme).toHaveBeenCalledWith("custom", { element: customThemeButton }); |
404 | 405 | expect(onOpenCustomThemeImport).not.toHaveBeenCalled(); |
405 | 406 | }); |
406 | 407 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。