Skip to content

Clean up UI tests infrastructure#25673

Open
crazytonyli wants to merge 4 commits into
trunkfrom
task/clean-up-ui-tests
Open

Clean up UI tests infrastructure#25673
crazytonyli wants to merge 4 commits into
trunkfrom
task/clean-up-ui-tests

Conversation

@crazytonyli

Copy link
Copy Markdown
Contributor

Note

I recommend reviewing commit by commit.

The UI tests were removed in #25399, but there are some surrounding areas (mocks, screen objects, etc) left in the codebase.

The screenshot generation pipeline uses UI tests. This PR removes the screenshot generation automation. We can figure out a new way to do it next time we need new screenshots. I imagine it'd be easier to use LLM for that than UI tests + mocks.

UI tests were removed in #25399. This drops the launch-argument flags that nothing passes anymore (logging, prompts, migration, autofill, animations, mock data, screenshot generation) along with their app-side conditionals, reducing UITestConfigurator to the simulator sign-in reset path. The sign-in launch arguments are unaffected.
The WordPress and Jetpack screenshot-generation targets are XCUITest targets that relied on the now-removed UI-test infrastructure. This deletes the targets, their schemes and sources, and the fastlane raw-screenshot lanes, while keeping the promo-screenshot composition and GlotPress download lanes.
With the screenshot-generation targets gone, nothing consumes the UITestsFoundation module or its XcodeTarget wrappers. This removes them and the ScreenObject package dependency they pulled in.
The WireMock mock server, its rake task, the Buildkite UI-test runner, and the Jetpack UI-test branch of the test_without_building lane only supported the removed UI tests. This deletes them along with the obsolete UI-tests documentation.
@crazytonyli crazytonyli added this to the 27.1 milestone Jun 19, 2026
@crazytonyli crazytonyli requested a review from jkmassel June 19, 2026 01:14
@crazytonyli crazytonyli requested review from a team as code owners June 19, 2026 01:14
@dangermattic

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

@crazytonyli crazytonyli changed the title Clean UI tests infrastructure Clean up UI tests infrastructure Jun 19, 2026
@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number32719
VersionPR #25673
Bundle IDorg.wordpress.alpha
Commitc0fcbc5
Installation URL5d2qe8hi5psig
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number32719
VersionPR #25673
Bundle IDcom.jetpack.alpha
Commitc0fcbc5
Installation URL3fh3e9eiflrsg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants