features/step_definitions/keyboard_steps.rb in briar-0.0.7 vs features/step_definitions/keyboard_steps.rb in briar-0.0.8

- old
+ new

@@ -8,11 +8,11 @@ end Then /^I use the keyboard to enter "([^"]*)"$/ do |text| wait_for_animation should_see_keyboard - @text_entered_by_keyboard = keyboard_enter_text text + @text_entered_by_keyboard = briar_keyboard_enter_text text end When /^I touch the done button the keyboard disappears$/ do done should_not_see_keyboard @@ -28,7 +28,12 @@ turn_autocorrect_off turn_spell_correct_off end Then /^I am done text editing$/ do - touch_navbar_item 'done text editing' + idx = index_of_navbar_button 'done text editing' + if idx + touch_navbar_item 'done text editing' + else + touch_button 'done text editing' + end end