fix(WebWorkers): Fix flaky WebWorker test

Closes #6851
This commit is contained in:
Jason Teplitz 2016-02-02 16:31:35 -08:00 committed by Alex Eagle
parent dbeff6f548
commit da1fcfd820
1 changed files with 3 additions and 2 deletions

View File

@ -23,9 +23,10 @@ describe('WebWorkers Kitchen Sink', function() {
// This test can't wait for Angular 2 as Testability is not available when using WebWorker
browser.ignoreSynchronization = true;
browser.get(URL);
let changeButtonSelector = 'hello-app .changeButton';
browser.wait(protractor.until.elementLocated(by.css(selector)), 15000);
element(by.css("hello-app .changeButton")).click();
browser.wait(protractor.until.elementLocated(by.css(changeButtonSelector)), 15000);
element(by.css(changeButtonSelector)).click();
var elem = element(by.css(selector));
browser.wait(protractor.until.elementTextIs(elem, "howdy world!"), 5000);
expect(elem.getText()).toEqual("howdy world!");