-
Notifications
You must be signed in to change notification settings - Fork 3.7k
fix: flakey CLI tests #8124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: flakey CLI tests #8124
Conversation
|
✅ Review Complete Code Review Summary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 1 file
bb754f7 to
e0f382b
Compare
e0f382b to
70554f5
Compare
|
✅ Review Complete Code Review Summary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 4 files
| expect(frame).toContain("Ask anything"); | ||
| // UI should still be functional and show the typed special characters | ||
| // Note: "Ask anything" placeholder is replaced when text is typed | ||
| expect(frame).toContain("!@#$%^&*()"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure about this one? Unlike the other changes this one changes the expected behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, up on line 56 we're doing stdin.write("!@#$%^&*()") so this assertion shouldn't be expecting 'Ask anything' which is the placeholder text of the user input box
|
🎉 This PR is included in version 1.27.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.24.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
[ What changed? Feel free to be brief. ]
AI Code Review
@continue-reviewChecklist
Screen recording or screenshot
[ When applicable, please include a short screen recording or screenshot - this makes it much easier for us as contributors to review and understand your changes. See this PR as a good example. ]
Tests
[ What tests were added or updated to ensure the changes work as expected? ]
Summary by cubic
Fixes a flaky TUIChat file search test by simulating real typing. Adds 250ms delays between '@' inputs so TextBuffer doesn’t treat them as a single paste (200ms window), making the test reliable.