From 163d5fb69b2e96cc81b89809ef9c44fecd2045ee Mon Sep 17 00:00:00 2001 From: Julie Date: Fri, 23 May 2014 10:41:32 -0700 Subject: [PATCH] tests(docsAppE2E): fix race condition flake with switching to new frame --- test/e2e/docsAppE2E.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/docsAppE2E.js b/test/e2e/docsAppE2E.js index b3fe257ee340..f094dc0e1383 100644 --- a/test/e2e/docsAppE2E.js +++ b/test/e2e/docsAppE2E.js @@ -29,8 +29,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');