-
Notifications
You must be signed in to change notification settings - Fork 666
Fix e2e ios tests #6613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix e2e ios tests #6613
Conversation
0766451
to
8ee74e3
Compare
|
||
echo "Waiting 5 seconds for Anvil to start..." | ||
|
||
# Start Anvil in the background (show logs in terminal + save to file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved starting anvil when running all tests here, instead of in the ci script to make it easier to run locally.
95877c9
to
cca779c
Compare
5bf1e94
to
f7723e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything lgtm!
@@ -40,6 +40,26 @@ It is recommended that those commands are extracted to a flow for reuse. See `e2 | |||
|
|||
### Troubleshooting | |||
|
|||
#### Cannot find view with a testID on iOS | |||
|
|||
On iOS `testID` is implemented using `accessibilityIdentifier`. If a parent view is marked as `accessible=true` then it is considered a leaf node and its children `accessibilityIdentifier` won't be visible. Try moving the `testID` up to the accessible view or making the view not accessible if it makes sense in that case. Note that `ButtonPressAnimation` defaults to `accessible=true`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is really nice to document, ty.
Fixes APP-####
What changed (plus any additional context for devs)
This fixes the exit code of the iOS e2e script so it fails the github action properly. This also makes some adjustments to the tests so they pass on iOS.
Screen recordings / screenshots
What to test
Tests pass