@eclipse-che/che-e2e 7.43.0-dev-fc26d86 → 7.43.0-dev-f437b24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tests/plugins/TypescriptPlugin.spec.js +12 -19
- package/dist/tests/plugins/TypescriptPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/VscodeYamlPlugin.spec.js +9 -15
- package/dist/tests/plugins/VscodeYamlPlugin.spec.js.map +1 -1
- package/package.json +1 -1
- package/tests/plugins/TypescriptPlugin.spec.ts +15 -23
- package/tests/plugins/VscodeYamlPlugin.spec.ts +11 -18
|
@@ -30,31 +30,29 @@ const topMenu = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.To
|
|
|
30
30
|
const debugView = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.DebugView);
|
|
31
31
|
const terminal = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.Terminal);
|
|
32
32
|
const browserTabsUtil = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.BrowserTabsUtil);
|
|
33
|
-
const
|
|
34
|
-
const devfileUrl = 'https://
|
|
33
|
+
const preferencesHandler = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.PreferencesHandler);
|
|
34
|
+
const devfileUrl = 'https://github.com/che-samples/web-nodejs-sample/tree/typescript-plugin';
|
|
35
35
|
const factoryUrl = `${TestConstants_1.TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
|
|
36
36
|
const codeNavigationClassName = 'OpenDefinition.ts';
|
|
37
|
-
const projectName = 'nodejs-
|
|
37
|
+
const projectName = 'web-nodejs-sample';
|
|
38
38
|
const subRootFolder = 'app';
|
|
39
39
|
const sampleBodyLocator = selenium_webdriver_1.By.xpath(`//body[text()='Hello World!']`);
|
|
40
40
|
const fileFolderPath = `${projectName}`;
|
|
41
41
|
const debugFileFolderPath = `${projectName}/app`;
|
|
42
42
|
const debugFile = 'app.js';
|
|
43
43
|
const tabTitle = 'typescript-node-debug.ts';
|
|
44
|
-
let workspaceName;
|
|
44
|
+
let workspaceName = 'typescript-plugin';
|
|
45
45
|
suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
46
46
|
suite('Create workspace', async () => {
|
|
47
47
|
test('Create workspace using factory', async () => {
|
|
48
48
|
await browserTabsUtil.navigateTo(factoryUrl);
|
|
49
49
|
});
|
|
50
50
|
test('Wait until created workspace is started', async () => {
|
|
51
|
-
await ide.waitAndSwitchToIdeFrame();
|
|
52
|
-
workspaceName = await workspaceNameHandler.getNameFromUrl();
|
|
53
51
|
CheReporter_1.default.registerRunningWorkspace(workspaceName);
|
|
54
52
|
await ide.waitIde(TimeoutConstants_1.TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
55
|
-
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60000);
|
|
56
53
|
await projectTree.openProjectTreeContainer();
|
|
57
54
|
await projectTree.waitProjectImported(projectName, subRootFolder);
|
|
55
|
+
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
|
|
58
56
|
});
|
|
59
57
|
});
|
|
60
58
|
suite('The Typescript plugin test', async () => {
|
|
@@ -88,20 +86,19 @@ suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
|
88
86
|
suite(`The 'Node-debug' plugin test`, async () => {
|
|
89
87
|
let currentWindow = '';
|
|
90
88
|
let applicationPreviewWindow = '';
|
|
91
|
-
test('Run application in debug mode', async () => {
|
|
92
|
-
await topMenu.runTask('run the web app (debugging enabled), Global');
|
|
93
|
-
await ide.waitNotification('Process nodejs is now listening on port 3000.');
|
|
94
|
-
currentWindow = await browserTabsUtil.getCurrentWindowHandle();
|
|
95
|
-
});
|
|
96
89
|
test('Open application in the new editor window', async () => {
|
|
97
|
-
await
|
|
90
|
+
currentWindow = await browserTabsUtil.getCurrentWindowHandle();
|
|
91
|
+
await topMenu.runTask('run-the-web-app, Global');
|
|
92
|
+
await ide.waitNotification('A new process is now listening on port 3000', TimeoutConstants_1.TimeoutConstants.TS_DEBUGGER_CONNECTION_TIMEOUT);
|
|
93
|
+
await ide.clickOnNotificationButton('A new process is now listening on port 3000', 'yes');
|
|
94
|
+
await ide.waitNotification('Redirect is now enabled on port 3000.', TimeoutConstants_1.TimeoutConstants.TS_DEBUGGER_CONNECTION_TIMEOUT);
|
|
95
|
+
await ide.clickOnNotificationButton('Redirect is now enabled on port 3000.', 'Open In New Tab');
|
|
98
96
|
await browserTabsUtil.waitAndSwitchToAnotherWindow(currentWindow, 60000);
|
|
99
97
|
await browserTabsUtil.waitContentAvailableInTheNewTab(sampleBodyLocator, 60000);
|
|
100
98
|
applicationPreviewWindow = await browserTabsUtil.getCurrentWindowHandle();
|
|
101
99
|
});
|
|
102
100
|
test('Switch back to the IDE window', async () => {
|
|
103
101
|
await browserTabsUtil.switchToWindow(currentWindow);
|
|
104
|
-
await ide.waitAndSwitchToIdeFrame(60000);
|
|
105
102
|
});
|
|
106
103
|
test('Activate breakpoint', async () => {
|
|
107
104
|
await projectTree.expandPathAndOpenFile(debugFileFolderPath, debugFile);
|
|
@@ -110,11 +107,8 @@ suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
|
110
107
|
test('Run debug', async () => {
|
|
111
108
|
await topMenu.selectOption('View', 'Debug');
|
|
112
109
|
await ide.waitLeftToolbarButton(Ide_1.LeftToolbarButton.Debug);
|
|
113
|
-
// workaround for the issue: https://github.com/eclipse/che/issues/20067
|
|
114
|
-
await debugView.clickOnDebugConfigurationDropDown();
|
|
115
|
-
await debugView.clickOnDebugConfigurationItem('Add Configuration...');
|
|
116
110
|
await debugView.clickOnDebugConfigurationDropDown();
|
|
117
|
-
await debugView.clickOnDebugConfigurationItem('Attach
|
|
111
|
+
await debugView.clickOnDebugConfigurationItem('Attach (web-nodejs-sample)');
|
|
118
112
|
await debugView.clickOnRunDebugButton();
|
|
119
113
|
});
|
|
120
114
|
test('Wait debug connected', async () => {
|
|
@@ -130,7 +124,6 @@ suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
|
130
124
|
});
|
|
131
125
|
test('Check breakpoint stopped', async () => {
|
|
132
126
|
await browserTabsUtil.switchToWindow(currentWindow);
|
|
133
|
-
await ide.waitAndSwitchToIdeFrame(60000);
|
|
134
127
|
await editor.waitStoppedDebugBreakpoint(debugFile, 19, 60000);
|
|
135
128
|
});
|
|
136
129
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypescriptPlugin.spec.js","sourceRoot":"","sources":["../../../tests/plugins/TypescriptPlugin.spec.ts"],"names":[],"mappings":";;;;;AAAA;;;;;;;;wEAQwE;AACxE,4BAA0B;AAE1B,6DAAsD;AACtD,2DAAgD;AAChD,mDAAmE;AACnE,6DAA0D;AAC1D,uDAAoD;AAEpD,2DAA6C;AAO7C,+CAA4C;AAC5C,2EAAmD;AAGnD,MAAM,sBAAsB,GAA2B,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,sBAAsB,CAAC,CAAC;AACxG,MAAM,YAAY,GAAiB,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,YAAY,CAAC,CAAC;AAC1E,MAAM,GAAG,GAAQ,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,WAAW,GAAgB,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,WAAW,CAAC,CAAC;AACvE,MAAM,MAAM,GAAW,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,MAAM,CAAC,CAAC;AACxD,MAAM,OAAO,GAAY,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,OAAO,CAAC,CAAC;AAC3D,MAAM,SAAS,GAAc,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,SAAS,CAAC,CAAC;AACjE,MAAM,QAAQ,GAAa,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,QAAQ,CAAC,CAAC;A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AAC;YAEpD,MAAM,MAAM,CAAC,0BAA0B,CAAC,SAAS,EAAE,EAAE,EAAE,KAAM,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;QACpD,IAAI,CAAC,2BAA2B,EAAE,KAAK,IAAI,EAAE;YACzC,IAAI,6BAAa,CAAC,gCAAgC,KAAK,MAAM,EAAE;gBAC3D,MAAM,sBAAsB,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC;gBACnE,OAAO;aACV;YAED,eAAM,CAAC,IAAI,CAAC,qGAAqG,CAAC,CAAC;QACvH,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -23,51 +23,45 @@ const ide = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.Ide);
|
|
|
23
23
|
const projectTree = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.ProjectTree);
|
|
24
24
|
const editor = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.Editor);
|
|
25
25
|
const browserTabsUtil = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.BrowserTabsUtil);
|
|
26
|
-
const preferencesHandler = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.PreferencesHandler);
|
|
27
26
|
const workspaceHandlingTests = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.WorkspaceHandlingTests);
|
|
28
|
-
const
|
|
29
|
-
const devfileUrl = 'https://
|
|
27
|
+
const preferencesHandler = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.PreferencesHandler);
|
|
28
|
+
const devfileUrl = 'https://github.com/che-samples/web-nodejs-sample/tree/yaml-plugin';
|
|
30
29
|
const factoryUrl = `${TestConstants_1.TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
|
|
31
|
-
const projectName = 'nodejs-
|
|
30
|
+
const projectName = 'web-nodejs-sample';
|
|
32
31
|
const pathToFile = `${projectName}`;
|
|
33
32
|
const yamlFileName = 'routes.yaml';
|
|
34
33
|
const yamlSchema = { 'yaml-schema.json': '*.yaml' };
|
|
35
|
-
let workspaceName = '';
|
|
34
|
+
let workspaceName = 'yaml-plugin';
|
|
36
35
|
suite('The "VscodeYamlPlugin" userstory', async () => {
|
|
37
36
|
suite('Create workspace', async () => {
|
|
38
37
|
test('Create workspace using factory', async () => {
|
|
39
38
|
await browserTabsUtil.navigateTo(factoryUrl);
|
|
40
39
|
});
|
|
41
40
|
test('Wait until created workspace is started', async () => {
|
|
42
|
-
await ide.waitAndSwitchToIdeFrame();
|
|
43
|
-
workspaceName = await workspaceNameHandler.getNameFromUrl();
|
|
44
41
|
CheReporter_1.default.registerRunningWorkspace(workspaceName);
|
|
45
42
|
await ide.waitIde(TimeoutConstants_1.TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
46
|
-
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60000);
|
|
47
43
|
});
|
|
48
44
|
});
|
|
49
45
|
suite('Check workspace readiness to work', async () => {
|
|
50
46
|
test('Wait until project is imported', async () => {
|
|
51
47
|
await projectTree.openProjectTreeContainer();
|
|
52
48
|
await projectTree.waitProjectImported(projectName, 'app');
|
|
49
|
+
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
|
|
53
50
|
});
|
|
54
51
|
});
|
|
55
52
|
suite('Check the "vscode-yaml" plugin', async () => {
|
|
56
|
-
test('Set the yaml schema path', async () => {
|
|
57
|
-
await preferencesHandler.setPreferenceUsingUI('yaml.schemas', yamlSchema);
|
|
58
|
-
});
|
|
59
53
|
test('Check autocomplete', async () => {
|
|
60
54
|
await projectTree.expandPathAndOpenFile(pathToFile, yamlFileName);
|
|
61
|
-
await editor.waitSuggestion(yamlFileName, '
|
|
55
|
+
await editor.waitSuggestion(yamlFileName, 'for', 60000, 18, 5);
|
|
62
56
|
});
|
|
63
57
|
test('Check error appearance', async () => {
|
|
64
58
|
await projectTree.expandPathAndOpenFile(pathToFile, yamlFileName);
|
|
65
|
-
await editor.type(yamlFileName, selenium_webdriver_1.Key.SPACE,
|
|
66
|
-
await editor.waitErrorInLine(
|
|
59
|
+
await editor.type(yamlFileName, selenium_webdriver_1.Key.SPACE, 20);
|
|
60
|
+
await editor.waitErrorInLine(20, yamlFileName);
|
|
67
61
|
});
|
|
68
62
|
test('Check error disappearance', async () => {
|
|
69
63
|
await editor.performKeyCombination(yamlFileName, selenium_webdriver_1.Key.BACK_SPACE);
|
|
70
|
-
await editor.waitErrorInLineDisappearance(
|
|
64
|
+
await editor.waitErrorInLineDisappearance(20, yamlFileName);
|
|
71
65
|
});
|
|
72
66
|
test('To unformat the "yaml" file', async () => {
|
|
73
67
|
const expectedTextBeforeFormating = 'uri: "timer:tick"';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VscodeYamlPlugin.spec.js","sourceRoot":"","sources":["../../../tests/plugins/VscodeYamlPlugin.spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;wEAQwE;;;;;AAExE,2DAAyC;AACzC,6DAAsD;AACtD,2DAAgD;
|
|
1
|
+
{"version":3,"file":"VscodeYamlPlugin.spec.js","sourceRoot":"","sources":["../../../tests/plugins/VscodeYamlPlugin.spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;wEAQwE;;;;;AAExE,2DAAyC;AACzC,6DAAsD;AACtD,2DAAgD;AAIhD,uDAAoD;AACpD,6DAA0D;AAC1D,+CAA4C;AAE5C,2EAAmD;AAInD,MAAM,GAAG,GAAQ,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,WAAW,GAAgB,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,WAAW,CAAC,CAAC;AACvE,MAAM,MAAM,GAAW,+BAAY,CAAC,GAAG,CAAC,yBAAO,CAAC,MAAM,CAAC,CAAC;AACxD,MAAM,eAA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,EAAE,EAAE,EAAE,CAAC,CAAC;YAC3D,MAAM,MAAM,CAAC,qBAAqB,CAAC,YAAY,EAAE,wBAAG,CAAC,KAAK,CAAC,wBAAG,CAAC,KAAK,EAAE,wBAAG,CAAC,KAAK,EAAE,wBAAG,CAAC,KAAK,EAAE,wBAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YACxG,MAAM,MAAM,CAAC,QAAQ,CAAC,YAAY,EAAE,2BAA2B,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QACnF,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,+BAA+B,EAAE,KAAK,IAAI,EAAE;YAC7C,MAAM,0BAA0B,GAAW,mBAAmB,CAAC;YAE/D,MAAM,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,wBAAG,CAAC,KAAK,CAAC,wBAAG,CAAC,OAAO,EAAE,wBAAG,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;YAC5E,MAAM,MAAM,CAAC,QAAQ,CAAC,YAAY,EAAE,0BAA0B,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAClF,CAAC,CAAC,CAAC;IAEP,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,kBAAkB,EAAE,KAAK,IAAI,EAAE;QACjC,IAAI,CAAC,2BAA2B,EAAE,KAAK,IAAI,EAAE;YACzC,IAAI,6BAAa,CAAC,gCAAgC,KAAK,MAAM,EAAE;gBAC3D,MAAM,sBAAsB,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC;gBACnE,OAAO;aACV;YAED,eAAM,CAAC,IAAI,CAAC,qGAAqG,CAAC,CAAC;QACvH,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
|
24
24
|
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
25
25
|
import { Logger } from '../../utils/Logger';
|
|
26
26
|
import CheReporter from '../../driver/CheReporter';
|
|
27
|
-
import {
|
|
27
|
+
import { PreferencesHandler } from '../../utils/PreferencesHandler';
|
|
28
28
|
|
|
29
29
|
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
30
30
|
const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
|
|
@@ -35,12 +35,12 @@ const topMenu: TopMenu = e2eContainer.get(CLASSES.TopMenu);
|
|
|
35
35
|
const debugView: DebugView = e2eContainer.get(CLASSES.DebugView);
|
|
36
36
|
const terminal: Terminal = e2eContainer.get(CLASSES.Terminal);
|
|
37
37
|
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
38
|
-
const
|
|
38
|
+
const preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
|
|
39
39
|
|
|
40
|
-
const devfileUrl: string = 'https://
|
|
40
|
+
const devfileUrl: string = 'https://github.com/che-samples/web-nodejs-sample/tree/typescript-plugin';
|
|
41
41
|
const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
|
|
42
42
|
const codeNavigationClassName: string = 'OpenDefinition.ts';
|
|
43
|
-
const projectName: string = 'nodejs-
|
|
43
|
+
const projectName: string = 'web-nodejs-sample';
|
|
44
44
|
const subRootFolder: string = 'app';
|
|
45
45
|
const sampleBodyLocator: By = By.xpath(`//body[text()='Hello World!']`);
|
|
46
46
|
|
|
@@ -48,7 +48,7 @@ const fileFolderPath: string = `${projectName}`;
|
|
|
48
48
|
const debugFileFolderPath: string = `${projectName}/app`;
|
|
49
49
|
const debugFile: string = 'app.js';
|
|
50
50
|
const tabTitle: string = 'typescript-node-debug.ts';
|
|
51
|
-
let workspaceName: string;
|
|
51
|
+
let workspaceName: string = 'typescript-plugin';
|
|
52
52
|
|
|
53
53
|
suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
54
54
|
suite('Create workspace', async () => {
|
|
@@ -57,15 +57,13 @@ suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
test('Wait until created workspace is started', async () => {
|
|
60
|
-
await ide.waitAndSwitchToIdeFrame();
|
|
61
|
-
workspaceName = await workspaceNameHandler.getNameFromUrl();
|
|
62
60
|
CheReporter.registerRunningWorkspace(workspaceName);
|
|
63
61
|
|
|
64
62
|
await ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
65
|
-
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60_000);
|
|
66
|
-
|
|
67
63
|
await projectTree.openProjectTreeContainer();
|
|
68
64
|
await projectTree.waitProjectImported(projectName, subRootFolder);
|
|
65
|
+
|
|
66
|
+
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
|
|
69
67
|
});
|
|
70
68
|
});
|
|
71
69
|
|
|
@@ -106,15 +104,15 @@ suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
|
106
104
|
let currentWindow: string = '';
|
|
107
105
|
let applicationPreviewWindow: string = '';
|
|
108
106
|
|
|
109
|
-
test('
|
|
110
|
-
await topMenu.runTask('run the web app (debugging enabled), Global');
|
|
111
|
-
await ide.waitNotification('Process nodejs is now listening on port 3000.');
|
|
112
|
-
|
|
107
|
+
test('Open application in the new editor window', async () => {
|
|
113
108
|
currentWindow = await browserTabsUtil.getCurrentWindowHandle();
|
|
114
|
-
});
|
|
115
109
|
|
|
116
|
-
|
|
117
|
-
await ide.
|
|
110
|
+
await topMenu.runTask('run-the-web-app, Global');
|
|
111
|
+
await ide.waitNotification('A new process is now listening on port 3000', TimeoutConstants.TS_DEBUGGER_CONNECTION_TIMEOUT);
|
|
112
|
+
await ide.clickOnNotificationButton('A new process is now listening on port 3000', 'yes');
|
|
113
|
+
|
|
114
|
+
await ide.waitNotification('Redirect is now enabled on port 3000.', TimeoutConstants.TS_DEBUGGER_CONNECTION_TIMEOUT);
|
|
115
|
+
await ide.clickOnNotificationButton('Redirect is now enabled on port 3000.', 'Open In New Tab');
|
|
118
116
|
await browserTabsUtil.waitAndSwitchToAnotherWindow(currentWindow, 60_000);
|
|
119
117
|
await browserTabsUtil.waitContentAvailableInTheNewTab(sampleBodyLocator, 60_000);
|
|
120
118
|
|
|
@@ -123,7 +121,6 @@ suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
|
123
121
|
|
|
124
122
|
test('Switch back to the IDE window', async () => {
|
|
125
123
|
await browserTabsUtil.switchToWindow(currentWindow);
|
|
126
|
-
await ide.waitAndSwitchToIdeFrame(60_000);
|
|
127
124
|
});
|
|
128
125
|
|
|
129
126
|
test('Activate breakpoint', async () => {
|
|
@@ -135,12 +132,8 @@ suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
|
135
132
|
await topMenu.selectOption('View', 'Debug');
|
|
136
133
|
await ide.waitLeftToolbarButton(LeftToolbarButton.Debug);
|
|
137
134
|
|
|
138
|
-
// workaround for the issue: https://github.com/eclipse/che/issues/20067
|
|
139
|
-
await debugView.clickOnDebugConfigurationDropDown();
|
|
140
|
-
await debugView.clickOnDebugConfigurationItem('Add Configuration...');
|
|
141
|
-
|
|
142
135
|
await debugView.clickOnDebugConfigurationDropDown();
|
|
143
|
-
await debugView.clickOnDebugConfigurationItem('Attach
|
|
136
|
+
await debugView.clickOnDebugConfigurationItem('Attach (web-nodejs-sample)');
|
|
144
137
|
await debugView.clickOnRunDebugButton();
|
|
145
138
|
});
|
|
146
139
|
|
|
@@ -160,7 +153,6 @@ suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
|
160
153
|
|
|
161
154
|
test('Check breakpoint stopped', async () => {
|
|
162
155
|
await browserTabsUtil.switchToWindow(currentWindow);
|
|
163
|
-
await ide.waitAndSwitchToIdeFrame(60000);
|
|
164
156
|
|
|
165
157
|
await editor.waitStoppedDebugBreakpoint(debugFile, 19, 60_000);
|
|
166
158
|
});
|
|
@@ -14,31 +14,29 @@ import { CLASSES } from '../../inversify.types';
|
|
|
14
14
|
import { Ide } from '../../pageobjects/ide/Ide';
|
|
15
15
|
import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
|
|
16
16
|
import { Editor } from '../../pageobjects/ide/Editor';
|
|
17
|
-
import { PreferencesHandler } from '../../utils/PreferencesHandler';
|
|
18
17
|
import { TestConstants } from '../../TestConstants';
|
|
19
18
|
import { TimeoutConstants } from '../../TimeoutConstants';
|
|
20
|
-
import { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
|
|
21
19
|
import { Logger } from '../../utils/Logger';
|
|
22
20
|
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
23
21
|
import CheReporter from '../../driver/CheReporter';
|
|
24
22
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
23
|
+
import { PreferencesHandler } from '../../utils/PreferencesHandler';
|
|
25
24
|
|
|
26
25
|
const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
27
26
|
const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
|
|
28
27
|
const editor: Editor = e2eContainer.get(CLASSES.Editor);
|
|
29
28
|
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
30
|
-
const preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
|
|
31
29
|
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
32
|
-
const
|
|
30
|
+
const preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
|
|
33
31
|
|
|
34
|
-
const devfileUrl: string = 'https://
|
|
32
|
+
const devfileUrl: string = 'https://github.com/che-samples/web-nodejs-sample/tree/yaml-plugin';
|
|
35
33
|
const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
|
|
36
|
-
const projectName: string = 'nodejs-
|
|
34
|
+
const projectName: string = 'web-nodejs-sample';
|
|
37
35
|
const pathToFile: string = `${projectName}`;
|
|
38
36
|
const yamlFileName: string = 'routes.yaml';
|
|
39
37
|
const yamlSchema = { 'yaml-schema.json': '*.yaml' };
|
|
40
38
|
|
|
41
|
-
let workspaceName: string = '';
|
|
39
|
+
let workspaceName: string = 'yaml-plugin';
|
|
42
40
|
|
|
43
41
|
suite('The "VscodeYamlPlugin" userstory', async () => {
|
|
44
42
|
suite('Create workspace', async () => {
|
|
@@ -47,12 +45,9 @@ suite('The "VscodeYamlPlugin" userstory', async () => {
|
|
|
47
45
|
});
|
|
48
46
|
|
|
49
47
|
test('Wait until created workspace is started', async () => {
|
|
50
|
-
await ide.waitAndSwitchToIdeFrame();
|
|
51
|
-
workspaceName = await workspaceNameHandler.getNameFromUrl();
|
|
52
48
|
CheReporter.registerRunningWorkspace(workspaceName);
|
|
53
49
|
|
|
54
50
|
await ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
55
|
-
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60_000);
|
|
56
51
|
});
|
|
57
52
|
});
|
|
58
53
|
|
|
@@ -60,29 +55,27 @@ suite('The "VscodeYamlPlugin" userstory', async () => {
|
|
|
60
55
|
test('Wait until project is imported', async () => {
|
|
61
56
|
await projectTree.openProjectTreeContainer();
|
|
62
57
|
await projectTree.waitProjectImported(projectName, 'app');
|
|
58
|
+
|
|
59
|
+
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
|
|
63
60
|
});
|
|
64
61
|
});
|
|
65
62
|
|
|
66
63
|
suite('Check the "vscode-yaml" plugin', async () => {
|
|
67
|
-
test('Set the yaml schema path', async () => {
|
|
68
|
-
await preferencesHandler.setPreferenceUsingUI('yaml.schemas', yamlSchema);
|
|
69
|
-
});
|
|
70
|
-
|
|
71
64
|
test('Check autocomplete', async () => {
|
|
72
65
|
await projectTree.expandPathAndOpenFile(pathToFile, yamlFileName);
|
|
73
|
-
await editor.waitSuggestion(yamlFileName, '
|
|
66
|
+
await editor.waitSuggestion(yamlFileName, 'for', 60000, 18, 5);
|
|
74
67
|
});
|
|
75
68
|
|
|
76
69
|
test('Check error appearance', async () => {
|
|
77
70
|
await projectTree.expandPathAndOpenFile(pathToFile, yamlFileName);
|
|
78
71
|
|
|
79
|
-
await editor.type(yamlFileName, Key.SPACE,
|
|
80
|
-
await editor.waitErrorInLine(
|
|
72
|
+
await editor.type(yamlFileName, Key.SPACE, 20);
|
|
73
|
+
await editor.waitErrorInLine(20, yamlFileName);
|
|
81
74
|
});
|
|
82
75
|
|
|
83
76
|
test('Check error disappearance', async () => {
|
|
84
77
|
await editor.performKeyCombination(yamlFileName, Key.BACK_SPACE);
|
|
85
|
-
await editor.waitErrorInLineDisappearance(
|
|
78
|
+
await editor.waitErrorInLineDisappearance(20, yamlFileName);
|
|
86
79
|
});
|
|
87
80
|
|
|
88
81
|
test('To unformat the "yaml" file', async () => {
|