diff --git a/modules/playground/e2e_test/web_workers/kitchen_sink/kitchen_sink_spec.ts b/modules/playground/e2e_test/web_workers/kitchen_sink/kitchen_sink_spec.ts index 084caa36d1..e4da453e51 100644 --- a/modules/playground/e2e_test/web_workers/kitchen_sink/kitchen_sink_spec.ts +++ b/modules/playground/e2e_test/web_workers/kitchen_sink/kitchen_sink_spec.ts @@ -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!"); });