Skip to content

Commit 3cfe864

Browse files
Update tests for new api.apk
1 parent f1e353a commit 3cfe864

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

android_tests/lib/android/specs/android/element/text.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def must_raise_no_element &block
1111
end
1212

1313
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 }
1616
end
1717

1818
t 'first_text' do

android_tests/lib/android/specs/android/helper.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# rake android[android/helper]
22
describe 'android/helper' do
33
t 'tags' do
4-
wait { tags('android.widget.TextView').length.must_equal 12 }
4+
wait { tags('android.widget.TextView').length.must_equal 13 }
55
end
66

77
# t 'get_selendroid_inspect' # only works on selendroid
@@ -66,7 +66,7 @@ def id_value
6666
end
6767

6868
t 'ids' do
69-
wait { ids('android:id/text1').length.must_equal 11 }
69+
wait { ids('android:id/text1').length.must_equal 12 }
7070
end
7171

7272
t '_parse_current_app_line' do

android_tests/lib/android/specs/common/device.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
t 'close & launch' do
3737
close_app
38-
launch
38+
launch_app
3939
end
4040

4141
t 'current_activity' do

android_tests/lib/android/specs/common/helper.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
t 'back' do
6262
# start page
63-
wait { texts.length.must_equal 12 }
63+
wait { texts.length.must_equal 13 }
6464
# nav to new page.
6565
# ele 0 is the title and can't be clicked.
6666
wait { text(2).click }
@@ -80,15 +80,15 @@
8080
end
8181

8282
t 'xpaths' do
83-
wait { xpaths('//android.widget.TextView').length.must_equal 12 }
83+
wait { xpaths('//android.widget.TextView').length.must_equal 13 }
8484
end
8585

8686
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' }
8888
end
8989

9090
t 'tags' do
91-
wait { tags('android.widget.TextView').length.must_equal 12 }
91+
wait { tags('android.widget.TextView').length.must_equal 13 }
9292
end
9393

9494
t 'first_ele' do

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@
5555
t 'find many elements by resource id' do
5656
wait do
5757
value = find_elements(:id, 'android:id/text1').length
58-
value.must_equal 11
58+
value.must_equal 12
5959
end
6060
end
6161

6262
t 'find single element by resource id' do
6363
wait do
6464
value = id('android:id/text1').text
65-
value.must_equal 'Accessibility'
65+
value.must_equal "Access'ibility"
6666
end
6767
end
6868
end

android_tests/lib/android/specs/driver.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def validate_path path
169169
# any elements
170170
t 'find_elements' do
171171
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
173173
end
174174
end
175175

0 commit comments

Comments
 (0)