|
6 | 6 | import { Application, SpectronClient as WebClient } from 'spectron'; |
7 | 7 | import { test as testPort } from 'portastic'; |
8 | 8 | import { API } from './client'; |
9 | | -import { ScreenCapturer } from '../helpers/screenshot'; |
10 | | -import { Workbench } from '../areas/workbench/workbench'; |
| 9 | +import { ScreenCapturer } from './helpers/screenshot'; |
| 10 | +import { Workbench } from './areas/workbench/workbench'; |
11 | 11 | import * as fs from 'fs'; |
12 | 12 | import * as cp from 'child_process'; |
13 | 13 | import * as path from 'path'; |
14 | 14 | import * as mkdirp from 'mkdirp'; |
15 | | -import { sanitize } from '../helpers/utilities'; |
| 15 | +import { sanitize } from './helpers/utilities'; |
| 16 | +import { SpectronDriver } from './driver'; |
16 | 17 |
|
17 | 18 | // Just hope random helps us here, cross your fingers! |
18 | 19 | export async function findFreePort(): Promise<number> { |
@@ -271,7 +272,9 @@ export class SpectronApplication { |
271 | 272 | } |
272 | 273 |
|
273 | 274 | this._screenCapturer = new ScreenCapturer(this.spectron, this._suiteName, screenshotsDirPath); |
274 | | - this._api = new API(this.spectron.client, this.screenCapturer, this.options.waitTime, this.options.verbose); |
| 275 | + |
| 276 | + const driver = new SpectronDriver(this.spectron.client, this.options.verbose); |
| 277 | + this._api = new API(driver, this.screenCapturer, this.options.waitTime); |
275 | 278 | this._workbench = new Workbench(this._api, this.keybindings, this.userDataPath); |
276 | 279 | } |
277 | 280 |
|
|
0 commit comments