ios_tests/lib/ios/specs/driver.rb in appium_lib-4.1.0 vs ios_tests/lib/ios/specs/driver.rb in appium_lib-5.0.0
- old
+ new
@@ -34,10 +34,11 @@
t 'verify all attributes' do
2.times { set_wait 30 } # must set twice to validate last_waits
actual = driver_attributes
actual[:caps][:app] = File.basename actual[:caps][:app]
expected = { caps: { platformName: 'ios',
+ platformVersion: '8.1',
deviceName: 'iPhone Simulator',
app: 'UICatalog.app' },
custom_url: false,
export_session: false,
default_wait: 30,
@@ -193,16 +194,26 @@
execute_script %q(au.mainApp().getFirstWithPredicate("name contains[c] 'button'");)
end
# any elements
t 'find_elements' do
- find_elements(:class, 'UIAStaticText').length.must_equal 13
+ find_elements(:class, 'UIATableCell').length.must_equal 12
end
# any element
t 'find_element' do
find_element(:class, 'UIAStaticText').class.must_equal Selenium::WebDriver::Element
end
+ # settings
+ t 'get settings' do
+ get_settings.wont_be_nil
+ end
+
+ t 'update settings' do
+ update_settings cyberdelia: 'open'
+ get_settings['cyberdelia'].must_equal 'open'
+ end
+
# Skip: x # x is only used in Pry
end
-end
\ No newline at end of file
+end