惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

L
LangChain Blog
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
D
Docker
WordPress大学
WordPress大学
罗磊的独立博客
J
Java Code Geeks
博客园 - 【当耐特】
博客园 - 司徒正美
雷峰网
雷峰网
H
Help Net Security
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
B
Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: index cron validation status · openclaw/openclaw@a5...
shakkernerd · 2026-05-12 · via Recent Commits to openclaw:main

@@ -652,14 +652,38 @@ describe("cron view", () => {

652652

container,

653653

);

654654655-

expect(container.textContent).toContain("Name is required.");

656-

expect(container.textContent).toContain("Cron expression is required.");

657-

expect(container.textContent).toContain("Agent message is required.");

658-

expect(container.textContent).toContain("Can't add job yet");

659-

expect(container.textContent).toContain("Fix 3 fields to continue.");

655+

expect(container.querySelector("#cron-error-name")?.textContent?.trim()).toBe(

656+

"Name is required.",

657+

);

658+

expect(container.querySelector("#cron-error-cronExpr")?.textContent?.trim()).toBe(

659+

"Cron expression is required.",

660+

);

661+

expect(container.querySelector("#cron-error-payloadText")?.textContent?.trim()).toBe(

662+

"Agent message is required.",

663+

);

664+665+

const validationStatus = getElement(container, ".cron-form-status", HTMLElement);

666+

expect(validationStatus.querySelector(".cron-form-status__title")?.textContent?.trim()).toBe(

667+

"Can't add job yet",

668+

);

669+

expect(validationStatus.querySelector(".cron-help")?.textContent?.trim()).toBe(

670+

"Fill the required fields below to enable submit.",

671+

);

672+

expect(

673+

Array.from(validationStatus.querySelectorAll(".cron-form-status__link")).map((button) =>

674+

button.textContent?.trim(),

675+

),

676+

).toEqual([

677+

"Name: Name is required.",

678+

"Expression: Cron expression is required.",

679+

"Assistant task prompt: Agent message is required.",

680+

]);

660681661682

const saveButton = getButtonByAnyText(container, ["Add job", "Save changes"]);

662683

expect(saveButton.disabled).toBe(true);

684+

expect(container.querySelector(".cron-submit-reason")?.textContent?.trim()).toBe(

685+

"Fix 3 fields to continue.",

686+

);

663687664688

render(

665689

renderCron(

@@ -682,17 +706,21 @@ describe("cron view", () => {

682706

container,

683707

);

684708685-

expect(container.textContent).toContain("* Required");

709+

expect(container.querySelector(".cron-required-legend")?.textContent?.trim()).toBe(

710+

"* Required",

711+

);

686712687713

const nameInput = container.querySelector("#cron-name");

688714

expect(nameInput?.getAttribute("aria-invalid")).toBe("true");

689715

expect(nameInput?.getAttribute("aria-describedby")).toBe("cron-error-name");

690-

expect(container.querySelector("#cron-error-name")?.textContent).toContain("Name is required.");

716+

expect(container.querySelector("#cron-error-name")?.textContent?.trim()).toBe(

717+

"Name is required.",

718+

);

691719692720

const everyInput = container.querySelector("#cron-every-amount");

693721

expect(everyInput?.getAttribute("aria-invalid")).toBe("true");

694722

expect(everyInput?.getAttribute("aria-describedby")).toBe("cron-error-everyAmount");

695-

expect(container.querySelector("#cron-error-everyAmount")?.textContent).toContain(

723+

expect(container.querySelector("#cron-error-everyAmount")?.textContent?.trim()).toBe(

696724

"Interval must be greater than 0.",

697725

);

698726

});