test: read cron due metadata · openclaw/openclaw@f1569b4
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -171,8 +171,10 @@ describe("cron view", () => {
|
171 | 171 | |
172 | 172 | expect(onRunsFiltersChange).toHaveBeenCalledWith({ cronRunsStatuses: ["ok"] }); |
173 | 173 | |
174 | | -expect(container.textContent).toContain("Due"); |
175 | | -expect(container.textContent).not.toContain("Next 13"); |
| 174 | +const runMeta = Array.from(container.querySelectorAll(".cron-run-entry__meta .muted")).map( |
| 175 | +(node) => node.textContent?.trim(), |
| 176 | +); |
| 177 | +expect(runMeta.at(-1)).toBe("Due 13m ago"); |
176 | 178 | |
177 | 179 | const scheduleSelect = getElement( |
178 | 180 | container, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。