Skip to content

Commit 0651054

Browse files
committed
ios helper tests are green now
1 parent 1356454 commit 0651054

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ios_tests/lib/ios/specs/common/helper.rb

+8-8
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ def before_first
9292
end
9393

9494
t 'xpaths' do
95-
xpaths('//UIAStaticText').length.must_equal 13
95+
xpaths('//UIAStaticText').length.must_equal 25
9696
end
9797

9898
def uibutton_text
99-
'Buttons, Various uses of UIButton'
99+
'Buttons'
100100
end
101101

102102
t 'ele_index' do
@@ -135,7 +135,7 @@ def uibutton_text
135135

136136
t 'find_eles_by_attr_include' do
137137
ele_count = find_eles_by_attr_include('UIAStaticText', :name, 'e').length
138-
ele_count.must_equal 12
138+
ele_count.must_equal 19
139139
end
140140

141141
t 'first_ele' do
@@ -144,8 +144,8 @@ def uibutton_text
144144

145145
t 'last_ele' do
146146
el = last_ele('UIAStaticText')
147-
el.text.must_equal 'Transitions, Shows UIViewAnimationTransitions'
148-
el.name.must_equal 'Transitions, Shows UIViewAnimationTransitions'
147+
el.text.must_equal 'Transitions'
148+
el.name.must_equal 'Transitions'
149149
end
150150

151151
# t 'source' do # tested by get_source
@@ -166,15 +166,15 @@ def uibutton_text
166166
end
167167

168168
t 'tag' do
169-
tag('UIATableCell').name.must_equal 'Buttons, Various uses of UIButton'
169+
tag('UIATableCell').name.must_equal uibutton_text
170170
end
171171

172172
t 'tags' do
173173
tags('UIATableCell').length.must_equal 12
174174
end
175175

176176
t 'find_eles_by_attr_include' do
177-
find_eles_by_attr_include('UIATableCell', 'name', 'Use').length.must_equal 7
177+
find_eles_by_attr_include('UIAStaticText', 'name', 'Use').length.must_equal 7
178178
end
179179

180180
t 'get_page_class' do
@@ -200,4 +200,4 @@ def uibutton_text
200200
xpaths_visible_exact
201201
raise_no_element_error
202202
=end
203-
end
203+
end

0 commit comments

Comments
 (0)