ios_tests/lib/ios/specs/device/device.rb in appium_lib-8.2.1 vs ios_tests/lib/ios/specs/device/device.rb in appium_lib-9.0.0
- old
+ new
@@ -16,12 +16,14 @@
t 'device_time' do
Date.parse(device_time)
end
t 'lock' do
+ fail NotImplementedError, "XCUITest(Appium1.6.2) doesn't support yet" if UI::Inventory.xcuitest?
+
lock 5
- tag('UIAButton').name.must_equal 'SlideToUnlock'
+ tag(UI::Inventory.button).name.must_equal 'SlideToUnlock'
# It appears that lockForDuration doesn't.
close_app
launch_app
end
@@ -30,22 +32,26 @@
background_app 5
screen.must_equal catalog
end
t 'app_installed' do
+ fail NotImplementedError, "XCUITest(Appium1.6.2) doesn't support yet" if UI::Inventory.xcuitest?
+
installed = app_installed? 'Derrp'
installed.must_equal false
end
t 'shake' do
+ fail NotImplementedError, "XCUITest(Appium1.6.2) doesn't support yet" if UI::Inventory.xcuitest?
+
shake
end
t 'close and launch' do
close_app
launch_app
- tag('UIANavigationBar').name.must_equal 'UICatalog'
+ tag(UI::Inventory.navbar).name.must_equal 'UICatalog'
end
t 'reset' do
reset
end
@@ -73,26 +79,26 @@
wait { id 'ArrowButton' } # successfully transitioned to buttons page
go_back
end
t 'swipe' do
- swipe start_x: 75, start_y: 500, delta_x: 75, delta_y: 0, duration: 800
+ swipe start_x: 75, start_y: 500, delta_x: 0, delta_y: -500, duration: 800
end
- t 'pinch & zoom' do
- wait { id('ImagesExplain').click }
- # both of these appear to do nothing on iOS 8
- zoom 200
- pinch 75
- go_back
- end
-
t 'pull_file' do
+ # Selenium::WebDriver::Error::UnknownError: An unknown server-side error occurred while processing the command.
+ # Original error: Cannot read property 'getDir' of undefined
+ fail NotImplementedError, "XCUITest(Appium1.6.2) doesn't support yet" if UI::Inventory.xcuitest?
+
read_file = pull_file 'Library/AddressBook/AddressBook.sqlitedb'
read_file.start_with?('SQLite format').must_equal true
end
t 'pull_folder' do
+ # Selenium::WebDriver::Error::UnknownError: An unknown server-side error occurred while processing the command.
+ # Original error: Cannot read property 'getDir' of undefined
+ fail NotImplementedError, "XCUITest(Appium1.6.2) doesn't support yet" if UI::Inventory.xcuitest?
+
data = pull_folder 'Library/AddressBook'
data.length.must_be :>, 1
end
end