Change the orientation
It is crucial to test how your app performs if the orientation changes.
Add this to features/step_definitions/calabash_steps.rb.
Then /^I set the screen to portrait$/ do
Then /^I set the screen to landscape$/ do
Now you can change the orientation in your test.
Then I set the screen to landscape
Hide the keyboard
Many times the keyboard is on the way and your tests will fail, because the keyboard hides the button you are trying to click. Here is the custom step to hide the keyboard.
Then /^I hide the keyboard$/ do
Now you can hide the keyboard in your test.
Then I hide the keyboard
Go through the basics of Calabash, how to create proper Calabash tests and how to make the most of them.Download