tests(docsAppE2E): fix race condition flake with switching to new frame

Closes #7569
This commit is contained in:
Julie
2014-05-23 10:41:32 -07:00
committed by Igor Minar
parent 28c0497524
commit 093e76fa15

View File

@@ -27,8 +27,8 @@ describe('docs.angularjs.org', function () {
it('should show the functioning input directive example', function () {
browser.get('index-debug.html#!/api/ng/directive/input');
//Wait for animation
browser.sleep(500);
// Ensure that the page is loaded before trying to switch frames.
browser.waitForAngular();
browser.switchTo().frame('example-input-directive');
@@ -66,4 +66,4 @@ describe('docs.angularjs.org', function () {
expect(element(by.css('.minerr-errmsg')).getText()).toEqual("Argument 'Missing' is not a function, got undefined");
});
});
});
});