forked from jmoody/briar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeyboard_steps.rb
40 lines (34 loc) · 904 Bytes
/
keyboard_steps.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Then /^I should see the keyboard$/ do
should_see_keyboard
end
Then /^I should not see the keyboard$/ do
should_not_see_keyboard
end
Then /^I use the keyboard to enter "([^"]*)"$/ do |text|
wait_for_animation
should_see_keyboard
@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
end
Then /^I touch the delete key$/ do
keyboard_enter_char 'Delete'
end
Then(/^I turn off spell checking and capitalization$/) do
_deprecated('0.1.1', 'not working', :pending)
#should_see_keyboard
#turn_autocapitalization_off
#turn_autocorrect_off
#turn_spell_correct_off
end
Then /^I am done text editing$/ do
idx = index_of_navbar_button 'done text editing'
if idx
touch_navbar_item 'done text editing'
else
touch_button 'done text editing'
end
2.times { step_pause }
end