Skip to content

Commit

Permalink
Change typing
Browse files Browse the repository at this point in the history
  • Loading branch information
pottedmeat committed Nov 8, 2017
1 parent 494b218 commit 8b211bd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/slider/tests/functional/Slider.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const { registerSuite } = intern.getInterface('object');
const { assert } = intern.getPlugin('chai');

import Command from '@theintern/leadfoot/Command';
import Element from '@theintern/leadfoot/Element';
import keys from '@theintern/leadfoot/keys';
import { Remote } from 'intern/lib/executors/Node';
import * as css from '../../styles/slider.m.css';
Expand Down Expand Up @@ -61,11 +59,12 @@ function clickToFocus(test: any, selector: string) {
}

let input: string;
return getPage(test)
const remote = getPage(test);
remote
.findByCssSelector(`#example-s1 .${css.root}`)
.findByCssSelector(selector)
.then(function (this: { parent: Command<Element> }, element) {
return this.parent
.then((element) => {
return remote
.moveMouseTo(element)
.clickMouseButton(0);
})
Expand Down

0 comments on commit 8b211bd

Please sign in to comment.