android_tests/lib/android/specs/driver.rb in appium_lib-9.1.2 vs android_tests/lib/android/specs/driver.rb in appium_lib-9.1.3
- old
+ new
@@ -65,10 +65,15 @@
actual_selenium_caps = actual[:caps][:platformName]
actual_selenium_caps.must_equal 'Android'
actual[:caps][:app] = caps_app_for_teardown
end
+
+ t 'default timeout for http client' do
+ http_client.open_timeout.must_equal 999_999
+ http_client.read_timeout.must_equal 999_999
+ end
end
describe 'Appium::Driver' do
t '$driver.class' do
$driver.class.must_equal Appium::Driver
@@ -144,9 +149,24 @@
# Skip:
# ios_capabilities # save for iOS tests
# absolute_app_path # tested already by starting the driver for this test
# server_url # sauce labs only
+
+ t 'set_immediate_value' do
+ wait { find('app').click }
+ wait { find('activity').click }
+ wait { find('custom title').click }
+
+ message = 'hello'
+
+ wait do
+ elem = textfield(1)
+ elem.clear
+ set_immediate_value(elem, message)
+ elem.text.must_equal message
+ end
+ end
t 'restart' do
set_wait 1 # ensure wait is 1 before we restart.
restart
current_activity.must_equal '.ApiDemos'