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

推荐订阅源

人人都是产品经理
人人都是产品经理
博客园_首页
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
美团技术团队
D
Docker
WordPress大学
WordPress大学
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
Y
Y Combinator Blog
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
Google Developers Blog
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
MongoDB | Blog
MongoDB | Blog
S
SegmentFault 最新的问题
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans

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
refactor: extract e2e scenario fixtures · openclaw/opencl...
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -161,6 +161,13 @@ run_wizard() {

161161

run_wizard_cmd "$case_name" "$state_ref" "node \"$OPENCLAW_ENTRY\" onboard $ONBOARD_FLAGS" "$send_fn" true "$validate_fn"

162162

}

163163164+

assert_onboard_config() {

165+

local scenario="$1"

166+

shift

167+

openclaw_e2e_assert_file "$OPENCLAW_CONFIG_PATH"

168+

node scripts/e2e/lib/onboard/assert-config.mjs "$scenario" "$OPENCLAW_CONFIG_PATH" "$@"

169+

}

170+164171

set_isolated_openclaw_env() {

165172

local state_ref="$1"

166173

openclaw_test_state_create "$state_ref" empty

@@ -230,16 +237,14 @@ run_case_local_basic() {

230237231238

# Assert config + workspace scaffolding.

232239

workspace_dir="$OPENCLAW_STATE_DIR/workspace"

233-

config_path="$OPENCLAW_CONFIG_PATH"

234240

sessions_dir="$OPENCLAW_STATE_DIR/agents/main/sessions"

235241236-

openclaw_e2e_assert_file "$config_path"

237242

openclaw_e2e_assert_dir "$sessions_dir"

238243

for file in AGENTS.md BOOTSTRAP.md IDENTITY.md SOUL.md TOOLS.md USER.md; do

239244

openclaw_e2e_assert_file "$workspace_dir/$file"

240245

done

241246242-

node scripts/e2e/lib/onboard/assert-config.mjs local-basic "$config_path" "$workspace_dir"

247+

assert_onboard_config local-basic "$workspace_dir"

243248244249

}

245250

@@ -253,25 +258,12 @@ run_case_remote_non_interactive() {

253258

--skip-skills \

254259

--skip-health

255260256-

config_path="$OPENCLAW_CONFIG_PATH"

257-

openclaw_e2e_assert_file "$config_path"

258-259-

node scripts/e2e/lib/onboard/assert-config.mjs remote-non-interactive "$config_path"

261+

assert_onboard_config remote-non-interactive

260262

}

261263262264

run_case_reset() {

263265

set_isolated_openclaw_env reset-config

264-

# Seed a remote config to exercise reset path.

265-

cat >"$OPENCLAW_CONFIG_PATH" <<'JSON'

266-

{

267-

"meta": {},

268-

"agents": { "defaults": { "workspace": "/root/old" } },

269-

"gateway": {

270-

"mode": "remote",

271-

"remote": { "url": "ws://old.example:18789", "token": "old-token" }

272-

}

273-

}

274-

JSON

266+

node scripts/e2e/lib/onboard/write-config.mjs reset "$OPENCLAW_CONFIG_PATH"

275267276268

openclaw_e2e_run_logged reset-config node "$OPENCLAW_ENTRY" onboard \

277269

--non-interactive \

@@ -285,43 +277,25 @@ JSON

285277

--skip-ui \

286278

--skip-health

287279288-

config_path="$OPENCLAW_CONFIG_PATH"

289-

openclaw_e2e_assert_file "$config_path"

290-291-

node scripts/e2e/lib/onboard/assert-config.mjs reset "$config_path"

280+

assert_onboard_config reset

292281

}

293282294283

run_case_channels() {

295284

# Channels-only configure flow.

296285

run_wizard_cmd channels channels "node \"$OPENCLAW_ENTRY\" configure --section channels" send_channels_flow

297286298-

config_path="$OPENCLAW_CONFIG_PATH"

299-

openclaw_e2e_assert_file "$config_path"

300-301-

node scripts/e2e/lib/onboard/assert-config.mjs channels "$config_path"

287+

assert_onboard_config channels

302288

}

303289304290

run_case_skills() {

305291

local home_dir

306292

set_isolated_openclaw_env skills

307293

home_dir="$HOME"

308-

# Seed skills config to ensure it survives the wizard.

309-

cat >"$OPENCLAW_CONFIG_PATH" <<'JSON'

310-

{

311-

"meta": {},

312-

"skills": {

313-

"allowBundled": ["__none__"],

314-

"install": { "nodeManager": "bun" }

315-

}

316-

}

317-

JSON

294+

node scripts/e2e/lib/onboard/write-config.mjs skills "$OPENCLAW_CONFIG_PATH"

318295319296

run_wizard_cmd skills "$home_dir" "node \"$OPENCLAW_ENTRY\" configure --section skills" send_skills_flow

320297321-

config_path="$OPENCLAW_CONFIG_PATH"

322-

openclaw_e2e_assert_file "$config_path"

323-324-

node scripts/e2e/lib/onboard/assert-config.mjs skills "$config_path"

298+

assert_onboard_config skills

325299

}

326300327301

validate_local_basic_log() {