Revert "Add Settings editor smoke tests" (#189848)

Revert "Add Settings editor smoke tests (#189687)"

This reverts commit e1dfb2a559.
This commit is contained in:
Raymond Zhao
2023-08-07 10:40:37 -07:00
committed by GitHub
parent 24e689132d
commit 39e5dafcd6
2 changed files with 1 additions and 48 deletions

View File

@@ -19,7 +19,7 @@ export function setup(logger: Logger) {
await app.code.waitForElements('.line-numbers', false, elements => !!elements.length);
await app.workbench.settingsEditor.addUserSetting('editor.lineNumbers', '"off"');
await app.code.waitForElements('.line-numbers', false, elements => !elements || elements.length === 0);
await app.code.waitForElements('.line-numbers', false, result => !result || result.length === 0);
});
it('changes "workbench.action.toggleSidebarPosition" command key binding and verifies it', async function () {
@@ -33,34 +33,4 @@ export function setup(logger: Logger) {
await app.workbench.activitybar.waitForActivityBar(ActivityBarPosition.RIGHT);
});
});
describe('Settings editor', () => {
// Shared before/after handling
installAllHandlers(logger);
it('shows a modified indicator on a modified setting', async function () {
const app = this.app as Application;
await app.workbench.settingsEditor.searchSettingsUI('@id:editor.tabSize');
await app.code.waitForSetValue('.settings-editor .setting-item-contents .setting-item-control input', '6');
await app.code.waitForElement('.settings-editor .setting-item-contents .setting-item-modified-indicator');
await app.code.waitForSetValue('.settings-editor .setting-item-contents .setting-item-control input', '4');
});
it('turns off editor line numbers and verifies the live change', async function () {
const app = this.app as Application;
await app.workbench.editors.newUntitledFile();
await app.code.dispatchKeybinding('enter');
await app.code.waitForElements('.line-numbers', false, elements => !!elements.length);
await app.workbench.settingsEditor.searchSettingsUI('editor.lineNumbers');
await app.code.waitAndClick('.settings-editor .monaco-list-rows .setting-item-control select', 2, 2);
await app.code.waitAndClick('.context-view .option-text', 2, 2);
await app.workbench.editors.selectTab('Untitled-1');
await app.code.waitForElements('.line-numbers', false, elements => !elements || elements.length === 0);
});
});
}