fix(web_worker): wait for bindings in kitchen sink spec

This commit is contained in:
Jeff Cross 2016-02-25 14:46:51 -08:00
parent ebe531bf92
commit 4a93f58b8b
1 changed files with 3 additions and 1 deletions

View File

@ -14,7 +14,9 @@ describe('WebWorkers Kitchen Sink', function() {
browser.get(URL);
browser.wait(protractor.until.elementLocated(by.css(selector)), 15000);
expect(element.all(by.css(selector)).first().getText()).toEqual("hello world!");
var elem = element(by.css(selector));
browser.wait(protractor.until.elementTextIs(elem, 'hello world!'), 5000);
expect(elem.getText()).toEqual("hello world!");
});