Created
August 13, 2012 15:54
-
-
Save woodybrood/3342117 to your computer and use it in GitHub Desktop.
Frank Style Calculator Steps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Then /^I should see a Result of (\d+)$/ do |result| | |
list_of_text_contents = frankly_map( "view:'UITextField' marked:'Result'", "text" ) | |
list_of_text_contents.should have(1).item # make sure we only matched one view with our selector | |
list_of_text_contents.first.should == result | |
end | |
When /^I enter (\d+)$/ do |value| | |
value.each_char do |number| | |
touch "view:'UIButton' marked:'#{number}button" | |
end | |
touch "view:'UIButton' marked:'Enter'" | |
end | |
When /^I tap \*$/ do | |
touch "view:'UIButton' marked:'*button'" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment