Skip to content

test: implement AI-backed golden screenshot fallback#1685

Open
kikoso wants to merge 1 commit intofeat/rewrite-android-maps-utilsfrom
feature/ai-golden-screenshots
Open

test: implement AI-backed golden screenshot fallback#1685
kikoso wants to merge 1 commit intofeat/rewrite-android-maps-utilsfrom
feature/ai-golden-screenshots

Conversation

@kikoso
Copy link
Copy Markdown
Collaborator

@kikoso kikoso commented May 5, 2026

Implements proposal for optimizing AI-based visual testing.

  • Adds a fast, local pixel-based golden screenshot comparison.
  • Falls back to the Gemini Vision API only when the goldens don't match or are missing.
  • Automatically saves/updates the new golden upon Gemini approval, avoiding the need to manually update them but logging a warning so developers can review the new baseline.
  • Refactored ClusteringVisualTest to use this new approach.

- Added pixel-based golden screenshot comparison to `BaseVisualTest`.
- Introduced fallback to Gemini Vision API when goldens don't match or are missing.
- Automatically saves new goldens upon Gemini approval.
- Refactored `ClusteringVisualTest` to use the new verification method.
@googlemaps-bot
Copy link
Copy Markdown
Contributor

Code Coverage

Overall Project 67.31% 🍏

There is no coverage information present for the Files changed

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.

3 participants