Skip to content

Commit ec2f6ea

Browse files
Improve android/patch test
1 parent e3a7ad5 commit ec2f6ea

File tree

1 file changed

+5
-6
lines changed
  • android_tests/lib/android/specs/android

1 file changed

+5
-6
lines changed

android_tests/lib/android/specs/android/patch.rb

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
describe 'android/patch.rb' do
22
t 'type' do
33
# nav to textfield
4-
find('app').click
5-
find('search').click
6-
find('invoke').click
4+
wait { find('app').click }
5+
wait { find('search').click }
6+
wait { find('invoke').click }
77

8-
ele = first_textfield
9-
ele.type 'ok'
10-
ele.text.must_equal 'ok'
8+
wait { first_textfield.type 'ok' }
9+
wait { first_textfield.text.must_equal 'ok' }
1110

1211
# nav to start activity
1312
3.times { back }

0 commit comments

Comments
 (0)