3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
- import { join } from 'path' ;
7
6
import { Application , ActivityBarPosition , Logger } from '../../../../automation' ;
8
7
import { installAllHandlers } from '../../utils' ;
9
8
@@ -15,16 +14,17 @@ export function setup(logger: Logger) {
15
14
16
15
it ( 'turns off editor line numbers and verifies the live change' , async function ( ) {
17
16
const app = this . app as Application ;
18
- await app . workbench . quickaccess . openFile ( join ( app . workspacePathOrFolder , 'app.js' ) ) ;
17
+
18
+ await app . workbench . settingsEditor . openUserSettingsFile ( ) ;
19
19
await app . code . waitForElements ( '.line-numbers' , false , elements => ! ! elements . length ) ;
20
20
21
21
await app . workbench . settingsEditor . addUserSetting ( 'editor.lineNumbers' , '"off"' ) ;
22
- await app . workbench . settingsEditor . openUserSettingsFile ( ) ;
23
22
await app . code . waitForElements ( '.line-numbers' , false , result => ! result || result . length === 0 ) ;
24
23
} ) ;
25
24
26
25
it ( 'changes "workbench.action.toggleSidebarPosition" command key binding and verifies it' , async function ( ) {
27
26
const app = this . app as Application ;
27
+
28
28
await app . workbench . activitybar . waitForActivityBar ( ActivityBarPosition . LEFT ) ;
29
29
30
30
await app . workbench . keybindingsEditor . updateKeybinding ( 'workbench.action.toggleSidebarPosition' , 'View: Toggle Side Bar Position' , 'ctrl+u' , 'Control+U' ) ;
0 commit comments