Skip to content

Commit

Permalink
test(guide/expression): we must tell protractor to wait for the alert…
Browse files Browse the repository at this point in the history
… appear

This is a better solution than f91eb0e
  • Loading branch information
petebacondarwin committed Jul 28, 2015
1 parent f13852c commit addb1ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/guide/expression.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ provide mockable access to globals.
element(by.css('[ng-click="greet()"]')).click();

// We need to give the browser time to display the alert
browser.sleep(100);
browser.wait(protractor.ExpectedConditions.alertIsPresent(), 1000);

var alertDialog = browser.switchTo().alert();

Expand Down

0 comments on commit addb1ae

Please sign in to comment.