File tree 6 files changed +12
-12
lines changed
android_tests/lib/android/specs
6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ def must_raise_no_element &block
11
11
end
12
12
13
13
t 'texts' do
14
- wait { texts ( 'i' ) . length . must_equal 6 }
15
- wait { texts . length . must_equal 12 }
14
+ wait { texts ( 'i' ) . length . must_equal 7 }
15
+ wait { texts . length . must_equal 13 }
16
16
end
17
17
18
18
t 'first_text' do
Original file line number Diff line number Diff line change 1
1
# rake android[android/helper]
2
2
describe 'android/helper' do
3
3
t 'tags' do
4
- wait { tags ( 'android.widget.TextView' ) . length . must_equal 12 }
4
+ wait { tags ( 'android.widget.TextView' ) . length . must_equal 13 }
5
5
end
6
6
7
7
# t 'get_selendroid_inspect' # only works on selendroid
@@ -66,7 +66,7 @@ def id_value
66
66
end
67
67
68
68
t 'ids' do
69
- wait { ids ( 'android:id/text1' ) . length . must_equal 11 }
69
+ wait { ids ( 'android:id/text1' ) . length . must_equal 12 }
70
70
end
71
71
72
72
t '_parse_current_app_line' do
Original file line number Diff line number Diff line change 35
35
36
36
t 'close & launch' do
37
37
close_app
38
- launch
38
+ launch_app
39
39
end
40
40
41
41
t 'current_activity' do
Original file line number Diff line number Diff line change 60
60
61
61
t 'back' do
62
62
# start page
63
- wait { texts . length . must_equal 12 }
63
+ wait { texts . length . must_equal 13 }
64
64
# nav to new page.
65
65
# ele 0 is the title and can't be clicked.
66
66
wait { text ( 2 ) . click }
80
80
end
81
81
82
82
t 'xpaths' do
83
- wait { xpaths ( '//android.widget.TextView' ) . length . must_equal 12 }
83
+ wait { xpaths ( '//android.widget.TextView' ) . length . must_equal 13 }
84
84
end
85
85
86
86
t 'ele_index' do
87
- wait { ele_index ( 'android.widget.TextView' , 2 ) . name . must_equal 'Accessibility' }
87
+ wait { ele_index ( 'android.widget.TextView' , 3 ) . name . must_equal 'Accessibility' }
88
88
end
89
89
90
90
t 'tags' do
91
- wait { tags ( 'android.widget.TextView' ) . length . must_equal 12 }
91
+ wait { tags ( 'android.widget.TextView' ) . length . must_equal 13 }
92
92
end
93
93
94
94
t 'first_ele' do
Original file line number Diff line number Diff line change 55
55
t 'find many elements by resource id' do
56
56
wait do
57
57
value = find_elements ( :id , 'android:id/text1' ) . length
58
- value . must_equal 11
58
+ value . must_equal 12
59
59
end
60
60
end
61
61
62
62
t 'find single element by resource id' do
63
63
wait do
64
64
value = id ( 'android:id/text1' ) . text
65
- value . must_equal 'Accessibility'
65
+ value . must_equal "Access'ibility"
66
66
end
67
67
end
68
68
end
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ def validate_path path
169
169
# any elements
170
170
t 'find_elements' do
171
171
wait do
172
- find_elements ( :class_name , 'android.widget.TextView' ) . length . must_equal 12
172
+ find_elements ( :class_name , 'android.widget.TextView' ) . length . must_equal 13
173
173
end
174
174
end
175
175
You can’t perform that action at this time.
0 commit comments