test: expose cron edit controls · openclaw/openclaw@24fa9ba
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -542,8 +542,10 @@ describe("cron view", () => {
|
542 | 542 | expect(onEdit).toHaveBeenCalledWith(job); |
543 | 543 | expect(onLoadRuns).toHaveBeenCalledWith("job-3"); |
544 | 544 | |
545 | | -expect(container.textContent).toContain("Edit Job"); |
546 | | -expect(container.textContent).toContain("Save changes"); |
| 545 | +expect(container.querySelector(".cron-form-header .card-title")?.textContent?.trim()).toBe( |
| 546 | +"Edit Job", |
| 547 | +); |
| 548 | +expect(getButtonByText(container, "Save changes").disabled).toBe(false); |
547 | 549 | |
548 | 550 | const cancelButton = getButtonByText(container, "Cancel"); |
549 | 551 | cancelButton.dispatchEvent(new MouseEvent("click", { bubbles: true })); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。