ios_tests/lib/ios/specs/ios/element/button.rb in appium_lib-9.2.0 vs ios_tests/lib/ios/specs/ios/element/button.rb in appium_lib-9.3.0
- old
+ new
@@ -27,11 +27,10 @@
button('ray').name.must_equal gray
end
t 'buttons' do
exp = ['Back', 'Back', 'Gray', 'Right pointing arrow']
- exp.concat ['Add contact'] if UI::Inventory.xcuitest?
target_buttons = buttons('a')
target_buttons.map(&:name).must_equal exp
target_buttons.length.must_equal exp.length
end
@@ -39,10 +38,10 @@
t 'first_button' do
first_button.name.must_equal 'Back'
end
t 'last_button' do
- expected = UI::Inventory.xcuitest? ? 'Add contact' : 'Rounded'
+ expected = 'Rounded'
last_button.name.must_equal expected
end
t 'button_exact' do
button_exact(gray).name.must_equal gray