@eclipse-che/che-e2e 7.46.1-dev-5e33fd3 → 7.48.0-dev-29d4f0d
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/driver/CheReporter.js +5 -2
- package/dist/driver/CheReporter.js.map +1 -1
- package/dist/pageobjects/ide/ProjectTree.js +6 -12
- package/dist/pageobjects/ide/ProjectTree.js.map +1 -1
- package/dist/tests/devfiles/CSlashCPlusPlus.spec.js +10 -2
- package/dist/tests/devfiles/CSlashCPlusPlus.spec.js.map +1 -1
- package/dist/tests/devfiles/DevfileSmoke.spec.js +10 -2
- package/dist/tests/devfiles/DevfileSmoke.spec.js.map +1 -1
- package/dist/tests/devfiles/DotNetCore.spec.js +10 -2
- package/dist/tests/devfiles/DotNetCore.spec.js.map +1 -1
- package/dist/tests/devfiles/Go.spec.js +10 -2
- package/dist/tests/devfiles/Go.spec.js.map +1 -1
- package/dist/tests/devfiles/JavaMaven.spec.js +10 -2
- package/dist/tests/devfiles/JavaMaven.spec.js.map +1 -1
- package/dist/tests/devfiles/JavaSpringBoot.spec.js +10 -2
- package/dist/tests/devfiles/JavaSpringBoot.spec.js.map +1 -1
- package/dist/tests/devfiles/JavaVertx.spec.js +10 -2
- package/dist/tests/devfiles/JavaVertx.spec.js.map +1 -1
- package/dist/tests/devfiles/NodeJS.spec.js +10 -2
- package/dist/tests/devfiles/NodeJS.spec.js.map +1 -1
- package/dist/tests/devfiles/PHPSimple.spec.js +10 -2
- package/dist/tests/devfiles/PHPSimple.spec.js.map +1 -1
- package/dist/tests/devfiles/Python.spec.js +10 -2
- package/dist/tests/devfiles/Python.spec.js.map +1 -1
- package/dist/tests/devfiles/PythonDjango.spec.js +10 -2
- package/dist/tests/devfiles/PythonDjango.spec.js.map +1 -1
- package/dist/tests/devfiles/Quarkus.spec.js +10 -2
- package/dist/tests/devfiles/Quarkus.spec.js.map +1 -1
- package/dist/tests/devfiles/Scala.spec.js +10 -2
- package/dist/tests/devfiles/Scala.spec.js.map +1 -1
- package/dist/tests/e2e/FactoryUrl.spec.js +9 -4
- package/dist/tests/e2e/FactoryUrl.spec.js.map +1 -1
- package/dist/tests/e2e/GitPublishBranch.spec.js +5 -2
- package/dist/tests/e2e/GitPublishBranch.spec.js.map +1 -1
- package/dist/tests/e2e/GitSelfSignCert.spec.js +0 -2
- package/dist/tests/e2e/GitSelfSignCert.spec.js.map +1 -1
- package/dist/tests/e2e/GitSsh.spec.js +6 -3
- package/dist/tests/e2e/GitSsh.spec.js.map +1 -1
- package/dist/tests/e2e/OpenshiftConnector.spec.js +5 -2
- package/dist/tests/e2e/OpenshiftConnector.spec.js.map +1 -1
- package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js +7 -3
- package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +1 -1
- package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js +7 -3
- package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +1 -1
- package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js +7 -3
- package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +1 -1
- package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js +2 -2
- package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js.map +1 -1
- package/dist/tests/e2e_happy_path/HappyPath.spec.js +13 -13
- package/dist/tests/e2e_happy_path/HappyPath.spec.js.map +1 -1
- package/dist/tests/intelij/IntelijOpenWorkspace.spec.js +6 -2
- package/dist/tests/intelij/IntelijOpenWorkspace.spec.js.map +1 -1
- package/dist/tests/load_test/LoadTest.spec.js +5 -2
- package/dist/tests/load_test/LoadTest.spec.js.map +1 -1
- package/dist/tests/login/LinkCheAndOcpUsers.spec.js +2 -2
- package/dist/tests/login/LinkCheAndOcpUsers.spec.js.map +1 -1
- package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js +9 -4
- package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/InstallPluginUsingUI.spec.js +10 -4
- package/dist/tests/plugins/InstallPluginUsingUI.spec.js.map +1 -1
- package/dist/tests/plugins/JavaPlugin.spec.js +8 -4
- package/dist/tests/plugins/JavaPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/PhpPlugin.spec.js +10 -12
- package/dist/tests/plugins/PhpPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/PythonPlugin.spec.js +8 -4
- package/dist/tests/plugins/PythonPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/TypescriptPlugin.spec.js +8 -4
- package/dist/tests/plugins/TypescriptPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js +10 -3
- package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js +10 -3
- package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/VscodeValePlugin.spec.js +10 -3
- package/dist/tests/plugins/VscodeValePlugin.spec.js.map +1 -1
- package/dist/tests/plugins/VscodeXmlPlugin.spec.js +14 -15
- package/dist/tests/plugins/VscodeXmlPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/VscodeYamlPlugin.spec.js +8 -4
- package/dist/tests/plugins/VscodeYamlPlugin.spec.js.map +1 -1
- package/dist/testsLibrary/CodeExecutionTests.js +2 -14
- package/dist/testsLibrary/CodeExecutionTests.js.map +1 -1
- package/dist/testsLibrary/WorkspaceHandlingTests.js +11 -68
- package/dist/testsLibrary/WorkspaceHandlingTests.js.map +1 -1
- package/driver/CheReporter.ts +8 -2
- package/package.json +2 -2
- package/pageobjects/ide/ProjectTree.ts +8 -13
- package/tests/devfiles/CSlashCPlusPlus.spec.ts +9 -2
- package/tests/devfiles/DevfileSmoke.spec.ts +9 -2
- package/tests/devfiles/DotNetCore.spec.ts +9 -2
- package/tests/devfiles/Go.spec.ts +7 -2
- package/tests/devfiles/JavaMaven.spec.ts +9 -2
- package/tests/devfiles/JavaSpringBoot.spec.ts +9 -2
- package/tests/devfiles/JavaVertx.spec.ts +9 -2
- package/tests/devfiles/NodeJS.spec.ts +9 -2
- package/tests/devfiles/PHPSimple.spec.ts +9 -2
- package/tests/devfiles/Python.spec.ts +9 -2
- package/tests/devfiles/PythonDjango.spec.ts +9 -2
- package/tests/devfiles/Quarkus.spec.ts +9 -2
- package/tests/devfiles/Scala.spec.ts +10 -2
- package/tests/e2e/FactoryUrl.spec.ts +8 -4
- package/tests/e2e/GitPublishBranch.spec.ts +2 -2
- package/tests/e2e/GitSelfSignCert.spec.ts +65 -66
- package/tests/e2e/GitSsh.spec.ts +3 -3
- package/tests/e2e/OpenshiftConnector.spec.ts +2 -2
- package/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +5 -2
- package/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.ts +5 -2
- package/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.ts +5 -2
- package/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.ts +2 -2
- package/tests/e2e_happy_path/HappyPath.spec.ts +10 -13
- package/tests/intelij/IntelijOpenWorkspace.spec.ts +4 -2
- package/tests/load_test/LoadTest.spec.ts +2 -2
- package/tests/login/LinkCheAndOcpUsers.spec.ts +3 -4
- package/tests/plugins/GitHubPullRequestPlugin.spec.ts +7 -4
- package/tests/plugins/InstallPluginUsingUI.spec.ts +9 -4
- package/tests/plugins/JavaPlugin.spec.ts +6 -4
- package/tests/plugins/PhpPlugin.spec.ts +9 -3
- package/tests/plugins/PythonPlugin.spec.ts +6 -4
- package/tests/plugins/TypescriptPlugin.spec.ts +6 -4
- package/tests/plugins/VscodeKubernetesPlugin.spec.ts +9 -3
- package/tests/plugins/VscodeShellcheckPlugin.spec.ts +9 -3
- package/tests/plugins/VscodeValePlugin.spec.ts +9 -3
- package/tests/plugins/VscodeXmlPlugin.spec.ts +14 -16
- package/tests/plugins/VscodeYamlPlugin.spec.ts +7 -4
- package/testsLibrary/CodeExecutionTests.ts +1 -9
- package/testsLibrary/WorkspaceHandlingTests.ts +9 -66
|
@@ -24,7 +24,7 @@ import { TimeoutConstants } from '../../TimeoutConstants';
|
|
|
24
24
|
import { TopMenu } from '../../pageobjects/ide/TopMenu';
|
|
25
25
|
import * as fs from 'fs';
|
|
26
26
|
import axios from 'axios';
|
|
27
|
-
import
|
|
27
|
+
import CheReporter from '../../driver/CheReporter';
|
|
28
28
|
|
|
29
29
|
const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
30
30
|
const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
|
|
@@ -65,7 +65,7 @@ suite('Workspace creation via factory url', async () => {
|
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
test('Register running workspace', async () => {
|
|
68
|
-
|
|
68
|
+
CheReporter.registerRunningWorkspace(projectName);
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
test('Register running workspace', async () => {
|
|
@@ -28,7 +28,7 @@ import { TimeoutConstants } from '../../TimeoutConstants';
|
|
|
28
28
|
import { Logger } from '../../utils/Logger';
|
|
29
29
|
import { RightToolBar } from '../../pageobjects/ide/RightToolBar';
|
|
30
30
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
31
|
-
import
|
|
31
|
+
import CheReporter from '../../driver/CheReporter';
|
|
32
32
|
|
|
33
33
|
const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
|
|
34
34
|
const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
@@ -75,11 +75,11 @@ suite('Validation of workspace start', async () => {
|
|
|
75
75
|
});
|
|
76
76
|
|
|
77
77
|
test('Register running workspace', async () => {
|
|
78
|
-
|
|
78
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
79
79
|
});
|
|
80
80
|
|
|
81
81
|
test('Wait for workspace readiness', async () => {
|
|
82
|
-
|
|
82
|
+
await ide.waitAndSwitchToIdeFrame();
|
|
83
83
|
await ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
84
84
|
await projectTree.openProjectTreeContainer();
|
|
85
85
|
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60_000);
|
|
@@ -126,7 +126,7 @@ suite('Language server validation', async () => {
|
|
|
126
126
|
} catch (err) {
|
|
127
127
|
Logger.debug('Workaround for the https://github.com/eclipse/che/issues/18974.');
|
|
128
128
|
await browserTabsUtil.refreshPage();
|
|
129
|
-
|
|
129
|
+
await ide.waitAndSwitchToIdeFrame();
|
|
130
130
|
await ide.waitIde();
|
|
131
131
|
await editor.waitErrorInLine(30, javaFileName, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT * 2);
|
|
132
132
|
}
|
|
@@ -240,11 +240,10 @@ suite('Validation of debug functionality', async () => {
|
|
|
240
240
|
});
|
|
241
241
|
|
|
242
242
|
test('Check content of the launched application', async () => {
|
|
243
|
-
await previewWidget.waitAndSwitchToWidgetFrame();
|
|
243
|
+
await previewWidget.waitAndSwitchToWidgetFrame();
|
|
244
244
|
await previewWidget.waitAndClick(SpringAppLocators.springHomeButtonLocator);
|
|
245
245
|
await driverHelper.getDriver().switchTo().defaultContent();
|
|
246
|
-
|
|
247
|
-
await ide.waitIde();
|
|
246
|
+
await ide.waitAndSwitchToIdeFrame();
|
|
248
247
|
});
|
|
249
248
|
|
|
250
249
|
test('Open debug view', async () => {
|
|
@@ -281,7 +280,7 @@ suite('Validation of debug functionality', async () => {
|
|
|
281
280
|
});
|
|
282
281
|
|
|
283
282
|
async function checkErrorMessageInApplicationController() {
|
|
284
|
-
await previewWidget.waitAndSwitchToWidgetFrame();
|
|
283
|
+
await previewWidget.waitAndSwitchToWidgetFrame();
|
|
285
284
|
await previewWidget.waitAndClick(SpringAppLocators.springMenuButtonLocator);
|
|
286
285
|
await previewWidget.waitAndClick(SpringAppLocators.springErrorButtonLocator);
|
|
287
286
|
|
|
@@ -290,17 +289,15 @@ async function checkErrorMessageInApplicationController() {
|
|
|
290
289
|
} catch (err) {
|
|
291
290
|
|
|
292
291
|
await driverHelper.getDriver().switchTo().defaultContent();
|
|
293
|
-
|
|
294
|
-
await ide.waitIde();
|
|
292
|
+
await ide.waitAndSwitchToIdeFrame();
|
|
295
293
|
|
|
296
|
-
await previewWidget.waitAndSwitchToWidgetFrame();
|
|
294
|
+
await previewWidget.waitAndSwitchToWidgetFrame();
|
|
297
295
|
await previewWidget.waitVisibility(SpringAppLocators.springErrorMessageLocator, 15_000);
|
|
298
296
|
}
|
|
299
297
|
|
|
300
298
|
|
|
301
299
|
await driverHelper.getDriver().switchTo().defaultContent();
|
|
302
|
-
|
|
303
|
-
await ide.waitIde();
|
|
300
|
+
await ide.waitAndSwitchToIdeFrame();
|
|
304
301
|
}
|
|
305
302
|
|
|
306
303
|
async function checkJavaPathCompletion() {
|
|
@@ -14,6 +14,8 @@ import { CLASSES } from '../../inversify.types';
|
|
|
14
14
|
import { Ide } from '../../pageobjects/ide/Ide';
|
|
15
15
|
import { DriverHelper } from '../../utils/DriverHelper';
|
|
16
16
|
import { TestConstants } from '../../TestConstants';
|
|
17
|
+
import { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
|
|
18
|
+
import CheReporter from '../../driver/CheReporter';
|
|
17
19
|
import { Dashboard } from '../../pageobjects/dashboard/Dashboard';
|
|
18
20
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
19
21
|
|
|
@@ -21,6 +23,7 @@ const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
|
21
23
|
const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
|
|
22
24
|
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
23
25
|
const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
|
|
26
|
+
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
|
|
24
27
|
|
|
25
28
|
const dashboardUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}`;
|
|
26
29
|
|
|
@@ -32,8 +35,7 @@ suite('The "IntelijOpenWorkspace" userstory', async () => {
|
|
|
32
35
|
|
|
33
36
|
test('Wait workspace', async () => {
|
|
34
37
|
await dashboard.waitWorkspaceStartingPage();
|
|
35
|
-
|
|
36
|
-
/* CheReporter.registerRunningWorkspace(await workspaceNameHandler.getNameFromUrl()); */
|
|
38
|
+
CheReporter.registerRunningWorkspace(await workspaceNameHandler.getNameFromUrl());
|
|
37
39
|
await ide.waitAndSwitchToIdeFrame();
|
|
38
40
|
await waitIntelijWorkspace();
|
|
39
41
|
});
|
|
@@ -15,8 +15,8 @@ import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
|
|
|
15
15
|
import { ICheLoginPage } from '../../pageobjects/login/ICheLoginPage';
|
|
16
16
|
import { TestWorkspaceUtil } from '../../utils/workspace/TestWorkspaceUtil';
|
|
17
17
|
import { TestConstants, WorkspaceNameHandler } from '../..';
|
|
18
|
+
import CheReporter from '../../driver/CheReporter';
|
|
18
19
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
19
|
-
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
20
20
|
|
|
21
21
|
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
22
22
|
const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
@@ -44,7 +44,7 @@ suite('Load test suite', async () => {
|
|
|
44
44
|
});
|
|
45
45
|
|
|
46
46
|
test('Wait loading workspace and get time', async () => {
|
|
47
|
-
|
|
47
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
48
48
|
await ide.waitWorkspaceAndIde();
|
|
49
49
|
await projectTree.openProjectTreeContainer();
|
|
50
50
|
});
|
|
@@ -8,15 +8,14 @@
|
|
|
8
8
|
* SPDX-License-Identifier: EPL-2.0
|
|
9
9
|
**********************************************************************/
|
|
10
10
|
|
|
11
|
-
import { TestConstants, CLASSES, TYPES } from '../..';
|
|
11
|
+
import { TestConstants, DriverHelper, CLASSES, TYPES } from '../..';
|
|
12
12
|
import { e2eContainer } from '../../inversify.config';
|
|
13
13
|
import { IOcpLoginPage } from '../../pageobjects/login/IOcpLoginPage';
|
|
14
14
|
import { UpdateAccountInformationPage } from '../../pageobjects/login/UpdateAccountInformationPage';
|
|
15
15
|
import { TimeoutConstants } from '../../TimeoutConstants';
|
|
16
16
|
import { Dashboard } from '../../pageobjects/dashboard/Dashboard';
|
|
17
|
-
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
18
17
|
|
|
19
|
-
const
|
|
18
|
+
const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
|
|
20
19
|
const ocpLogin: IOcpLoginPage = e2eContainer.get<IOcpLoginPage>(TYPES.OcpLogin);
|
|
21
20
|
const updateAccountInformation: UpdateAccountInformationPage = e2eContainer.get(CLASSES.UpdateAccountInformationPage);
|
|
22
21
|
const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
|
|
@@ -25,7 +24,7 @@ const commonTimeout: number = TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT * 2
|
|
|
25
24
|
|
|
26
25
|
suite('Link users', async () => {
|
|
27
26
|
test('Login to OCP', async () => {
|
|
28
|
-
await
|
|
27
|
+
await driverHelper.navigateToUrl(TestConstants.TS_SELENIUM_BASE_URL);
|
|
29
28
|
|
|
30
29
|
await ocpLogin.login();
|
|
31
30
|
await updateAccountInformation.clickToAllowSelectedPermissionsButton(commonTimeout);
|
|
@@ -24,6 +24,7 @@ import { GitPlugin } from '../../pageobjects/ide/plugins/GitPlugin';
|
|
|
24
24
|
import { TopMenu } from '../../pageobjects/ide/TopMenu';
|
|
25
25
|
import { QuickOpenContainer } from '../../pageobjects/ide/QuickOpenContainer';
|
|
26
26
|
import { Editor } from '../../pageobjects/ide/Editor';
|
|
27
|
+
import CheReporter from '../../driver/CheReporter';
|
|
27
28
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
28
29
|
import { Key } from 'selenium-webdriver';
|
|
29
30
|
|
|
@@ -39,7 +40,6 @@ const topMenu: TopMenu = e2eContainer.get(CLASSES.TopMenu);
|
|
|
39
40
|
const quickOpenContainer: QuickOpenContainer = e2eContainer.get(CLASSES.QuickOpenContainer);
|
|
40
41
|
const editor: Editor = e2eContainer.get(CLASSES.Editor);
|
|
41
42
|
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
|
|
42
|
-
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
43
43
|
|
|
44
44
|
const devfileUrl: string = `https://raw.githubusercontent.com/eclipse/che/main/tests/e2e/files/devfiles/plugins/GitHubPullRequestPlugin.yaml`;
|
|
45
45
|
const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
|
|
@@ -50,6 +50,7 @@ const changedFile: string = 'README.md';
|
|
|
50
50
|
// added call back url, but needs to be re-verified
|
|
51
51
|
const identityCallbackUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/api/oauth/callback`;
|
|
52
52
|
const currentDate: string = Date.now().toString();
|
|
53
|
+
let workspaceName: string;
|
|
53
54
|
|
|
54
55
|
suite(`The 'GitHubPullRequestPlugin' test`, async () => {
|
|
55
56
|
suite('Setup github', async () => {
|
|
@@ -76,9 +77,11 @@ suite(`The 'GitHubPullRequestPlugin' test`, async () => {
|
|
|
76
77
|
await browserTabsUtil.navigateTo(factoryUrl);
|
|
77
78
|
});
|
|
78
79
|
|
|
79
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
80
|
-
|
|
81
80
|
test('Wait until created workspace is started', async () => {
|
|
81
|
+
await ide.waitAndSwitchToIdeFrame();
|
|
82
|
+
workspaceName = await workspaceNameHandler.getNameFromUrl();
|
|
83
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
84
|
+
|
|
82
85
|
await ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
83
86
|
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60_000);
|
|
84
87
|
|
|
@@ -137,7 +140,7 @@ suite(`The 'GitHubPullRequestPlugin' test`, async () => {
|
|
|
137
140
|
suite('Stopping and deleting the workspace', async () => {
|
|
138
141
|
test(`Stop and remove workspace`, async () => {
|
|
139
142
|
if (TestConstants.TS_DELETE_PLUGINS_TEST_WORKSPACE === 'true') {
|
|
140
|
-
await workspaceHandling.stopAndRemoveWorkspace(
|
|
143
|
+
await workspaceHandling.stopAndRemoveWorkspace(workspaceName);
|
|
141
144
|
return;
|
|
142
145
|
}
|
|
143
146
|
|
|
@@ -18,6 +18,8 @@ import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
|
18
18
|
import { PluginsView } from '../../pageobjects/ide/plugins/PluginsView';
|
|
19
19
|
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
20
20
|
import { Logger } from '../../utils/Logger';
|
|
21
|
+
import { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
|
|
22
|
+
import CheReporter from '../../driver/CheReporter';
|
|
21
23
|
|
|
22
24
|
const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
23
25
|
const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
|
|
@@ -25,12 +27,13 @@ const pluginsView: PluginsView = e2eContainer.get(CLASSES.PluginsView);
|
|
|
25
27
|
|
|
26
28
|
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
27
29
|
const workspaceHandling: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
28
|
-
const
|
|
30
|
+
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
|
|
29
31
|
|
|
30
32
|
const devfileUrl: string = 'https://raw.githubusercontent.com/eclipse/che/main/tests/e2e/files/devfiles/plugins/InstallPluginUsingUI.yaml';
|
|
31
33
|
const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
|
|
32
34
|
|
|
33
35
|
const pluginTitle: string = 'java11';
|
|
36
|
+
let workspaceName: string;
|
|
34
37
|
|
|
35
38
|
suite(`The 'InstallPluginUsingUI' test`, async () => {
|
|
36
39
|
suite('Create workspace', async () => {
|
|
@@ -38,9 +41,11 @@ suite(`The 'InstallPluginUsingUI' test`, async () => {
|
|
|
38
41
|
await browserTabsUtil.navigateTo(factoryUrl);
|
|
39
42
|
});
|
|
40
43
|
|
|
41
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
42
|
-
|
|
43
44
|
test('Wait until created workspace is started', async () => {
|
|
45
|
+
await ide.waitAndSwitchToIdeFrame();
|
|
46
|
+
workspaceName = await workspaceNameHandler.getNameFromUrl();
|
|
47
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
48
|
+
|
|
44
49
|
await ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
45
50
|
|
|
46
51
|
await projectTree.openProjectTreeContainer();
|
|
@@ -67,7 +72,7 @@ suite(`The 'InstallPluginUsingUI' test`, async () => {
|
|
|
67
72
|
suite('Stopping and deleting the workspace', async () => {
|
|
68
73
|
test(`Stop and remove workspace`, async () => {
|
|
69
74
|
if (TestConstants.TS_DELETE_PLUGINS_TEST_WORKSPACE === 'true') {
|
|
70
|
-
await workspaceHandling.stopAndRemoveWorkspace(
|
|
75
|
+
await workspaceHandling.stopAndRemoveWorkspace(workspaceName);
|
|
71
76
|
return;
|
|
72
77
|
}
|
|
73
78
|
|
|
@@ -18,6 +18,7 @@ import { Editor } from '../../pageobjects/ide/Editor';
|
|
|
18
18
|
import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
|
|
19
19
|
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
20
20
|
import { Logger } from '../../utils/Logger';
|
|
21
|
+
import CheReporter from '../../driver/CheReporter';
|
|
21
22
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
22
23
|
import { PreferencesHandler } from '../../utils/PreferencesHandler';
|
|
23
24
|
|
|
@@ -36,6 +37,7 @@ const subRootFolder: string = 'backend';
|
|
|
36
37
|
|
|
37
38
|
const fileFolderPath: string = `${projectName}/backend/src/main/java/cloudcode/guestbook/backend`;
|
|
38
39
|
const tabTitle: string = 'GuestBookEntry.java';
|
|
40
|
+
let workspaceName: string = 'java-guestbook';
|
|
39
41
|
|
|
40
42
|
suite(`The 'JavaPlugin' test`, async () => {
|
|
41
43
|
suite('Create workspace', async () => {
|
|
@@ -43,11 +45,11 @@ suite(`The 'JavaPlugin' test`, async () => {
|
|
|
43
45
|
await browserTabsUtil.navigateTo(factoryUrl);
|
|
44
46
|
});
|
|
45
47
|
|
|
46
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
47
|
-
|
|
48
48
|
projectAndFileTests.waitWorkspaceReadiness(projectName, subRootFolder);
|
|
49
49
|
|
|
50
|
-
test('
|
|
50
|
+
test('Wait until created workspace is started', async () => {
|
|
51
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
52
|
+
|
|
51
53
|
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
|
|
52
54
|
});
|
|
53
55
|
});
|
|
@@ -89,7 +91,7 @@ suite(`The 'JavaPlugin' test`, async () => {
|
|
|
89
91
|
suite('Stopping and deleting the workspace', async () => {
|
|
90
92
|
test('Stop and remove workspace', async () => {
|
|
91
93
|
if (TestConstants.TS_DELETE_PLUGINS_TEST_WORKSPACE === 'true') {
|
|
92
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(
|
|
94
|
+
await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
|
|
93
95
|
return;
|
|
94
96
|
}
|
|
95
97
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* SPDX-License-Identifier: EPL-2.0
|
|
9
9
|
**********************************************************************/
|
|
10
|
+
import { WorkspaceNameHandler } from '../..';
|
|
10
11
|
import 'reflect-metadata';
|
|
11
12
|
import { e2eContainer } from '../../inversify.config';
|
|
12
13
|
import { CLASSES } from '../../inversify.types';
|
|
@@ -21,6 +22,7 @@ import { DebugView } from '../../pageobjects/ide/DebugView';
|
|
|
21
22
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
22
23
|
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
23
24
|
import { Logger } from '../../utils/Logger';
|
|
25
|
+
import CheReporter from '../../driver/CheReporter';
|
|
24
26
|
|
|
25
27
|
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
26
28
|
const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
@@ -29,6 +31,7 @@ const editor: Editor = e2eContainer.get(CLASSES.Editor);
|
|
|
29
31
|
const topMenu: TopMenu = e2eContainer.get(CLASSES.TopMenu);
|
|
30
32
|
const debugView: DebugView = e2eContainer.get(CLASSES.DebugView);
|
|
31
33
|
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
34
|
+
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
|
|
32
35
|
|
|
33
36
|
const devfileUrl: string = 'https://raw.githubusercontent.com/eclipse/che/main/tests/e2e/files/devfiles/plugins/PhpPluginTest.yaml';
|
|
34
37
|
const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
|
|
@@ -37,6 +40,7 @@ const subRootFolder: string = 'README.md';
|
|
|
37
40
|
|
|
38
41
|
const fileFolderPath: string = `${projectName}`;
|
|
39
42
|
const tabTitle: string = 'index.php';
|
|
43
|
+
let workspaceName: string;
|
|
40
44
|
|
|
41
45
|
suite(`The 'PhpPlugin' tests`, async () => {
|
|
42
46
|
suite('Create workspace', async () => {
|
|
@@ -44,9 +48,11 @@ suite(`The 'PhpPlugin' tests`, async () => {
|
|
|
44
48
|
await browserTabsUtil.navigateTo(factoryUrl);
|
|
45
49
|
});
|
|
46
50
|
|
|
47
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
48
|
-
|
|
49
51
|
test('Wait until created workspace is started', async () => {
|
|
52
|
+
await ide.waitAndSwitchToIdeFrame();
|
|
53
|
+
workspaceName = await workspaceNameHandler.getNameFromUrl();
|
|
54
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
55
|
+
|
|
50
56
|
await ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
51
57
|
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60_000);
|
|
52
58
|
|
|
@@ -105,7 +111,7 @@ suite(`The 'PhpPlugin' tests`, async () => {
|
|
|
105
111
|
suite('Stopping and deleting the workspace', async () => {
|
|
106
112
|
test('Stop and remove workspace', async () => {
|
|
107
113
|
if (TestConstants.TS_DELETE_PLUGINS_TEST_WORKSPACE === 'true') {
|
|
108
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(
|
|
114
|
+
await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
|
|
109
115
|
return;
|
|
110
116
|
}
|
|
111
117
|
|
|
@@ -17,6 +17,7 @@ import { Key } from 'selenium-webdriver';
|
|
|
17
17
|
import { Editor } from '../../pageobjects/ide/Editor';
|
|
18
18
|
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
19
19
|
import { Logger } from '../../utils/Logger';
|
|
20
|
+
import CheReporter from '../../driver/CheReporter';
|
|
20
21
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
21
22
|
import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
|
|
22
23
|
import { PreferencesHandler } from '../../utils/PreferencesHandler';
|
|
@@ -35,6 +36,7 @@ const subRootFolder: string = '.vscode';
|
|
|
35
36
|
|
|
36
37
|
const fileFolderPath: string = `${projectName}`;
|
|
37
38
|
const tabTitle: string = 'hello-world.py';
|
|
39
|
+
let workspaceName: string = 'python-hello-world';
|
|
38
40
|
|
|
39
41
|
suite(`The 'PythonPlugin' test`, async () => {
|
|
40
42
|
suite('Create workspace', async () => {
|
|
@@ -42,11 +44,11 @@ suite(`The 'PythonPlugin' test`, async () => {
|
|
|
42
44
|
await browserTabsUtil.navigateTo(factoryUrl);
|
|
43
45
|
});
|
|
44
46
|
|
|
45
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
46
|
-
|
|
47
47
|
projectAndFileTests.waitWorkspaceReadiness(projectName, subRootFolder);
|
|
48
48
|
|
|
49
|
-
test('
|
|
49
|
+
test('Wait until created workspace is started', async () => {
|
|
50
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
51
|
+
|
|
50
52
|
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
|
|
51
53
|
});
|
|
52
54
|
});
|
|
@@ -76,7 +78,7 @@ suite(`The 'PythonPlugin' test`, async () => {
|
|
|
76
78
|
suite('Stopping and deleting the workspace', async () => {
|
|
77
79
|
test('Stop and remove workspace', async () => {
|
|
78
80
|
if (TestConstants.TS_DELETE_PLUGINS_TEST_WORKSPACE === 'true') {
|
|
79
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(
|
|
81
|
+
await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
|
|
80
82
|
return;
|
|
81
83
|
}
|
|
82
84
|
|
|
@@ -23,6 +23,7 @@ import { Terminal } from '../../pageobjects/ide/Terminal';
|
|
|
23
23
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
24
24
|
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
25
25
|
import { Logger } from '../../utils/Logger';
|
|
26
|
+
import CheReporter from '../../driver/CheReporter';
|
|
26
27
|
import { PreferencesHandler } from '../../utils/PreferencesHandler';
|
|
27
28
|
import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
|
|
28
29
|
|
|
@@ -48,6 +49,7 @@ const fileFolderPath: string = `${projectName}`;
|
|
|
48
49
|
const debugFileFolderPath: string = `${projectName}/app`;
|
|
49
50
|
const debugFile: string = 'app.js';
|
|
50
51
|
const tabTitle: string = 'typescript-node-debug.ts';
|
|
52
|
+
let workspaceName: string = 'typescript-plugin';
|
|
51
53
|
|
|
52
54
|
suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
53
55
|
suite('Create workspace', async () => {
|
|
@@ -55,11 +57,11 @@ suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
|
55
57
|
await browserTabsUtil.navigateTo(factoryUrl);
|
|
56
58
|
});
|
|
57
59
|
|
|
58
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
59
|
-
|
|
60
60
|
projectAndFileTests.waitWorkspaceReadiness(projectName, subRootFolder);
|
|
61
61
|
|
|
62
|
-
test('
|
|
62
|
+
test('Wait until created workspace is started', async () => {
|
|
63
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
64
|
+
|
|
63
65
|
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
|
|
64
66
|
});
|
|
65
67
|
});
|
|
@@ -158,7 +160,7 @@ suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
|
|
|
158
160
|
suite('Stopping and deleting the workspace', async () => {
|
|
159
161
|
test('Stop and remove workspace', async () => {
|
|
160
162
|
if (TestConstants.TS_DELETE_PLUGINS_TEST_WORKSPACE === 'true') {
|
|
161
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(
|
|
163
|
+
await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
|
|
162
164
|
return;
|
|
163
165
|
}
|
|
164
166
|
|
|
@@ -17,7 +17,9 @@ import { KubernetesPlugin } from '../../pageobjects/ide/plugins/KubernetesPlugin
|
|
|
17
17
|
import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
|
|
18
18
|
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
19
19
|
import { Logger } from '../../utils/Logger';
|
|
20
|
+
import CheReporter from '../../driver/CheReporter';
|
|
20
21
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
22
|
+
import { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
|
|
21
23
|
import { TopMenu } from '../../pageobjects/ide/TopMenu';
|
|
22
24
|
import { QuickOpenContainer } from '../../pageobjects/ide/QuickOpenContainer';
|
|
23
25
|
import { OpenDialogWidget, Buttons } from '../../pageobjects/ide/OpenDialogWidget';
|
|
@@ -27,6 +29,7 @@ const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUti
|
|
|
27
29
|
const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
28
30
|
const kubernetesPlugin: KubernetesPlugin = e2eContainer.get(CLASSES.KubernetesPlugin);
|
|
29
31
|
const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
|
|
32
|
+
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
|
|
30
33
|
const topMenu: TopMenu = e2eContainer.get(CLASSES.TopMenu);
|
|
31
34
|
const quickOpenContainer: QuickOpenContainer = e2eContainer.get(CLASSES.QuickOpenContainer);
|
|
32
35
|
const openDialogWidget: OpenDialogWidget = e2eContainer.get(CLASSES.OpenDialogWidget);
|
|
@@ -35,6 +38,7 @@ const devfileUrl: string = 'https://raw.githubusercontent.com/eclipse/che/main/t
|
|
|
35
38
|
const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
|
|
36
39
|
const sampleName: string = 'nodejs-web-app';
|
|
37
40
|
const subRootFolder: string = 'app';
|
|
41
|
+
let workspaceName: string;
|
|
38
42
|
|
|
39
43
|
suite(`The 'VscodeKubernetesPlugin' test`, async () => {
|
|
40
44
|
suite('Create workspace', async () => {
|
|
@@ -42,9 +46,11 @@ suite(`The 'VscodeKubernetesPlugin' test`, async () => {
|
|
|
42
46
|
await browserTabsUtil.navigateTo(factoryUrl);
|
|
43
47
|
});
|
|
44
48
|
|
|
45
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
46
|
-
|
|
47
49
|
test('Wait until created workspace is started', async () => {
|
|
50
|
+
await ide.waitAndSwitchToIdeFrame();
|
|
51
|
+
workspaceName = await workspaceNameHandler.getNameFromUrl();
|
|
52
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
53
|
+
|
|
48
54
|
await ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
49
55
|
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60_000);
|
|
50
56
|
|
|
@@ -73,7 +79,7 @@ suite(`The 'VscodeKubernetesPlugin' test`, async () => {
|
|
|
73
79
|
suite('Stopping and deleting the workspace', async () => {
|
|
74
80
|
test('Stop and remove workspace', async () => {
|
|
75
81
|
if (TestConstants.TS_DELETE_PLUGINS_TEST_WORKSPACE === 'true') {
|
|
76
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(
|
|
82
|
+
await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
|
|
77
83
|
return;
|
|
78
84
|
}
|
|
79
85
|
|
|
@@ -19,7 +19,9 @@ import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
|
|
|
19
19
|
import { Key } from 'selenium-webdriver';
|
|
20
20
|
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
21
21
|
import { Logger } from '../../utils/Logger';
|
|
22
|
+
import CheReporter from '../../driver/CheReporter';
|
|
22
23
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
24
|
+
import { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
|
|
23
25
|
|
|
24
26
|
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
25
27
|
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
@@ -27,6 +29,7 @@ const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
|
27
29
|
const preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
|
|
28
30
|
const editor: Editor = e2eContainer.get(CLASSES.Editor);
|
|
29
31
|
const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
|
|
32
|
+
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
|
|
30
33
|
|
|
31
34
|
const devfileUrl: string = 'https://raw.githubusercontent.com/eclipse/che/main/tests/e2e/files/devfiles/plugins/VscodeShellcheckPlugin.yaml';
|
|
32
35
|
const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
|
|
@@ -34,6 +37,7 @@ const sampleName: string = 'nodejs-web-app';
|
|
|
34
37
|
const subRootFolder: string = 'app';
|
|
35
38
|
const pathToFile: string = `${sampleName}`;
|
|
36
39
|
const fileName: string = 'test.sh';
|
|
40
|
+
let workspaceName: string;
|
|
37
41
|
|
|
38
42
|
suite(`The 'VscodeShellcheckPlugin' test`, async () => {
|
|
39
43
|
suite('Create workspace', async () => {
|
|
@@ -48,9 +52,11 @@ suite(`The 'VscodeShellcheckPlugin' test`, async () => {
|
|
|
48
52
|
await browserTabsUtil.navigateTo(factoryUrl);
|
|
49
53
|
});
|
|
50
54
|
|
|
51
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
52
|
-
|
|
53
55
|
test('Wait until created workspace is started', async () => {
|
|
56
|
+
await ide.waitAndSwitchToIdeFrame();
|
|
57
|
+
workspaceName = await workspaceNameHandler.getNameFromUrl();
|
|
58
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
59
|
+
|
|
54
60
|
await ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
55
61
|
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60_000);
|
|
56
62
|
|
|
@@ -90,7 +96,7 @@ suite(`The 'VscodeShellcheckPlugin' test`, async () => {
|
|
|
90
96
|
suite('Stopping and deleting the workspace', async () => {
|
|
91
97
|
test('Stop and remove workspace', async () => {
|
|
92
98
|
if (TestConstants.TS_DELETE_PLUGINS_TEST_WORKSPACE === 'true') {
|
|
93
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(
|
|
99
|
+
await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
|
|
94
100
|
return;
|
|
95
101
|
}
|
|
96
102
|
|
|
@@ -16,9 +16,11 @@ import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
|
|
|
16
16
|
import { Editor } from '../../pageobjects/ide/Editor';
|
|
17
17
|
import { TestConstants } from '../../TestConstants';
|
|
18
18
|
import { TimeoutConstants } from '../../TimeoutConstants';
|
|
19
|
+
import { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
|
|
19
20
|
import { Terminal } from '../../pageobjects/ide/Terminal';
|
|
20
21
|
import { Logger } from '../../utils/Logger';
|
|
21
22
|
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
23
|
+
import CheReporter from '../../driver/CheReporter';
|
|
22
24
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
23
25
|
|
|
24
26
|
const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
@@ -27,12 +29,14 @@ const editor: Editor = e2eContainer.get(CLASSES.Editor);
|
|
|
27
29
|
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
28
30
|
const terminal: Terminal = e2eContainer.get(CLASSES.Terminal);
|
|
29
31
|
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
32
|
+
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
|
|
30
33
|
|
|
31
34
|
const devfileUrl: string = 'https://raw.githubusercontent.com/eclipse/che/main/tests/e2e/files/devfiles/plugins/VscodeValePlugin.yaml';
|
|
32
35
|
const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
|
|
33
36
|
const projectName: string = 'che-docs';
|
|
34
37
|
const pathToFile: string = `${projectName}/modules/administration-guide/partials`;
|
|
35
38
|
const docFileName: string = 'assembly_authenticating-users.adoc';
|
|
39
|
+
let workspaceName: string = '';
|
|
36
40
|
|
|
37
41
|
suite('The "VscodeValePlugin" userstory', async () => {
|
|
38
42
|
suite('Create workspace', async () => {
|
|
@@ -40,9 +44,11 @@ suite('The "VscodeValePlugin" userstory', async () => {
|
|
|
40
44
|
await browserTabsUtil.navigateTo(factoryUrl);
|
|
41
45
|
});
|
|
42
46
|
|
|
43
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
44
|
-
|
|
45
47
|
test('Wait until created workspace is started', async () => {
|
|
48
|
+
await ide.waitAndSwitchToIdeFrame();
|
|
49
|
+
workspaceName = await workspaceNameHandler.getNameFromUrl();
|
|
50
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
51
|
+
|
|
46
52
|
await ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
47
53
|
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60_000);
|
|
48
54
|
});
|
|
@@ -75,7 +81,7 @@ suite('The "VscodeValePlugin" userstory', async () => {
|
|
|
75
81
|
suite('Stopping and deleting the workspace', async () => {
|
|
76
82
|
test('Stop and remove workspace', async () => {
|
|
77
83
|
if (TestConstants.TS_DELETE_PLUGINS_TEST_WORKSPACE === 'true') {
|
|
78
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(
|
|
84
|
+
await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
|
|
79
85
|
return;
|
|
80
86
|
}
|
|
81
87
|
|