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
fix(e2e): resolve flaky haiku display test by checking only last haiku
The Tool Based Generative UI haiku test was exhibiting flaky behavior
where it would sometimes pass and sometimes fail with the same test
conditions. The test was more reliable when run with --headed than
when run headless, suggesting a timing-related issue.
Root cause: The extractMainDisplayHaikuContent() method was concatenating
ALL visible haiku lines from the main display, while the chat extraction
only captured the most recent haiku. When multiple haikus were displayed
simultaneously (due to rendering timing), this caused mismatches.
Fix: Modified extractMainDisplayHaikuContent() to extract only the last
3 lines (the most recent haiku), matching the behavior of the chat
extraction and eliminating timing-related flakiness.
This affects all 10 platform integration tests that use ToolBaseGenUIPage.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments