Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit addb1ae

Browse files
committedJul 28, 2015
test(guide/expression): we must tell protractor to wait for the alert appear
This is a better solution than f91eb0e
1 parent f13852c commit addb1ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/content/guide/expression.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ provide mockable access to globals.
142142
element(by.css('[ng-click="greet()"]')).click();
143143

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

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

0 commit comments

Comments
 (0)