ios_tests/lib/ios/specs/device/device.rb in appium_lib-6.0.0 vs ios_tests/lib/ios/specs/device/device.rb in appium_lib-7.0.0
- old
+ new
@@ -4,11 +4,11 @@
end
# go back to the main page
def go_back
back
- wait { ! exists { id 'ArrowButton' } } # successfully transitioned back
+ wait { !exists { id 'ArrowButton' } } # successfully transitioned back
end
t 'before_first' do
before_first
end
@@ -25,12 +25,12 @@
t 'background_app' do
background_app 5
screen.must_equal catalog
end
- t 'is_installed' do
- installed = is_installed? "Derrp"
+ t 'app_installed' do
+ installed = app_installed? 'Derrp'
installed.must_equal false
end
t 'shake' do
shake
@@ -45,11 +45,11 @@
t 'reset' do
reset
end
t 'available_contexts' do
- available_contexts.must_equal ["NATIVE_APP"]
+ available_contexts.must_equal ['NATIVE_APP']
end
t 'current_context' do
current_context.must_equal 'NATIVE_APP'
end
@@ -58,12 +58,12 @@
switch_to_default_context
current_context.must_equal 'NATIVE_APP'
end
t 'app_strings' do
- app_strings.must_include "SearchBarExplain"
- app_strings('en').must_include "SearchBarExplain"
+ app_strings.must_include 'SearchBarExplain'
+ app_strings('en').must_include 'SearchBarExplain'
end
t 'action_chain' do
Appium::TouchAction.new.press(element: id('ButtonsExplain')).perform
wait { id 'ArrowButton' } # successfully transitioned to buttons page
@@ -89,6 +89,6 @@
t 'pull_folder' do
data = pull_folder 'Library/AddressBook'
data.length.must_be :>, 1
end
-end
\ No newline at end of file
+end