[Technical Questions] UI Test work locally but fail on github #178
Answered
by
nriedman
Oliviaaaaa-Feng
asked this question in
Technical Questions
-
Beta Was this translation helpful? Give feedback.
Answered by
nriedman
Mar 13, 2025
Replies: 1 comment 3 replies
-
Hi @Oliviaaaaa-Feng! Have you looked at the build artifact? This will have a video of the UI test so you can see what went wrong. Sometimes during UI tests the simulator will, seemingly at random, shut down and restart. This is an issue with the simulator itself, and the best we can do there is re-run the action and hope it doesn't happen again. Otherwise, take a look at the build artifact and let me know if you have any questions there! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Re my comment above: looking at the build artifact, it looks like the simulator used an iPhone 16 Pro with iOS 18.3.1. Also, looking at the build artifact, the test is interrupted by a HealthKit permissions sheet. At some point, a component of the code is accessing HealthKit and needs permission. In order to get permission, a sheet appears like this:
To fix this, I would include code to either block the app from using HealthKit during this test (with launch arguments) or include code in the test setup to grant HealthKit access.