Skip to content

GAUD-9420: attempt to fix flaky collapsible panel test#6561

Open
dlockhart wants to merge 1 commit intomainfrom
GAUD-9420/collapsible-panel-fix
Open

GAUD-9420: attempt to fix flaky collapsible panel test#6561
dlockhart wants to merge 1 commit intomainfrom
GAUD-9420/collapsible-panel-fix

Conversation

@dlockhart
Copy link
Member

This test flaked in Firefox in a CI run so I looked into it a bit.

The behaviour and test was introduced here and it's meant to keep the focus styles if the user clicks on the <button> that surrounds the panel text.

But the test isn't clicking on that button, it's clicking on the panel header. I've outlined the panel header in red and the button in blue:

Screenshot 2026-02-05 at 3 15 31 PM

The way that vdiff clickElem works is it gets the midpoint of the element and clicks there. So most of the time but depending on the viewport/font size clicking in the middle of the red outlined header should also result in clicking on the button and the test would pass. But possibly occasionally it misses the button and just clicks on the header, which would remove the focus styles and fail the test.

That's my theory anyway!

@dlockhart dlockhart requested a review from a team as a code owner February 5, 2026 20:21
@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-6561/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

@dlockhart dlockhart changed the title GAUD-9420: attempt to fix flaky collapsible panel fix GAUD-9420: attempt to fix flaky collapsible panel test Feb 5, 2026
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