Repository navigation
ci(ios): visual snapshots of deterministic map scenes, uploaded to Percy - #4380
Merged
Merged
Conversation
mfazekas
force-pushed
the
ci/ios-screenshot-tests
branch
from
October 21, 2026 12:43
4ee1d0a to
0b4dc8c
Compare
mfazekas
force-pushed
the
ci/ios-screenshot-tests
branch
from
October 21, 2026 14:03
d00f488 to
d9dc455
Compare
Adds E2E scenes rendered from a local style and local GeoJSON and a Detox test that captures them into e2e/artifacts/visual. They are uploaded to Percy from a separate, non-blocking job when PERCY_TOKEN is available. A manual workflow captures the snapshots or the doc screenshots on demand.
mfazekas
force-pushed
the
ci/ios-screenshot-tests
branch
from
October 21, 2026 19:34
d9dc455 to
58a65f1
Compare
5 of 8 tasks
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Stacked on #4379. Adds informational visual snapshots of map rendering to the iOS CI.
E2E > Screenshot *examples render fill, line, circle and symbol layers (with a local image and data-driven expressions) on a local style with local GeoJSON. They load no tiles, glyphs or sprites from Mapbox, use a fixed camera, have ornaments off and show no puck.e2e/visual.e2e.jswaits foronMapIdleand then until two captures are identical. It crops the map out of the simulator screenshot intoe2e/artifacts/visual/<scene>.png. Thevisual-snapshotsartifact has these files.Percy visual snapshotsjob runspercy uploadon them for pushes tomain, same-repo PRs and manual runs. It skips whenPERCY_TOKENis not set and iscontinue-on-error, so neither upload problems nor Percy diffs fail CI. PR builds setPERCY_TARGET_BRANCH=main.continue-on-error.firstTeststays the only gate.iOS e2e (manual)workflow can capture the doc site screenshots (doc-screenshotsartifact). They stay out of Percy.e2e/config.jslimits jestrootstoe2e/. Without watchman, crawling all ofexample/took about 5 minutes on CI.Setup: create a Percy web project and add its token as the
PERCY_TOKENrepo secret. The Percy status must not be added to the required checks.Checklist
CONTRIBUTING.mdyarn generatein the root folder/exampleapp./example)Screenshot OR Video
Scenes as captured on the GitHub
macos-15runner (iPhone 17, iOS 26.2) are in thevisual-snapshotsartifact of the CI run.