ios_tests/lib/ios/specs/ios/element/alert.rb in appium_lib-6.0.0 vs ios_tests/lib/ios/specs/ios/element/alert.rb in appium_lib-7.0.0

- old
+ new

@@ -1,10 +1,14 @@ # rake ios[ios/element/alert] describe 'ios/element/alert' do def nav_once screen.must_equal catalog - wait_true { text('alerts').click; tag('UIANavigationBar').name == 'Alerts' } # wait for true + wait_true do + text('alerts').click + tag('UIANavigationBar').name == 'Alerts' # wait for true + end + tag('UIANavigationBar').name.must_equal 'Alerts' # redefine method as no-op after it's invoked once self.class.send :define_method, :nav_once, proc {} end @@ -38,6 +42,6 @@ end t 'after_last' do after_last end -end \ No newline at end of file +end