From 5d624b72c6f404d3b57218f7491155cdc720d6aa Mon Sep 17 00:00:00 2001 From: Sammy Jelin Date: Tue, 31 Jan 2017 14:47:55 -0800 Subject: [PATCH] chore(spec): cast away typescript error message --- spec/ts/noCFPluginConf.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/ts/noCFPluginConf.ts b/spec/ts/noCFPluginConf.ts index 80ae08e24..bca23ec41 100644 --- a/spec/ts/noCFPluginConf.ts +++ b/spec/ts/noCFPluginConf.ts @@ -1,5 +1,6 @@ import * as q from 'q'; import {Config, protractor} from '../..'; +import {promise as wdpromise} from 'selenium-webdriver'; const env = require('../environment.js'); export let config: Config = { @@ -18,7 +19,8 @@ export let config: Config = { plugins: [{ inline: { onPageLoad: function() { - return q.delay(100).then(function() { + //TODO: remove cast when @types/selenium-webdriver understands disabling the control flow + return (q.delay(100) as any as wdpromise.Promise).then(function() { (protractor as any).ON_PAGE_LOAD = true; }); }