Skip to content

test(e2e): move the pointer off the Deepness multiselect button - #8458

Merged
TheWitness merged 1 commit into
Cacti:developfrom
somethingwithproof:fix/deepness-multiselect-theme-test
Oct 23, 2026
Merged

TheWitness merged 1 commit into
Cacti:developfrom
somethingwithproof:fix/deepness-multiselect-theme-test

Conversation

@somethingwithproof

@somethingwithproof somethingwithproof commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

This change makes the Deepness theme test measure the button’s normal colour consistently. It moves the mouse pointer away before reading the computed style, so an accidental hover does not change the result. This removes a source of intermittent browser-test failures while retaining the existing colour assertions.

Implementation details

The Deepness multiselect test from #8443 fails intermittently in the chromium job: #ms-button reads rgb(22, 28, 37) (the hover colour) instead of rgb(17, 22, 29).

Deepness sets body { margin: 0 }, so the button sits at the viewport origin, and headless Chromium on Linux sometimes leaves the pointer there and matches .ui-multiselect.ui-state-default:hover. Moving the pointer to (5, 5) before reading styles reproduces the exact CI diff locally.

The test now moves the pointer to an empty part of the page before reading computed styles. The assertions are unchanged and the CSS is correct.

Verified: with a forced move to (5, 5) followed by the fix, 10/10 runs pass. The workflow's two specs pass with --repeat-each=5 (510 passed, macOS Chromium, Playwright 1.64.0, Node 22).

Revision and checks

Verified 2026-10-23 06:05 UTC at fd0af43a8; target develop, 1 changed file.

GitHub reports 37 passed, 3 skipped, 1 neutral, with no failed or pending checks. Skipped and neutral checks are not counted as passed. Earlier local measurements above retain their stated environments and revisions. Independent approval is still required before merge.

Deepness sets a zero body margin, so the unhovered #ms-button sits at the viewport origin and headless Chromium on Linux intermittently applies :hover to it.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@somethingwithproof
somethingwithproof requested a review from a team as a code owner October 22, 2026 23:52
@somethingwithproof
somethingwithproof requested review from cigamit and removed request for a team October 22, 2026 23:52
@sonarqubecloud

Copy link
Copy Markdown

@TheWitness
TheWitness merged commit dddac6f into Cacti:develop Oct 23, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

develop Bug in the development branch github_actions Pull requests that update GitHub Actions code themes Features or bugs associated with themes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants