提交 3731a437 编写于 作者: J Joao Moreno

fix preferences smoketests due to broken keybindings

上级 2c960706
......@@ -22,7 +22,7 @@ export class SettingsEditor {
constructor(private code: Code, private userDataPath: string, private commands: Commands, private editors: Editors, private editor: Editor) { }
async addUserSetting(setting: string, value: string): Promise<void> {
await this.commands.runCommand('workbench.action.openGlobalSettings');
await this.commands.runCommand('workbench.action.openSettings');
await this.code.waitAndClick(SEARCH_INPUT);
await this.code.waitForActiveElement(SEARCH_INPUT);
......@@ -37,7 +37,7 @@ export class SettingsEditor {
const settingsPath = path.join(this.userDataPath, 'User', 'settings.json');
await new Promise((c, e) => fs.writeFile(settingsPath, '{}', 'utf8', err => err ? e(err) : c()));
await this.commands.runCommand('workbench.action.openGlobalSettings');
await this.commands.runCommand('workbench.action.openSettings');
await this.editor.waitForEditorContents('settings.json', c => c === '{}', '.editable-preferences-editor-container');
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册