Skip to content

Commit

Permalink
Always use wait with waitForAngular
Browse files Browse the repository at this point in the history
  • Loading branch information
bootstraponline committed May 12, 2015
1 parent 794df2f commit 93cef89
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions spec/protractor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@protractor = Protractor.new driver: @driver
end

# todo: use protractor's test app because angularjs.org often throws 500 errors
def angular_website
'https://angularjs.org/' # 'http://localhost:8081/' # use protractor's testapp
end
Expand All @@ -27,12 +28,6 @@ def angular_website
expect { @protractor.waitForAngular }.to raise_error(error_class, error_message)
end

it 'waitForAngular should succeed on angular pages without wait' do
@driver.get angular_website

@protractor.waitForAngular
end

it 'waitForAngular should succeed on angular pages with wait' do
@driver.get angular_website

Expand Down

0 comments on commit 93cef89

Please sign in to comment.