Skip to content

Generate the WordPress App Store screenshots from the app - #26355

Open
jkmassel wants to merge 21 commits into
jkmassel/app-store-screenshotsfrom
jkmassel/wordpress-app-store-screenshots
Open

jkmassel wants to merge 21 commits into
jkmassel/app-store-screenshotsfrom
jkmassel/wordpress-app-store-screenshots

Conversation

@jkmassel

@jkmassel jkmassel commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Generates the WordPress app's App Store screenshots from the app, the same way #26339 does for Jetpack: the same UI test, fixtures, devices and compositor, in every App Store language, on iPhone and iPad.

Stacked on #26339.

Summary

  • Screens: Editor, Staff (a custom post type), Media, Pages and the Reader. The Reader is the same post the Jetpack screenshots open, since the WordPress app now shows the Reader to WordPress.com accounts (Show Reader in the first session after signing in to the WordPress app #26398).
  • bundle exec fastlane wordpress_screenshots builds the WordPress app with the fixtures and runs the AppStoreScreenshots test against it. The test target is still Jetpack's; it launches the WordPress app by its bundle identifier.
  • bundle exec fastlane create_promo_screenshots now composes them with Scripts/app-store-screenshots/compose.swift, with the WordPress logo on the title screen. It replaces the release toolkit's promo_screenshots layout.
  • bundle exec fastlane trigger_app_store_screenshots app:wordpress (or app:jetpack) runs the screenshot pipeline on CI for either app. It replaces trigger_jetpack_screenshots.
  • The WordPress screenshots have fixtures of their own, in fastlane/appstoreres/screenshot_fixtures/wordpress/, loaded over the UI tests' fixtures. They make the fixture site an Atomic site, since the app only shows custom post types on sites it reaches through the core REST API, and give it a Staff post type with four agents. They also turn on the app's Reader flag (wordpress_ios_reader), which the UI tests' fixtures leave off; without it the Reader tab shows the Jetpack poster. And they list ten photos in the site's media library whose images the fixtures serve; the UI tests' list points at images they don't. The UI tests don't see any of it.
  • The headlines are new GlotPress strings, a feature name and the rest, as for Jetpack. The title, Editor, Media and Pages headlines reuse the translators' wording of the old WordPress screenshots where it fits, and the Reader headline reuses the Jetpack one and its translations.
  • Removed: the old WordPress screenshot layout (fastlane/screenshots.json), its assets, and its app_store_screenshot_* headlines.
  • fastlane/appstoreres/jetpack_screenshot_content/ is now screenshot_content/, shared by both apps.

App changes

All three only apply to builds for the UI tests.

  • A UI test reset now clears the wordpress-rs cache (Library/app.sqlite). A sync only fetches what changed on the server, so a cache left from an earlier launch kept showing what that launch was sent.
  • -ui-test-app-store-screenshots hides the beta badge on the custom post types screen.
  • While taking the screenshots, the app's feature flags take the values a release build has. The screenshots are taken with a Debug build, which turns on features still in development, such as Media Library v2. The Media screenshot now shows the library people get from the App Store.

CI fixes

These came out of the full CI runs, and apply to both apps:

  • The app is passed to each screenshot job as a command argument. A step's env: doesn't reach the Mac VMs.
  • The compositor rejects screenshots of an unknown size. It used to treat one as an iPad screenshot and overwrite the real iPad files.
  • The screenshot build is set up like trunk's build for testing: without production secrets, as Build for testing without production secrets #26381 made it, and with the Swift package cache.
  • The test is sturdier in other languages and on iPad: it relaunches after the editor screenshot instead of closing the editor, and starts the WordPress iPad screenshots from the site menu, since there's no Home there.
  • Failed jobs upload their .xcresult, which includes a screen recording.
  • The test taps the draft until the editor opens. The drafts list can redraw the draft's row as its thumbnail loads, and a tap at that moment is dropped.
  • The test opens the site menu's rows by identifier, and taps each until its screen opens. The site menu is a SwiftUI list since Render blog details with a native SwiftUI list #26026: a row's identifier is on a button, or on an iPad on a static text. Just after a launch, an iPad's site menu can ignore a tap while the app restores the screen it last showed.

Screenshots

From CI build #36563. Each image is one language and device side by side, as the compose step writes them.

English

English, iPhone: title screen, Editor, Staff, Media, Pages and Reader

English, iPad: title screen, Editor, Staff, Media, Pages and Reader

Japanese and Arabic

Japanese, iPhone, with translated content

Arabic, iPhone, right to left, with translated content

Test plan

  • Full WordPress screenshot run on CI on this branch: #36563. All 34 screenshot jobs and the compose step passed. Checked the English and Japanese overviews: the Media screenshot shows the release Media library with the fixtures' photos.
  • Full Jetpack screenshot run on CI with this branch's release feature flags: #36552. All 34 jobs passed, and the German overview shows no in-development features. The commits after it only change the WordPress Media screenshot.
  • The draft opens reliably. Before the test retried the tap on it, the editor didn't open in 3 of 108 jobs. In four full runs before the Reader was added (#36363, #36364, #36365, #36366), 216 jobs, it never failed.

Not in this PR

@jkmassel jkmassel added this to the 27.5 milestone Nov 6, 2026
@jkmassel jkmassel added Testing Unit and UI Tests and Tooling Tooling Build, Release, and Validation Tools labels Nov 6, 2026
@jkmassel jkmassel self-assigned this Nov 6, 2026
@dangermattic

dangermattic commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator
1 Warning
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

@wpmobilebot wpmobilebot modified the milestones: 27.5, 27.6 Nov 20, 2026
@wpmobilebot

Copy link
Copy Markdown
Contributor

Version 27.5 has now entered code-freeze, so the milestone of this PR has been updated to 27.6.

@jkmassel
jkmassel force-pushed the jkmassel/wordpress-app-store-screenshots branch from e76a84b to 7368cb4 Compare November 20, 2026 23:13
@jkmassel
jkmassel force-pushed the jkmassel/wordpress-app-store-screenshots branch from 7368cb4 to 4562c88 Compare November 20, 2026 23:16
@jkmassel
jkmassel force-pushed the jkmassel/wordpress-app-store-screenshots branch from 4562c88 to 0e5e651 Compare November 20, 2026 23:50
@jkmassel
jkmassel force-pushed the jkmassel/wordpress-app-store-screenshots branch from 0e5e651 to f2827fa Compare November 21, 2026 00:57
@jkmassel
jkmassel force-pushed the jkmassel/wordpress-app-store-screenshots branch 3 times, most recently from ed7c7d1 to 7fc2854 Compare November 21, 2026 02:17
@jkmassel
jkmassel force-pushed the jkmassel/wordpress-app-store-screenshots branch from 7fc2854 to 3dd370f Compare November 21, 2026 02:58
@jkmassel
jkmassel force-pushed the jkmassel/wordpress-app-store-screenshots branch from fdaeac3 to 973fbdf Compare November 21, 2026 04:17
@jkmassel
jkmassel marked this pull request as ready for review November 21, 2026 04:50
@jkmassel
jkmassel requested a review from a team as a code owner November 21, 2026 04:50
@jkmassel
jkmassel requested a review from crazytonyli November 21, 2026 04:50
@jkmassel
jkmassel removed this pull request from stack #26461 December 1, 2026 16:02
@jkmassel
jkmassel added this pull request to stack #26470 December 1, 2026 16:02
@wpmobilebot

wpmobilebot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Build Failure Analysis

This build has failures. Claude has analyzed them - check the build annotations for details.

@jkmassel
jkmassel force-pushed the jkmassel/wordpress-app-store-screenshots branch 3 times, most recently from ee8d785 to be6ec43 Compare December 1, 2026 20:14
The site menu is a SwiftUI list since #26026. Its row identifiers are
on buttons inside the cells, or on an iPad, where the menu is a
sidebar, on static texts. The Staff row has no identifier of its own,
so it's found by its title.

Each row is tapped until its screen appears: just after a launch, an
iPad's site menu can ignore a tap while the app restores the screen it
last showed.
Since #26398 the WordPress app shows the Reader and Notifications, so
the comment no longer explains why its screenshots show what they do.
On CI, the first tap on the draft sometimes didn't open the editor:
3 of 108 jobs in the last two full runs, each passing on Buildkite's
retry. The recordings show the drafts list unchanged after the tap,
while the draft's row redraws as its thumbnail loads.
The WordPress app now shows the Reader to WordPress.com accounts
(#26398), so its screenshots show it too, as the fifth: the same
Reader post the Jetpack screenshots open.

The WordPress screenshots' fixtures turn on the wordpress_ios_reader
flag, which the UI tests' fixtures leave off; without it the app shows
its Jetpack poster in the Reader tab. The headline reuses the Jetpack
Reader headline and its translations.
#26381 stopped build-for-testing.sh from installing the a8c secrets.
The screenshot build is set up the same way, so it no longer installs
them either.
The screenshots are taken with a Debug build, which turns on features
still in development, such as Media Library v2. While the app takes
the screenshots, its feature flags now take the values a release
build has.
The Jetpack screenshots no longer take the iPhone Duo's. This removes
what the WordPress screenshots added for it: the retries that waited
for the inner display, the relaunch between screens, and the lane's
SDK checks, which only the Duo needed.
With release feature flags, the screenshots show the Media library
the App Store app has, which is a collection view, not Media Library
v2's SwiftUI grid of images. The test waited for the grid and failed
on every iPhone.
With release feature flags, the Media screenshot shows the Media
library the App Store app has, which reads the site's media from the
v1.1 REST API. That fixture lists 73 images on a host the fixtures
don't serve, so every item showed a placeholder. The WordPress
screenshots' own fixtures now list the ten photos Media Library v2's
fixtures use, whose images the fixtures serve.
@jkmassel
jkmassel force-pushed the jkmassel/wordpress-app-store-screenshots branch from be6ec43 to a68f738 Compare December 1, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Testing Unit and UI Tests and Tooling Tooling Build, Release, and Validation Tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants