Skip to content

[EXTENSION] Add visual regression screenshot baseline for popup and side panel UI with Playwright #825

Description

@wheval

Feature Description

Capture baseline screenshots for all major popup screens and add a Playwright visual regression check that fails on unexpected UI changes.

Problem Statement

There is no visual regression testing. UI changes can inadvertently break the layout of the popup or approval screens without tests catching it.

Proposed Solution

  • Add playwright.visual.config.ts with screenshot baseline configuration
  • Capture baselines for: unlock screen, home/balance screen, send form, review screen, grant-access, sign-transaction, session keys list
  • Add toMatchSnapshot() assertions in new tests/e2e/visual.spec.ts
  • Run on CI with --update-snapshots flag on baseline refresh PRs
  • Store baselines in tests/e2e/snapshots/ committed to repo

Impact Area

  • Extension Wallet

Priority

  • Medium - Nice to have

Implementation Complexity

  • Simple - Few changes needed

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions