diff --git a/spec/functional/func_web_screen_spec.rb b/spec/functional/func_web_screen_spec.rb index 5720ab5..c24d970 100644 --- a/spec/functional/func_web_screen_spec.rb +++ b/spec/functional/func_web_screen_spec.rb @@ -18,14 +18,14 @@ describe "ProMotion::TestWebScreen functionality" do @webscreen.set_content(file_name) @loaded_file = File.read(File.join(NSBundle.mainBundle.resourcePath, file_name)) - wait 1.0 do + wait_for_change @webscreen, 'load_finished' do @webscreen.html.should == @loaded_file end end it "should allow you to navigate to a website" do @webscreen.set_content(NSURL.URLWithString("http://www.google.com")) - wait 1.0 do + wait_for_change @webscreen, 'load_finished' do @webscreen.html.include?('