@@ -16,13 +16,16 @@ import { Editor } from '../../pageobjects/ide/Editor';
16
16
import { TestConstants } from '../../TestConstants' ;
17
17
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests' ;
18
18
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil' ;
19
+ import { PreferencesHandler } from '../../utils/PreferencesHandler' ;
19
20
import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests' ;
20
21
21
22
const projectAndFileTests : ProjectAndFileTests = e2eContainer . get ( CLASSES . ProjectAndFileTests ) ;
22
23
const projectTree : ProjectTree = e2eContainer . get ( CLASSES . ProjectTree ) ;
23
24
const editor : Editor = e2eContainer . get ( CLASSES . Editor ) ;
24
25
const browserTabsUtil : BrowserTabsUtil = e2eContainer . get ( CLASSES . BrowserTabsUtil ) ;
25
26
const workspaceHandlingTests : WorkspaceHandlingTests = e2eContainer . get ( CLASSES . WorkspaceHandlingTests ) ;
27
+ const preferencesHandler : PreferencesHandler = e2eContainer . get ( CLASSES . PreferencesHandler ) ;
28
+
26
29
const devfileUrl : string = TestConstants . TS_TEST_WORKSPACE_DEVFILE_REPO || 'https://github.com/che-samples/web-nodejs-sample/tree/xml-plugin' ;
27
30
const factoryUrl : string = `${ TestConstants . TS_SELENIUM_BASE_URL } /f?url=${ devfileUrl } ` ;
28
31
const projectName : string = 'web-nodejs-sample' ;
@@ -42,6 +45,10 @@ suite('The "VscodeXmlPlugin" userstory', async () => {
42
45
} ) ;
43
46
44
47
suite ( 'Check the "vscode-xml" plugin' , async ( ) => {
48
+ test ( 'Set confirmExit preference to never' , async ( ) => {
49
+ await preferencesHandler . setPreferenceUsingUI ( 'application.confirmExit' , 'never' ) ;
50
+ } ) ;
51
+
45
52
test ( 'Check autocomplete' , async ( ) => {
46
53
await projectTree . expandPathAndOpenFile ( pathToFile , xmlFileName ) ;
47
54
await editor . waitSuggestion ( xmlFileName , 'rollback' , 60000 , 16 , 4 ) ;
0 commit comments