ios_tests/lib/ios/specs/ios/element/text.rb in appium_lib-8.2.1 vs ios_tests/lib/ios/specs/ios/element/text.rb in appium_lib-9.0.0

- old
+ new

@@ -21,22 +21,24 @@ t 'first_text' do first_text.text.must_equal ui_catalog end t 'last_text' do - last_text.text.must_equal uiview_transitions - last_text.name.must_equal uiview_transitions + expected = UI::Inventory.xcuitest? ? 'Shows UIViewAnimationTransitions' : 'Transitions' + + last_text.text.must_equal expected + last_text.name.must_equal expected end t 'text' do text('siti').text.must_equal uiview_transitions text(1).text.must_equal ui_catalog text('siti').name.must_equal uiview_transitions end t 'texts' do exp = ['Controls', 'Various uses of UIControl', 'Various uses of UISegmentedControl'] - texts.length.must_equal 24 + texts.length.must_equal(UI::Inventory.xcuitest? ? 25 : 24) texts('trol').map(&:name).must_equal exp texts('uses').length.must_equal 7 end t 'text_exact' do