diff --git a/aio/content/examples/animations/e2e/app.e2e-spec.ts b/aio/content/examples/animations/e2e/app.e2e-spec.ts index fc0f40f9fc..524335223d 100644 --- a/aio/content/examples/animations/e2e/app.e2e-spec.ts +++ b/aio/content/examples/animations/e2e/app.e2e-spec.ts @@ -335,17 +335,17 @@ describe('Animation Tests', () => { }); } - function getBoundingClientWidth(el: ElementFinder): promise.Promise { + function getBoundingClientWidth(el: ElementFinder) { return browser.executeScript( 'return arguments[0].getBoundingClientRect().width', el.getWebElement() - ); + ) as PromiseLike; } - function getOffsetWidth(el: ElementFinder): promise.Promise { + function getOffsetWidth(el: ElementFinder) { return browser.executeScript( 'return arguments[0].offsetWidth', el.getWebElement() - ); + ) as PromiseLike; } });