android_tests/lib/android/specs/common/patch.rb in appium_lib-6.0.0 vs android_tests/lib/android/specs/common/patch.rb in appium_lib-7.0.0
- old
+ new
@@ -1,13 +1,15 @@
-=begin
- Skip:
- status # status patches are already tested in driver.rb
- raw_execute # debug output for Pry
-=end
+# rubocop:disable Lint/RescueException
+# rubocop:disable Metrics/LineLength
+
+# Skip:
+# status # status patches are already tested in driver.rb
+# raw_execute # debug output for Pry
+
describe 'common/patch' do
-# Attributes are busted in Android.
-# Blocked on https://github.com/appium/appium/issues/628
+ # Attributes are busted in Android.
+ # Blocked on https://github.com/appium/appium/issues/628
describe 'Selenium::WebDriver::Element methods' do
# Android supports exactly two string Attributes
# .name and .text
# https://github.com/appium/appium/blob/ea3450e7f78d1794bab42fa396a387e7b86fd3b3/android/bootstrap/src/io/appium/android/bootstrap/handler/GetAttribute.java#L43
# t 'value' do; end # Doesn't work on Android
@@ -33,11 +35,11 @@
t 'id error_message' do
value = ''
begin
set_wait 0
find_element(:id, 'ok')
- rescue Exception => e;
+ rescue Exception => e
value = e.message
ensure
set_wait 30
end
value = value.split("\n").first.strip
@@ -64,6 +66,6 @@
value = id('android:id/text1').text
value.must_equal "Access'ibility"
end
end
end
-end
\ No newline at end of file
+end