@@ -16,10 +16,10 @@ export function setup(logger: Logger) {
16
16
const app = this . app as Application ;
17
17
18
18
await app . workbench . settingsEditor . openUserSettingsFile ( ) ;
19
- await app . code . waitForElements ( '.line-numbers' , false , elements => ! ! elements . length ) ;
19
+ await app . code . waitForElements ( '.margin . line-numbers' , false , elements => ! ! elements . length ) ;
20
20
21
21
await app . workbench . settingsEditor . addUserSetting ( 'editor.lineNumbers' , '"off"' ) ;
22
- await app . code . waitForElements ( '.line-numbers' , false , result => ! result || result . length === 0 ) ;
22
+ await app . code . waitForElements ( '.margin . line-numbers' , false , elements => ! elements || elements . length === 0 ) ;
23
23
} ) ;
24
24
25
25
it ( 'changes "workbench.action.toggleSidebarPosition" command key binding and verifies it' , async function ( ) {
@@ -43,9 +43,24 @@ export function setup(logger: Logger) {
43
43
const app = this . app as Application ;
44
44
45
45
await app . workbench . settingsEditor . searchSettingsUI ( '@id:editor.tabSize' ) ;
46
- await app . code . waitForSetValue ( '.settings-editor .setting-item-contents .setting-item-control input' , '15 ' ) ;
46
+ await app . code . waitForSetValue ( '.settings-editor .setting-item-contents .setting-item-control input' , '6 ' ) ;
47
47
await app . code . waitForElement ( '.settings-editor .setting-item-contents .setting-item-modified-indicator' ) ;
48
- await app . code . waitForSetValue ( '.settings-editor .setting-item-contents .setting-item-control input' , '14' ) ;
48
+ await app . code . waitForSetValue ( '.settings-editor .setting-item-contents .setting-item-control input' , '4' ) ;
49
+ } ) ;
50
+
51
+ it ( 'turns off editor line numbers and verifies the live change' , async function ( ) {
52
+ const app = this . app as Application ;
53
+
54
+ await app . workbench . editors . newUntitledFile ( ) ;
55
+ await app . code . dispatchKeybinding ( 'enter' ) ;
56
+ await app . code . waitForElements ( '.margin .line-numbers' , false , elements => ! ! elements . length ) ;
57
+
58
+ await app . workbench . settingsEditor . searchSettingsUI ( 'editor.lineNumbers' ) ;
59
+ await app . code . waitAndClick ( '.settings-editor .monaco-list-rows .setting-item-control select' , 2 , 2 ) ;
60
+ await app . code . waitAndClick ( '.context-view .option-text' , 2 , 2 ) ;
61
+
62
+ await app . workbench . editors . selectTab ( 'Untitled-1' ) ;
63
+ await app . code . waitForElements ( '.margin .line-numbers' , false , elements => ! elements || elements . length === 0 ) ;
49
64
} ) ;
50
65
} ) ;
51
66
}
0 commit comments