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

Commit 093e76f

Browse files
juliemrIgorMinar
authored andcommitted
tests(docsAppE2E): fix race condition flake with switching to new frame
Closes #7569
1 parent 28c0497 commit 093e76f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/docsAppE2E.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ describe('docs.angularjs.org', function () {
2727
it('should show the functioning input directive example', function () {
2828
browser.get('index-debug.html#!/api/ng/directive/input');
2929

30-
//Wait for animation
31-
browser.sleep(500);
30+
// Ensure that the page is loaded before trying to switch frames.
31+
browser.waitForAngular();
3232

3333
browser.switchTo().frame('example-input-directive');
3434

@@ -66,4 +66,4 @@ describe('docs.angularjs.org', function () {
6666
expect(element(by.css('.minerr-errmsg')).getText()).toEqual("Argument 'Missing' is not a function, got undefined");
6767
});
6868
});
69-
});
69+
});

0 commit comments

Comments
 (0)