Skip to content

chore: bump Playwright to 1.59.1#11450

Open
web-padawan wants to merge 5 commits intomainfrom
chore/bump-playwright-1.59
Open

chore: bump Playwright to 1.59.1#11450
web-padawan wants to merge 5 commits intomainfrom
chore/bump-playwright-1.59

Conversation

@web-padawan
Copy link
Copy Markdown
Member

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

Important

Depends on #11467

Summary

  • Update Playwright from 1.56.0 to 1.59.1 (resolution in package.json, Docker images in CI workflows)
  • Fix dashboard focus loss in Firefox: when removing items, Firefox loses focus from a remaining widget if a sibling DOM element is removed — save a reference to the focused element before DOM manipulation and restore it if focus was lost
  • Fix grid keyboard interaction Tab test for Firefox: use getDeepActiveElement() to reliably find the focused row across browsers, reduce tabToIndex to stay within the virtualizer's rendered row window

Visual test screenshot updates

  • Dialog / CRUD overlays: Chrome 145+ moved the browser's default focus outline from :focus to :focus-visible. Since overlays receive focus programmatically (.focus()), the browser's default outline no longer appears — this is correct behavior (no focus ring for non-keyboard focus)
  • Grid, popover, multi-select-combo-box: Sub-pixel rendering differences from the updated Chromium engine
  • Lumo, base styles, Aura: All screenshot baselines updated

Test plan

  • Dashboard tests pass in Firefox and Chrome
  • Grid keyboard interaction tests pass in Firefox and Chrome
  • Visual test baselines updated for Lumo, base styles, and Aura

🤖 Generated with Claude Code

@web-padawan web-padawan force-pushed the chore/bump-playwright-1.59 branch 3 times, most recently from b999b67 to b43b806 Compare April 9, 2026 09:32
Copy link
Copy Markdown
Member Author

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some notes regarding screenshot updates:

  1. Chrome 145 added support for focusVisible, and as we set it to false unless keyboardActive() is true - this caused the focus outline to disappear in dialog, CRUD and popover screenshots.
  2. Custom Field likely had hover state for the label / helper text previously - presumably because its wrapper was lacking padding: 10px that we use elsewhere, and by default the Playwright cursor was at 0, 0 position making :hover apply.

@web-padawan web-padawan force-pushed the chore/bump-playwright-1.59 branch from b43b806 to cfd7680 Compare April 9, 2026 11:48
web-padawan and others added 5 commits April 9, 2026 15:14
Update Playwright from 1.56.0 to 1.59.1 and the corresponding Docker
image in visual test workflows.

Fix dashboard focus restoration in Firefox: when removing items, Firefox
loses focus from a remaining widget if a sibling DOM element is removed.
Save a reference to the focused element before DOM manipulation and
restore it if focus was lost.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use getDeepActiveElement() to reliably find the focused row across
browsers. Firefox returns the shadow host for document.activeElement
when focus is on a slotted input, breaking the assignedSlot chain.

Reduce tabToIndex from 20 to 10 to stay within the virtualizer's
rendered row window — Firefox native Shift+Tab does not scroll
virtualized rows into view.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@web-padawan web-padawan force-pushed the chore/bump-playwright-1.59 branch from cfd7680 to bd29542 Compare April 9, 2026 12:19
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 9, 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