提交 aee13817 编写于 作者: S Sandeep Somavarapu

Smoke tests: Add a comma at the end while adding a setting

上级 449882b9
...@@ -20,10 +20,7 @@ describe('Preferences', () => { ...@@ -20,10 +20,7 @@ describe('Preferences', () => {
await app.screenCapturer.capture('line numbers'); await app.screenCapturer.capture('line numbers');
assert.ok(!!lineNumbers.length, 'Line numbers are not present in the editor before disabling them.'); assert.ok(!!lineNumbers.length, 'Line numbers are not present in the editor before disabling them.');
await app.workbench.settingsEditor.openUserSettings(); await app.workbench.settingsEditor.addUserSetting('editor.lineNumbers', '"off"');
await app.workbench.settingsEditor.focusEditableSettings();
await app.client.keys(`"editor.lineNumbers": "off"`);
await app.workbench.saveOpenedFile();
await app.workbench.selectTab('app.js'); await app.workbench.selectTab('app.js');
lineNumbers = await app.client.waitForElements('.line-numbers', result => !result || result.length === 0); lineNumbers = await app.client.waitForElements('.line-numbers', result => !result || result.length === 0);
......
...@@ -30,9 +30,8 @@ export class SettingsEditor { ...@@ -30,9 +30,8 @@ export class SettingsEditor {
async addUserSetting(setting: string, value: string): Promise<void> { async addUserSetting(setting: string, value: string): Promise<void> {
await this.openUserSettings(); await this.openUserSettings();
// await this.spectron.wait(1);
await this.focusEditableSettings(); await this.focusEditableSettings();
await this.spectron.client.keys(`"${setting}": ${value}`); await this.spectron.client.keys(`"${setting}": ${value},`);
await this.spectron.workbench.saveOpenedFile(); await this.spectron.workbench.saveOpenedFile();
} }
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册