Skip to content

test(interactors): stop racing the handler that hides the badges - #216

Merged
adamjohnwright merged 4 commits into
mainfrom
fix/flaky-zoom-notice
Sep 16, 2026
Merged

adamjohnwright merged 4 commits into
mainfrom
fix/flaky-zoom-notice

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

One of four tests currently passing only on retry in CI. Playwright is set to
retries: 2 there, so it goes green and nobody sees it.

The race

The badges are added to the graph, and the handler that hides them at a zoom
where they cannot be read runs afterwards. Reading visibility once could catch
the moment in between — nine badges present and still visible — and fail.

It polls now, both for the badges going away and for them coming back after "Zoom
to them": the fit and the restyle it triggers are not finished when the click
returns either.

Run three times with --retries=0: three passes.

The other three

Found while auditing for settings that accept a failure quietly, after
--legacy-peer-deps turned out to be doing exactly that (#215). The same run
reported these as flaky, and they are not mine to guess at:

  • download-feedback.spec.ts:212 — "says it is working during the wait"
  • back-button.spec.ts:40 — "leaves the pathway browser without stepping through tabs first"
  • pathway-browser.spec.ts:171 — "the Expression tab renders the Expression Atlas heatmap"

Filed separately rather than fixed blind.

🤖 Generated with Claude Code

This test passed on a retry in CI and was reported as flaky. Retries are
set to 2 there, so it went green and nobody saw it.

The race: the badges are added to the graph, and the handler that hides
them at a zoom where they cannot be read runs afterwards. Reading
visibility once could catch the moment in between, when nine badges exist
and are still visible.

It polls now, both for the badges going away and for them coming back
after "Zoom to them" -- the fit and the restyle it triggers are not
finished when the click returns either.

Run three times with retries off: three passes.

Found while auditing for other settings that accept a failure quietly,
after --legacy-peer-deps turned out to be doing exactly that.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 61b4a0b into main Sep 16, 2026
6 checks passed
@adamjohnwright
adamjohnwright deleted the fix/flaky-zoom-notice branch September 16, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant