android_tests/lib/android/specs/common/device.rb in appium_lib-9.3.0 vs android_tests/lib/android/specs/common/device.rb in appium_lib-9.3.1

- old
+ new

@@ -9,20 +9,29 @@ # TODO: write test # remove 'com.example.android.apis' # install ENV['APP_PATH'] end + t 'get_performance_data_types' do + expected = %w(cpuinfo batteryinfo networkinfo memoryinfo) + get_performance_data_types.must_equal expected + + get_performance_data(package_name: 'io.appium.android.apis', + data_type: 'cpuinfo').must_equal [%w(user kernel), %w(0 0)] + end + t 'device_time' do Date.parse(device_time) end t 'background_app' do wait { background_app 5 } end t 'start_activity' do wait { current_activity.must_equal '.ApiDemos' } - start_activity app_package: 'io.appium.android.apis', app_activity: '.accessibility.AccessibilityNodeProviderActivity' + start_activity app_package: 'io.appium.android.apis', + app_activity: '.accessibility.AccessibilityNodeProviderActivity' wait { current_activity.include?('Node').must_equal true } start_activity app_package: 'com.android.settings', app_activity: '.Settings', app_wait_package: 'com.android.settings', app_wait_activity: '.Settings' wait { current_activity.include?('Settings').must_equal true } end