Skip to content

ci(ios): visual snapshots of deterministic map scenes, uploaded to Percy - #4380

Merged
mfazekas merged 1 commit into
mainfrom
ci/ios-screenshot-tests
Oct 21, 2026
Merged

mfazekas merged 1 commit into
mainfrom
ci/ios-screenshot-tests

Conversation

@mfazekas

@mfazekas mfazekas commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

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.js waits for onMapIdle and then until two captures are identical. It crops the map out of the simulator screenshot into e2e/artifacts/visual/<scene>.png. The visual-snapshots artifact has these files.
  • A separate Percy visual snapshots job runs percy upload on them for pushes to main, same-repo PRs and manual runs. It skips when PERCY_TOKEN is not set and is continue-on-error, so neither upload problems nor Percy diffs fail CI. PR builds set PERCY_TARGET_BRANCH=main.
  • The capture step is also continue-on-error. firstTest stays the only gate.
  • The manual iOS e2e (manual) workflow can capture the doc site screenshots (doc-screenshots artifact). They stay out of Percy.
  • e2e/config.js limits jest roots to e2e/. Without watchman, crawling all of example/ took about 5 minutes on CI.

Setup: create a Percy web project and add its token as the PERCY_TOKEN repo secret. The Percy status must not be added to the required checks.

Checklist

  • I've read CONTRIBUTING.md
  • I updated the doc/other generated code with running yarn generate in the root folder
  • I have tested the new feature on /example app.
    • In V11 mode/ios
    • In New Architecture mode/ios
    • In V11 mode/android
    • In New Architecture mode/android
  • I added/updated a sample - if a new feature was implemented (/example)

Screenshot OR Video

Scenes as captured on the GitHub macos-15 runner (iPhone 17, iOS 26.2) are in the visual-snapshots artifact of the CI run.

@mfazekas
mfazekas force-pushed the ci/ios-screenshot-tests branch from 4ee1d0a to 0b4dc8c Compare October 21, 2026 12:43
@mfazekas mfazekas changed the title ci(ios): screenshot comparison of deterministic map scenes ci(ios): visual snapshots of deterministic map scenes, uploaded to Percy Oct 21, 2026
@mfazekas
mfazekas force-pushed the ci/ios-screenshot-tests branch from d00f488 to d9dc455 Compare October 21, 2026 14:03
Base automatically changed from ci/detox-ios-e2e to main October 21, 2026 19:32
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
mfazekas force-pushed the ci/ios-screenshot-tests branch from d9dc455 to 58a65f1 Compare October 21, 2026 19:34
@mfazekas
mfazekas merged commit 85dcf0a into main Oct 21, 2026
10 checks passed
@mfazekas
mfazekas deleted the ci/ios-screenshot-tests branch October 21, 2026 20:45

This branch was previously deployed

1 inactive deployment
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