Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Ensure TextEditorComponent was resized before asserting on its contents #19487
Previously, we would wait for the next update promise after resizing the editor as an indicator of when the resize occurred. Unfortunately, resize events are unreliable and may not be emitted right away. This could cause the test code to wait for an update promise that was unrelated to the resize event (e.g., cursor blinking).
This pull request uses a condition-based promise that ensures the rendered rows have changed as a result of the resize. This seems to fix the issue locally when introducing artificial timeouts in the resize event.