Skip to content

Commit

Permalink
Fix UIAlertView tests in controls example
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBuckley committed Jan 19, 2014
1 parent e6cc21c commit 908b675
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Then /^I touch the alert view's "(.*?)" button$/ do |button_mark|
touch "alertView button marked:'#{button_mark}'"
touch "view:'_UIModalItemTableViewCell' marked:'#{button_mark}'"
end
8 changes: 5 additions & 3 deletions example/Controls/features/ui_alert_view.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ Scenario Outline: Showing and dismissing the Alert View

When I touch "Show UIAlertView"
Then I should see "AlertView Title"
And I should see a button "Button1"
And I should see a button "Button 2"
And I should see "Button1"
And I should see "Button 2"

When I touch the alert view's "Ok" button
And I wait for nothing to be animating
And I wait for nothing to be animating
Then I should not see "AlertView Title"
And I should not see "Button1"
And I should not see "Button 2"

Examples:
| orientation |
Expand Down

0 comments on commit 908b675

Please sign in to comment.