-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Test animation progress #130
Comments
Currently, Detox synchronises so that it is blocked when animations are in progress. In the future, we plan to have API allowing the user to disable these synchronisations for a more hands on approach to testing. |
@LeoNatan, @rotemmiz Let assume you have a component like this (The component can be some notification on the page, etc. It is actually the example from Animated API but with Animated.sequence, where the animation should be in the loop):
Add this component to demo-react-native project
And tests will never pass Log:
Systemlog:
|
@LeoNatan PS. Great work. Detox is best test-tool I've used for React Native 👍 |
I have the similar question: PS. I added await device.enableSynchronization() in the end of the each test, or else the second test will fail immediately with cannot find UI element. |
Thanks again, sorry that I open so many issues lately.
I was wondering how I might test animation progress in general. In my case I have an open state which is rendered. As I read through the docs I saw that detox waits for the idle state, e.g. not in the middle of the animation.
How can I overcome this feature? I would like to write tests like "after 100ms it is about half way through", may I use the expect without an await for that or is it just not possible?
The text was updated successfully, but these errors were encountered: