ios_tests/lib/ios/specs/ios/element/button.rb in appium_lib-4.1.0 vs ios_tests/lib/ios/specs/ios/element/button.rb in appium_lib-5.0.0
- old
+ new
@@ -19,19 +19,20 @@
'Gray'
end
t 'button' do
# by index
- button(2).name.must_equal gray
+ button(3).name.must_equal gray
# by name contains
button('ray').name.must_equal gray
end
t 'buttons' do
- exp = ['Back', 'Gray', 'Right pointing arrow']
- buttons('a').map { |e| e.name }.must_equal exp
- buttons.length.must_equal 4
+ exp = ['Back', 'Back', 'Gray', 'Right pointing arrow']
+ target_buttons = buttons('a')
+ target_buttons.map { |e| e.name }.must_equal exp
+ target_buttons.length.must_equal exp.length
end
t 'first_button' do
first_button.name.must_equal 'Back'
end
\ No newline at end of file