ios_tests/lib/ios/specs/driver.rb in appium_lib-3.0.3 vs ios_tests/lib/ios/specs/driver.rb in appium_lib-4.0.0

- old
+ new

@@ -19,13 +19,12 @@ t 'load_appium_txt' do # skip this test if we're using Sauce # the storage API doesn't have an on disk file skip if is_sauce - # __FILE__ is '(eval)' so use env var set by the Rakefile - path = ENV['APPIUM_TXT'] - opts = Appium.load_appium_txt file: path, verbose: true + appium_txt = File.expand_path(File.join(Dir.pwd, 'lib')) + opts = Appium.load_appium_txt file: appium_txt, verbose: true actual = '' actual = File.basename opts[:caps][:app] if opts && opts[:caps] expected = 'UICatalog.app' assert_equal expected, actual @@ -35,9 +34,10 @@ t 'verify all attributes' do 2.times { set_wait 30 } # must set twice to validate last_waits actual = driver_attributes actual[:caps][:app] = File.basename actual[:caps][:app] expected = { caps: { platformName: 'ios', + deviceName: 'iPhone Simulator', app: 'UICatalog.app' }, custom_url: false, export_session: false, default_wait: 30, last_waits: [30, 30], \ No newline at end of file