Skip to content

Commit

Permalink
chore(spec): cast away typescript error message (#4044)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjelin committed Jan 31, 2017
1 parent ba57db2 commit c021595
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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 = {
Expand All @@ -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<void>).then(function() {
(protractor as any).ON_PAGE_LOAD = true;
});
}
Expand Down

0 comments on commit c021595

Please sign in to comment.