Skip to content

Scope the about-popover assertion to its own dialog - #49

Merged
ivanvyd merged 1 commit into
mainfrom
fix/legend-popover-flake
Jul 30, 2026
Merged

Scope the about-popover assertion to its own dialog#49
ivanvyd merged 1 commit into
mainfrom
fix/legend-popover-flake

Conversation

@ivanvyd

@ivanvyd ivanvyd commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Dashboard_LegendAndAbout_… failed the 4.0.0 rehearsal and the 4.1.0 release, and passed every PR run. .hpm-popover-head .hpm-tag matches the event log's header as well as the about dialog's, so whenever both were in the DOM the locator resolved to two elements — a strict-mode violation, not an assertion.

Scoped to the about dialog by accessible name, and asserted positively (the tag must look like a version) rather than negatively — a Not.ToHaveText also passes when the element is missing, so it could only fail for the wrong reasons.

Three consecutive runs green; full E2E 53/53.

This test blocked two releases and passed every pull request, which is
the signature of a locator that resolves to a different number of
elements depending on timing. ".hpm-popover-head .hpm-tag" matched the
event log's header as well as the about dialog's, so whenever both were
in the DOM it was a strict-mode violation rather than an assertion.

Scoped to the about dialog by its accessible name, and asserted
positively: the tag has to look like a version. The old assertion was a
negative, which also passes when the element is missing entirely -- so it
could only ever fail for the wrong reasons.

Three consecutive runs green, and the full suite is 53/53.
@ivanvyd
ivanvyd merged commit 18a3029 into main Jul 30, 2026
8 checks passed
@ivanvyd
ivanvyd deleted the fix/legend-popover-flake branch July 30, 2026 18:12
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