Skip to content

Commit c9f8941

Browse files
committed
smoke - simplify line number test (microsoft#141054)
1 parent b11b3ad commit c9f8941

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

smoke/src/areas/preferences/preferences.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { join } from 'path';
76
import { Application, ActivityBarPosition, Logger } from '../../../../automation';
87
import { installAllHandlers } from '../../utils';
98

@@ -15,16 +14,17 @@ export function setup(logger: Logger) {
1514

1615
it('turns off editor line numbers and verifies the live change', async function () {
1716
const app = this.app as Application;
18-
await app.workbench.quickaccess.openFile(join(app.workspacePathOrFolder, 'app.js'));
17+
18+
await app.workbench.settingsEditor.openUserSettingsFile();
1919
await app.code.waitForElements('.line-numbers', false, elements => !!elements.length);
2020

2121
await app.workbench.settingsEditor.addUserSetting('editor.lineNumbers', '"off"');
22-
await app.workbench.settingsEditor.openUserSettingsFile();
2322
await app.code.waitForElements('.line-numbers', false, result => !result || result.length === 0);
2423
});
2524

2625
it('changes "workbench.action.toggleSidebarPosition" command key binding and verifies it', async function () {
2726
const app = this.app as Application;
27+
2828
await app.workbench.activitybar.waitForActivityBar(ActivityBarPosition.LEFT);
2929

3030
await app.workbench.keybindingsEditor.updateKeybinding('workbench.action.toggleSidebarPosition', 'View: Toggle Side Bar Position', 'ctrl+u', 'Control+U');

0 commit comments

Comments
 (0)