-
Notifications
You must be signed in to change notification settings - Fork 158
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
Create contacts_test.dart
in example app
#968
Conversation
Android test fails until #967 is merged. iOS test gets stuck randomly during the flow. No error was thrown. The strange thing is that it gets stuck "in between" methods. Very strange, and very hard to debug. Occurs both on my physical iPhone 14 and on various iPhone simulators. Execution just stops. iOS.contacts.mp4 |
await $.native.tap(Selector(contentDescription: 'Create contact')); | ||
await $.native.enterTextByIndex(firstName, index: 0); | ||
await $.native.enterTextByIndex(lastName, index: 1); | ||
await $.native.enterTextByIndex(company, index: 2); |
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 enterTextByIndex()
can vary from device to device. Not all Android device's index: 2
has the company
field. is there any better way we can ensure that index 2 has the company field across all the android devices?
Btw, it will be great to have this example 👍
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.
Unfortunately, it's not possible to make this test work on all Contacts app
that exist.
To demonstrate complex native scenario.
This will serve as a good smoke test for Patrol's native automation feature.
Android
Android.contacts.mp4