提交 2f6e5943 编写于 作者: J Joao Moreno

green debug tests

上级 9d6f6191
......@@ -61,6 +61,9 @@ class WindowDriver implements IWindowDriver {
y = top + (height / 2);
}
x = Math.round(x);
y = Math.round(y);
const webContents = electron.remote.getCurrentWebContents();
webContents.sendInputEvent({ type: 'mouseDown', x, y, button: 'left', clickCount: 1 } as any);
webContents.sendInputEvent({ type: 'mouseUp', x, y, button: 'left', clickCount: 1 } as any);
......
......@@ -54,6 +54,9 @@ export function setup() {
it('start debugging', async function () {
const app = this.app as SpectronApplication;
// TODO@isidor
await new Promise(c => setTimeout(c, 100));
port = await app.workbench.debug.startDebugging();
await app.screenCapturer.capture('debugging has started');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册