提交 34b4fb6b 编写于 作者: S Sandeep Somavarapu

Disable telemetry in smoke tests using setting

上级 aee13817
......@@ -155,6 +155,26 @@ export class SpectronApplication {
this._workbench = new Workbench(this);
}
/* private async setUpUserDataDirectory(): Promise<string> {
const userDataDir = path.join(this._userDir, String(SpectronApplication.count++));
return new Promise<string>((c, e) => {
const settingsDir = path.join(userDataDir, 'User');
mkdirp(path.join(userDataDir, 'User'), (error => {
if (error) {
e(error);
return;
}
try {
fs.writeFileSync(path.join(settingsDir, 'settings.json'), `{\n "telemetry.enableTelemetry": false\n }`);
c(userDataDir);
} catch (error) {
e(error);
}
}));
});
} */
private async checkWindowReady(): Promise<any> {
await this.webclient.waitUntilWindowLoaded();
// Spectron opens multiple terminals in Windows platform
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册