Skip to content

Commit b6b2301

Browse files
committed
test(tui): accept StartChoice as the post-login onboarding phase
Commit 2c96c68 made onboarding_after_login advance through ModelSelect into the new StartChoice phase, leaving this assertion stale.
1 parent e9c7bb6 commit b6b2301

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

crates/jcode-tui/src/tui/app/tests/onboarding_flow.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,14 @@ fn login_phase_advances_to_model_select_without_telemetry_prompt() {
285285
Some(OnboardingPhase::Login { .. })
286286
));
287287
// After login we no longer ask a telemetry-consent question; we advance
288-
// straight to model selection and leave content sharing off.
288+
// straight through model selection into the first-run start choice and
289+
// leave content sharing off.
289290
app.onboarding_after_login();
290291
assert!(matches!(
291292
app.onboarding_phase(),
292-
Some(OnboardingPhase::ModelSelect) | Some(OnboardingPhase::Suggestions)
293+
Some(OnboardingPhase::ModelSelect)
294+
| Some(OnboardingPhase::Suggestions)
295+
| Some(OnboardingPhase::StartChoice { .. })
293296
));
294297
assert!(!crate::telemetry::content_sharing_enabled());
295298
});

0 commit comments

Comments
 (0)