Skip to content

test: activate keyboard mode in popover focus visual tests#11468

Merged
web-padawan merged 1 commit intomainfrom
fix/popover-focus-visual-test
Apr 9, 2026
Merged

test: activate keyboard mode in popover focus visual tests#11468
web-padawan merged 1 commit intomainfrom
fix/popover-focus-visual-test

Conversation

@web-padawan
Copy link
Copy Markdown
Member

@web-padawan web-padawan commented Apr 9, 2026

Summary

  • Focus the popover target using sendKeys({ press: 'Tab' }) before opening, so that keyboard mode is active and the overlay :focus-visible ring is shown in screenshots
  • After updating Playwright to 1.59 (Chrome 145+), the :focus-visible no longer applies because without keyboard activation, focus({ focusVisible: false }) is called. Since the popover overlay receives focus programmatically, the focus ring would disappear from screenshots without this change.

Test plan

  • yarn test:base --group popover passes with updated screenshots

🤖 Generated with Claude Code

Focus the target using sendKeys Tab before opening the popover so
that keyboard mode is active and the overlay focus-ring is shown.

Without this, Playwright 1.59+ (Chrome 145) no longer shows the
browser default focus outline for programmatic focus, causing the
focus-visible screenshots to lose their focus ring.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@web-padawan web-padawan force-pushed the fix/popover-focus-visual-test branch from 3d88a7c to a48122c Compare April 9, 2026 12:07
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 9, 2026

@web-padawan web-padawan merged commit 26ebee1 into main Apr 9, 2026
10 checks passed
@web-padawan web-padawan deleted the fix/popover-focus-visual-test branch April 9, 2026 12:12
vaadin-bot pushed a commit that referenced this pull request Apr 9, 2026
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
web-padawan added a commit that referenced this pull request Apr 9, 2026
…11470)

Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants