You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(waiter): add edge case tests for empty and whitespace content
Add two new test cases to improve test coverage for edge cases: test_wait_for_pane_content_empty for testing completely empty pane content and test_wait_for_pane_content_whitespace for testing pane content with only whitespace.
Improvements: Uses built-in waiting utilities instead of time.sleep() for more reliable tests, properly handles shell prompts when testing for empty content, uses regex for empty content matching to handle potential prompt chars, and tests the contains match type for whitespace to ensure consistent results.
These tests help ensure that the wait_for_pane_content function properly handles edge cases with empty or whitespace-only content, making the library more robust for real-world use cases.
0 commit comments