test: tighten dreaming empty state assertion · openclaw/openclaw@b856b3f
shakkernerd
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -497,7 +497,7 @@ describe("dreaming view", () => {
|
497 | 497 | setDreamSubTab("diary"); |
498 | 498 | setDreamDiarySubTab("dreams"); |
499 | 499 | const emptyContainer = renderInto(buildProps({ dreamDiaryContent: null })); |
500 | | -expect(emptyContainer.querySelector(".dreams-diary__empty")).not.toBeNull(); |
| 500 | +expect(emptyContainer.querySelectorAll(".dreams-diary__empty")).toHaveLength(1); |
501 | 501 | expect(emptyContainer.querySelector(".dreams-diary__empty-text")?.textContent).toContain( |
502 | 502 | "No dreams yet", |
503 | 503 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。