ios_tests/lib/ios/specs/ios/element/text.rb in appium_lib-4.1.0 vs ios_tests/lib/ios/specs/ios/element/text.rb in appium_lib-5.0.0
- old
+ new
@@ -2,10 +2,14 @@
describe 'ios/element/text' do
def ui_catalog
'UICatalog'
end
+ def uiview_transitions
+ 'Transitions'
+ end
+
def before_first
screen.must_equal catalog
end
t 'before_first' do
@@ -15,23 +19,23 @@
t 'first_text' do
first_text.text.must_equal ui_catalog
end
t 'last_text' do
- last_text.text.must_equal ''
- last_text.name.must_equal 'Transitions, Shows UIViewAnimationTransitions'
+ last_text.text.must_equal uiview_transitions
+ last_text.name.must_equal uiview_transitions
end
t 'text' do
- text('mat').text.must_equal ''
+ text('siti').text.must_equal uiview_transitions
text(1).text.must_equal ui_catalog
- text('mat').name.must_equal 'Transitions, Shows UIViewAnimationTransitions'
+ text('siti').name.must_equal uiview_transitions
end
t 'texts' do
- exp = ['Controls, Various uses of UIControl', 'Segments, Various uses of UISegmentedControl']
- texts.length.must_equal 13
+ exp = ['Controls', 'Various uses of UIControl', 'Various uses of UISegmentedControl']
+ texts.length.must_equal 24
texts('trol').map { |e| e.name }.must_equal exp
texts('uses').length.must_equal 7
end
t 'text_exact' do
@@ -49,6 +53,6 @@
end
t 'texts_exact' do
texts_exact('UICatalog').length.must_equal 1
end
-end
\ No newline at end of file
+end