Add support for dark mode screenshots - #15010
Conversation
|
You can trigger an installable build for these changes by visiting CircleCI here. |
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
Let's hold off on reviewing/merging this one, so we can get the initial changes to the screenshot test done first (to support the new screenshot designs). I'll update this PR once those changes are done and we can take a look at it then. |
|
👋 We're freezing |
|
@jkmassel maybe I misunderstand, but I am pretty sure this does need to be in 15.9. |
|
No problem at all – just means that it needs to be merged into |
89bc508 to
0aba1cf
Compare
|
@startuptester this is actually ready for review now! I left it targeting |
|
While generating a full set of screenshots I discovered that they're not all being generated — nothing is generated for Since this isn't specific to this PR, I opened #15074 to follow up on those failures. |
|
You ran the script in Spanish while testing #15055, right? Did you clear out those Spanish screenshots before testing this PR? Since this PR includes a change that doesn't automatically clear previous screenshots, those are likely copies from that previous run (which had an older version of Fastlane without the orientation fix). |
Ah, genius! But I also ran this before with no specified language and while those screenshots are still stored, they aren't in the .html..? Just to make sure, I'll clear everything out and run again now. |

Adds dark mode screenshots and updates the Fastlane
SnapshotHelper.Changes
The UI tests now support setting the simulator to dark mode, and the Fastlane
screenshotslane runs through the screenshots twice — once in dark mode and once in light mode. The screenshot test also uses a new helper method to include light/dark mode in the filename.(These changes match the approach used in the WooCommerce iOS screenshots to support light/dark mode, h/t @jkmassel for that implementation.)
The
SnapshotHelperupdate resolves an issue with the iPad landscape screenshots (part of the 2.159.0 Fastlane release). Previously those screenshots would appear incorrectly rotated even when the simulator was in landscape orientation.To test
cd Scripts/fastlanebundle exec fastlane screenshots(orbundle exec fastlane screenshots language:"en-US"to run it for a single language — the full run can take a long time and there aren't language-specific changes.)These generated screenshots will also come in handy for reviewing an upcoming PR (changing the app store screenshot composition).
To review
This PR only requires a single reviewer.
PR submission checklist
RELEASE-NOTES.txtif necessary.