Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

chore(spec): cast away typescript error message #4044

Merged
merged 1 commit into from
Jan 31, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion spec/ts/noCFPluginConf.ts
Original file line number Diff line number Diff line change
@@ -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