Centralize commands to config Sim in UI tests in aggregate target #21192
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.
By moving them in an aggregate target on which the UI tests targets depend, we DRY the setup as well as making the existence of this capability more visible (in the targets list instead of buried in the build phases).
Having the commands in a separate script file also makes it easier to inspect diffs and working on them, given that the Xcode build phase script editor window is far from a good text interface for coding.
Testing
If the UI tests pass in CI, we're good.
Regression Notes
PR submission checklist:
RELEASE-NOTES.txt
if necessary. N.A.UI changes testing checklist: Not a UI PR.