Added debug log to find out where Windows build fails.

This commit is contained in:
Michel Kaporin 2017-05-29 14:46:27 +02:00
parent a41a0c007f
commit 632837a870

View file

@ -39,6 +39,7 @@ export class Git {
}
public async stageFile(fileName: string): Promise<any> {
console.log('Stage file' + fileName);
await this.spectron.client.moveToObject(`div[class="monaco-icon-label file-icon ${fileName}-name-file-icon ${this.commonActions.getExtensionSelector(fileName)}"`);
await this.spectron.client.click('.action-label.icon.contrib-cmd-icon-4');
return this.spectron.wait();
@ -55,15 +56,18 @@ export class Git {
}
public focusOnCommitBox(): Promise<any> {
console.log('Focus on commit box');
return this.spectron.client.click('div[id="workbench.view.scm"] textarea');
}
public async pressCommit(): Promise<any> {
console.log('Press commit');
await this.spectron.client.click('.action-label.icon.contrib-cmd-icon-10');
return this.spectron.wait();
}
public getOutgoingChanges(): Promise<string> {
console.log('Get outgoing code');
return this.spectron.client.getText('a[title="Synchronize changes"]');
}
}