Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
test(picker): wait for rendered rows before the escape-abort snapshot (#4527)
Worktrunk Bot7427b2faadf7
diff --git a/tests/integration_tests/switch_picker.rs b/tests/integration_tests/switch_picker.rsindex 3f12dafbd..e8bfb43fe 100644--- a/tests/integration_tests/switch_picker.rs+++ b/tests/integration_tests/switch_picker.rs@@ -859,7 +859,11 @@ fn test_switch_picker_abort_with_escape(repo: TestRepo) {&["switch"],repo.root_path(),&env_vars,- &[], // No inputs before abort+ // Settle: the preview renders only after the list has a selected row,+ // so gating on it confirms both panels before capture. Without a gate,+ // a prompt that sits quiet for STABLE_DURATION on a slow runner gets+ // captured before any rows arrive.+ &[("", Some("has no file changes"))],);assert_valid_abort_exit_code(result.exit_code);