We use calabash-android for our functional tests here and we are experiencing strange behaviors. We have some simple scenario like:
When I skip the tutorial
Then I must land on my 'fancy' screen
This scenario succeed most of the time, but sometimes (about 10-15% of the time) 2 failures are possible. The first one is because the element looked up by When I skip the tutorial
is not found by calabash-android (it is simply a button with the id button_ok
). When inspecting the screenshot taken we see the element, which is quite weird. I was suspecting the animation of the element, so I've had a post_timeout
, like this:
tap_when_element_exists("* id:'button_ok'", :post_timeout => 2)
But nothing changed.
The second possible failure is when the step When I skip the tutorial
is successfully passed but the next step where we check that we are on the correct page fails, because the page has not changed... On the screenshot taken by calabash we are indeed on the page of the tutorial, not on the next one as expected. How is it possible since the step where we change the page is successful?
Does anybody already faced this kind of random failures?
(Sorry for bad english, not my mother tongue :( )