@@ -92,11 +92,11 @@ def before_first
92
92
end
93
93
94
94
t 'xpaths' do
95
- xpaths ( '//UIAStaticText' ) . length . must_equal 13
95
+ xpaths ( '//UIAStaticText' ) . length . must_equal 25
96
96
end
97
97
98
98
def uibutton_text
99
- 'Buttons, Various uses of UIButton '
99
+ 'Buttons'
100
100
end
101
101
102
102
t 'ele_index' do
@@ -135,7 +135,7 @@ def uibutton_text
135
135
136
136
t 'find_eles_by_attr_include' do
137
137
ele_count = find_eles_by_attr_include ( 'UIAStaticText' , :name , 'e' ) . length
138
- ele_count . must_equal 12
138
+ ele_count . must_equal 19
139
139
end
140
140
141
141
t 'first_ele' do
@@ -144,8 +144,8 @@ def uibutton_text
144
144
145
145
t 'last_ele' do
146
146
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'
149
149
end
150
150
151
151
# t 'source' do # tested by get_source
@@ -166,15 +166,15 @@ def uibutton_text
166
166
end
167
167
168
168
t 'tag' do
169
- tag ( 'UIATableCell' ) . name . must_equal 'Buttons, Various uses of UIButton'
169
+ tag ( 'UIATableCell' ) . name . must_equal uibutton_text
170
170
end
171
171
172
172
t 'tags' do
173
173
tags ( 'UIATableCell' ) . length . must_equal 12
174
174
end
175
175
176
176
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
178
178
end
179
179
180
180
t 'get_page_class' do
@@ -200,4 +200,4 @@ def uibutton_text
200
200
xpaths_visible_exact
201
201
raise_no_element_error
202
202
=end
203
- end
203
+ end
0 commit comments