test: scope cron history subtitle · openclaw/openclaw@a665c00
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -267,8 +267,6 @@ describe("cron view", () => {
|
267 | 267 | "/ui/chat?session=agent%3Amain%3Acron%3Ajob-1%3Arun%3Aabc", |
268 | 268 | ); |
269 | 269 | |
270 | | -expect(container.textContent).toContain("Latest runs for Daily ping."); |
271 | | - |
272 | 270 | const cards = Array.from(container.querySelectorAll(".card")); |
273 | 271 | const runHistoryCard = cards.find( |
274 | 272 | (card) => card.querySelector(".card-title")?.textContent?.trim() === "Run history", |
@@ -277,6 +275,9 @@ describe("cron view", () => {
|
277 | 275 | if (!(runHistoryCard instanceof Element)) { |
278 | 276 | throw new Error("Expected run history card"); |
279 | 277 | } |
| 278 | +expect(runHistoryCard.querySelector(".card-sub")?.textContent?.trim()).toBe( |
| 279 | +"Latest runs for Daily ping.", |
| 280 | +); |
280 | 281 | |
281 | 282 | const summaries = Array.from(runHistoryCard.querySelectorAll(".cron-run-entry__body")).map( |
282 | 283 | (el) => (el.textContent ?? "").trim(), |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。