Commit 142da63
test: fix flaky MainWindowTest.ModeBarLoadsAndModeChange (show window first)
This test failed intermittently on CI (Xvfb) with:
Value of: window->m_modeBarShell->isHidden() Actual: true Expected: false
The fixture constructs MainWindow but never show()s it. QToolBar::isHidden()
reflects effective visibility, which is only realized once the parent window is
mapped — so under Xvfb the shell reports hidden and the assertion is racy. It hit
BOTH this branch and the unrelated CI-only PR #756 (which has no source changes),
confirming it's a pre-existing flake, not a regression.
Fix: show() the window and processEvents() before the visibility assertion.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent b8d5159 commit 142da63
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
285 | 292 | | |
286 | 293 | | |
287 | 294 | | |
| |||
0 commit comments