test: read cron error bodies · openclaw/openclaw@a517434
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -486,8 +486,8 @@ describe("cron view", () => {
|
486 | 486 | container, |
487 | 487 | ); |
488 | 488 | |
489 | | -expect(container.querySelector(".cron-run-entry__meta")?.textContent).not.toContain( |
490 | | -"Failed with", |
| 489 | +expect(container.querySelector(".cron-run-entry__body")?.textContent?.trim()).toBe( |
| 490 | +"Failed with markdown", |
491 | 491 | ); |
492 | 492 | expect(container.querySelector(".cron-run-entry__body strong")?.textContent).toBe("markdown"); |
493 | 493 | }); |
@@ -511,8 +511,8 @@ describe("cron view", () => {
|
511 | 511 | container, |
512 | 512 | ); |
513 | 513 | |
514 | | -expect(container.querySelector(".cron-run-entry__meta")?.textContent).not.toContain( |
515 | | -"Failed with", |
| 514 | +expect(container.querySelector(".cron-run-entry__body")?.textContent?.trim()).toBe( |
| 515 | +"Failed with markdown", |
516 | 516 | ); |
517 | 517 | expect(container.querySelector(".cron-run-entry__body strong")?.textContent).toBe("markdown"); |
518 | 518 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。