diff --git a/scripts/e2e/lib/onboard/scenario.sh b/scripts/e2e/lib/onboard/scenario.sh index 0b511eac4668..d75ab374c967 100644 --- a/scripts/e2e/lib/onboard/scenario.sh +++ b/scripts/e2e/lib/onboard/scenario.sh @@ -243,6 +243,8 @@ send_skills_flow() { } send_guided_skip_ui_flow() { + wait_for_log "Help make OpenClaw better?" 120 || return $? + send $'\r' 0.8 wait_for_log "What should we call your first agent?" 120 || return $? send $'\r' 0.8 wait_for_log "How should I set things up?" 120 || return $? diff --git a/scripts/e2e/lib/release-typed-onboarding/scenario.sh b/scripts/e2e/lib/release-typed-onboarding/scenario.sh index 0d6bf6e02e4c..d10e72cdb20a 100755 --- a/scripts/e2e/lib/release-typed-onboarding/scenario.sh +++ b/scripts/e2e/lib/release-typed-onboarding/scenario.sh @@ -105,6 +105,8 @@ exec 3>"$input_fifo" wait_for_log "Continue?" 60 send $'y\r' 0.4 +wait_for_log "Help make OpenClaw better?" 60 +send $'\r' 0.4 wait_for_log "What should we call your first agent?" 60 send $'\r' 0.4 wait_for_log "to search" 60 diff --git a/test/scripts/docker-build-helper.test.ts b/test/scripts/docker-build-helper.test.ts index 65ea7422f54e..5e2789422d49 100644 --- a/test/scripts/docker-build-helper.test.ts +++ b/test/scripts/docker-build-helper.test.ts @@ -2733,16 +2733,20 @@ docker_e2e_docker_run_cmd run demo expect(script).not.toContain("/tmp/openclaw-channel-add.log"); }); - it("keeps real-TTY onboarding drivers aligned with the first-agent prompt", () => { + it("keeps real-TTY onboarding drivers aligned with the guided prompt sequence", () => { expectOrderedScriptFragments(readFileSync(RELEASE_TYPED_ONBOARDING_SCENARIO_PATH, "utf8"), [ 'wait_for_log "Continue?"', "send $'y\\r'", + 'wait_for_log "Help make OpenClaw better?"', + "send $'\\r'", 'wait_for_log "What should we call your first agent?"', "send $'\\r'", 'wait_for_log "to search"', "send $'ollama\\r'", ]); expectOrderedScriptFragments(readFileSync(ONBOARD_SCENARIO_PATH, "utf8"), [ + 'wait_for_log "Help make OpenClaw better?"', + "send $'\\r'", 'wait_for_log "What should we call your first agent?"', "send $'\\r'", 'wait_for_log "How should I set things up?"',