lib/ruby_app/scripts/elements/inputs.rb in RubyApp-0.5.44 vs lib/ruby_app/scripts/elements/inputs.rb in RubyApp-0.5.45
- old
+ new
@@ -1,21 +1,21 @@
load_script! 'common/features'
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_link('Inputs')
- event.tap_link('Inputs')
+ event.click_link('Inputs')
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_input('Simple Input')
event.update_input('Simple Input', 'value')
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_text('You input value.')
event.assert_exists_link('OK')
- event.tap_link('OK')
+ event.click_link('OK')
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_input('Simple Input')
event.assert_exists_input('Duration Input')
@@ -23,11 +23,11 @@
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_text('You input 7380.')
event.assert_exists_link('OK')
- event.tap_link('OK')
+ event.click_link('OK')
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_input('Duration Input', '2 hrs 3 mins')
event.assert_exists_input('Email Input')
@@ -35,11 +35,11 @@
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_text('You input value.')
event.assert_exists_link('OK')
- event.tap_link('OK')
+ event.click_link('OK')
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_input('Email Input')
event.assert_exists_input('Multiline Input')
@@ -47,11 +47,11 @@
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_text('You input value.')
event.assert_exists_link('OK')
- event.tap_link('OK')
+ event.click_link('OK')
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_input('Multiline Input')
event.assert_exists_input('Toggle Input', 'false')
@@ -59,30 +59,30 @@
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_text('You input true.')
event.assert_exists_link('OK')
- event.tap_link('OK')
+ event.click_link('OK')
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_input('Toggle Input', 'true')
event.update_input('Toggle Input', 'false')
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_text('You input false.')
event.assert_exists_link('OK')
- event.tap_link('OK')
+ event.click_link('OK')
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.assert_exists_input('Toggle Input')
- event.tap_link('Back')
+ event.click_link('Back')
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
- event.tap_link('Back')
+ event.click_link('Back')
end
add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
event.refresh_browser
end