@eclipse-che/che-e2e 7.50.0-dev-d6432ff → 7.51.0-dev-6c69f4f
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 +2 -1
- package/dist/driver/CheReporter.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/inversify.config.js +2 -0
- package/dist/inversify.config.js.map +1 -1
- package/dist/inversify.types.js +2 -1
- package/dist/inversify.types.js.map +1 -1
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js.map +1 -1
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js.map +1 -1
- package/dist/pageobjects/ide/ProjectTree.js +12 -6
- package/dist/pageobjects/ide/ProjectTree.js.map +1 -1
- package/dist/tests/devfiles/CSlashCPlusPlus.spec.js +3 -4
- package/dist/tests/devfiles/CSlashCPlusPlus.spec.js.map +1 -1
- package/dist/tests/devfiles/DevfileSmoke.spec.js +4 -5
- package/dist/tests/devfiles/DevfileSmoke.spec.js.map +1 -1
- package/dist/tests/devfiles/DotNetCore.spec.js +3 -4
- package/dist/tests/devfiles/DotNetCore.spec.js.map +1 -1
- package/dist/tests/devfiles/Go.spec.js +3 -4
- package/dist/tests/devfiles/Go.spec.js.map +1 -1
- package/dist/tests/devfiles/JavaMaven.spec.js +3 -4
- package/dist/tests/devfiles/JavaMaven.spec.js.map +1 -1
- package/dist/tests/devfiles/JavaSpringBoot.spec.js +3 -4
- package/dist/tests/devfiles/JavaSpringBoot.spec.js.map +1 -1
- package/dist/tests/devfiles/JavaVertx.spec.js +3 -4
- package/dist/tests/devfiles/JavaVertx.spec.js.map +1 -1
- package/dist/tests/devfiles/NodeJS.spec.js +3 -4
- package/dist/tests/devfiles/NodeJS.spec.js.map +1 -1
- package/dist/tests/devfiles/PHPSimple.spec.js +3 -4
- package/dist/tests/devfiles/PHPSimple.spec.js.map +1 -1
- package/dist/tests/devfiles/Python.spec.js +3 -4
- package/dist/tests/devfiles/Python.spec.js.map +1 -1
- package/dist/tests/devfiles/PythonDjango.spec.js +3 -4
- package/dist/tests/devfiles/PythonDjango.spec.js.map +1 -1
- package/dist/tests/devfiles/Quarkus.spec.js +3 -4
- package/dist/tests/devfiles/Quarkus.spec.js.map +1 -1
- package/dist/tests/devfiles/Scala.spec.js +3 -4
- package/dist/tests/devfiles/Scala.spec.js.map +1 -1
- package/dist/tests/e2e/FactoryUrl.spec.js +4 -9
- package/dist/tests/e2e/FactoryUrl.spec.js.map +1 -1
- package/dist/tests/e2e/GitPublishBranch.spec.js +2 -0
- package/dist/tests/e2e/GitPublishBranch.spec.js.map +1 -1
- package/dist/tests/e2e/GitSelfSignCert.spec.js +7 -0
- package/dist/tests/e2e/GitSelfSignCert.spec.js.map +1 -1
- package/dist/tests/e2e/GitSsh.spec.js +4 -1
- package/dist/tests/e2e/GitSsh.spec.js.map +1 -1
- package/dist/tests/e2e/OpenshiftConnector.spec.js +2 -0
- package/dist/tests/e2e/OpenshiftConnector.spec.js.map +1 -1
- package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js +3 -7
- package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +1 -1
- package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js +3 -7
- package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +1 -1
- package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js +3 -7
- package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +1 -1
- package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js +2 -0
- package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js.map +1 -1
- package/dist/tests/e2e_happy_path/HappyPath.spec.js +13 -8
- package/dist/tests/e2e_happy_path/HappyPath.spec.js.map +1 -1
- package/dist/tests/intelij/IntelijOpenWorkspace.spec.js +2 -6
- package/dist/tests/intelij/IntelijOpenWorkspace.spec.js.map +1 -1
- package/dist/tests/load_test/LoadTest.spec.js +2 -5
- 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 +4 -9
- package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/InstallPluginUsingUI.spec.js +4 -10
- package/dist/tests/plugins/InstallPluginUsingUI.spec.js.map +1 -1
- package/dist/tests/plugins/JavaPlugin.spec.js +4 -8
- package/dist/tests/plugins/JavaPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/PhpPlugin.spec.js +12 -10
- package/dist/tests/plugins/PhpPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/PythonPlugin.spec.js +4 -8
- package/dist/tests/plugins/PythonPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/TypescriptPlugin.spec.js +4 -8
- package/dist/tests/plugins/TypescriptPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js +3 -10
- package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js +3 -10
- package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/VscodeValePlugin.spec.js +3 -10
- package/dist/tests/plugins/VscodeValePlugin.spec.js.map +1 -1
- package/dist/tests/plugins/VscodeXmlPlugin.spec.js +15 -1
- package/dist/tests/plugins/VscodeXmlPlugin.spec.js.map +1 -1
- package/dist/tests/plugins/VscodeYamlPlugin.spec.js +4 -8
- package/dist/tests/plugins/VscodeYamlPlugin.spec.js.map +1 -1
- package/dist/testsLibrary/CodeExecutionTests.js +14 -2
- package/dist/testsLibrary/CodeExecutionTests.js.map +1 -1
- package/dist/testsLibrary/WorkspaceHandlingTests.js +75 -10
- package/dist/testsLibrary/WorkspaceHandlingTests.js.map +1 -1
- package/dist/utils/requestHandlers/CheApiRequestHandler.js.map +1 -1
- package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js +17 -2
- package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +1 -1
- package/dist/utils/workspace/ApiUrlResolver.js +67 -0
- package/dist/utils/workspace/ApiUrlResolver.js.map +1 -0
- package/dist/utils/workspace/TestWorkspaceUtil.js +60 -30
- package/dist/utils/workspace/TestWorkspaceUtil.js.map +1 -1
- package/dist/utils/workspace/WorkspaceStatus.js.map +1 -1
- package/driver/CheReporter.ts +2 -2
- package/index.ts +1 -0
- package/inversify.config.ts +4 -2
- package/inversify.types.ts +2 -1
- package/package.json +1 -1
- package/pageobjects/dashboard/workspace-details/WorkspaceDetails.ts +2 -2
- package/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.ts +3 -3
- package/pageobjects/ide/ProjectTree.ts +13 -8
- package/tests/devfiles/CSlashCPlusPlus.spec.ts +3 -6
- package/tests/devfiles/DevfileSmoke.spec.ts +4 -7
- package/tests/devfiles/DotNetCore.spec.ts +3 -6
- package/tests/devfiles/Go.spec.ts +3 -4
- package/tests/devfiles/JavaMaven.spec.ts +3 -6
- package/tests/devfiles/JavaSpringBoot.spec.ts +3 -6
- package/tests/devfiles/JavaVertx.spec.ts +3 -6
- package/tests/devfiles/NodeJS.spec.ts +3 -6
- package/tests/devfiles/PHPSimple.spec.ts +3 -6
- package/tests/devfiles/Python.spec.ts +3 -6
- package/tests/devfiles/PythonDjango.spec.ts +3 -6
- package/tests/devfiles/Quarkus.spec.ts +3 -6
- package/tests/devfiles/Scala.spec.ts +3 -7
- package/tests/e2e/FactoryUrl.spec.ts +6 -10
- package/tests/e2e/GitPublishBranch.spec.ts +5 -3
- package/tests/e2e/GitSelfSignCert.spec.ts +68 -65
- package/tests/e2e/GitSsh.spec.ts +6 -3
- package/tests/e2e/OpenshiftConnector.spec.ts +4 -2
- package/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +2 -5
- package/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.ts +2 -5
- package/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.ts +2 -5
- package/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.ts +2 -0
- package/tests/e2e_happy_path/HappyPath.spec.ts +13 -8
- package/tests/intelij/IntelijOpenWorkspace.spec.ts +2 -4
- package/tests/load_test/LoadTest.spec.ts +4 -4
- package/tests/login/LinkCheAndOcpUsers.spec.ts +4 -3
- package/tests/plugins/GitHubPullRequestPlugin.spec.ts +4 -7
- package/tests/plugins/InstallPluginUsingUI.spec.ts +4 -9
- package/tests/plugins/JavaPlugin.spec.ts +4 -6
- package/tests/plugins/PhpPlugin.spec.ts +3 -9
- package/tests/plugins/PythonPlugin.spec.ts +4 -6
- package/tests/plugins/TypescriptPlugin.spec.ts +4 -6
- package/tests/plugins/VscodeKubernetesPlugin.spec.ts +3 -9
- package/tests/plugins/VscodeShellcheckPlugin.spec.ts +3 -9
- package/tests/plugins/VscodeValePlugin.spec.ts +3 -9
- package/tests/plugins/VscodeXmlPlugin.spec.ts +17 -1
- package/tests/plugins/VscodeYamlPlugin.spec.ts +4 -7
- package/testsLibrary/CodeExecutionTests.ts +9 -1
- package/testsLibrary/WorkspaceHandlingTests.ts +72 -9
- package/utils/requestHandlers/CheApiRequestHandler.ts +1 -1
- package/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.ts +17 -2
- package/utils/workspace/ApiUrlResolver.ts +50 -0
- package/utils/workspace/ITestWorkspaceUtil.ts +73 -1
- package/utils/workspace/TestWorkspaceUtil.ts +65 -33
- package/utils/workspace/WorkspaceStatus.ts +1 -1
|
@@ -12,20 +12,18 @@ import { e2eContainer } from '../../inversify.config';
|
|
|
12
12
|
import { CLASSES, TYPES } from '../../inversify.types';
|
|
13
13
|
import { TestConstants } from '../../TestConstants';
|
|
14
14
|
import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
|
|
15
|
-
import CheReporter from '../../driver/CheReporter';
|
|
16
15
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
16
|
+
import { ITestWorkspaceUtil } from '../../utils/workspace/ITestWorkspaceUtil';
|
|
17
|
+
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
19
18
|
|
|
20
19
|
const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
|
|
21
20
|
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
22
|
-
const
|
|
23
|
-
const
|
|
21
|
+
const testWorkspaceUtils: ITestWorkspaceUtil = e2eContainer.get<ITestWorkspaceUtil>(TYPES.WorkspaceUtil);
|
|
22
|
+
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get<WorkspaceHandlingTests>(CLASSES.WorkspaceHandlingTests);
|
|
24
23
|
|
|
25
24
|
const factoryUrl : string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=https://raw.githubusercontent.com/eclipse/che-devfile-registry/master/devfiles/java-maven/devfile.yaml`;
|
|
26
25
|
const workspaceSampleName: string = 'console-java-simple';
|
|
27
26
|
const workspaceRootFolderName: string = 'src';
|
|
28
|
-
let workspaceName: string;
|
|
29
27
|
|
|
30
28
|
// the suite expect user to be logged in
|
|
31
29
|
suite('Workspace creation via factory url', async () => {
|
|
@@ -36,15 +34,13 @@ suite('Workspace creation via factory url', async () => {
|
|
|
36
34
|
});
|
|
37
35
|
|
|
38
36
|
suite('Wait workspace readyness', async () => {
|
|
37
|
+
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
39
38
|
projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName);
|
|
40
39
|
});
|
|
41
40
|
|
|
42
41
|
suite ('Stopping and deleting the workspace', async () => {
|
|
43
42
|
test('Stop and remove workspace', async () => {
|
|
44
|
-
|
|
45
|
-
CheReporter.registerRunningWorkspace(workspaceName);
|
|
46
|
-
|
|
47
|
-
await testWorkspaceUtils.cleanUpRunningWorkspace(workspaceName);
|
|
43
|
+
await testWorkspaceUtils.cleanUpRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
48
44
|
});
|
|
49
45
|
});
|
|
50
46
|
|
|
@@ -18,12 +18,13 @@ import { QuickOpenContainer } from '../../pageobjects/ide/QuickOpenContainer';
|
|
|
18
18
|
import { ICheLoginPage } from '../../pageobjects/login/ICheLoginPage';
|
|
19
19
|
import { TestConstants } from '../../TestConstants';
|
|
20
20
|
import { DriverHelper } from '../../utils/DriverHelper';
|
|
21
|
-
import { TestWorkspaceUtil } from '../../utils/workspace/TestWorkspaceUtil';
|
|
22
21
|
import { TopMenu } from '../../pageobjects/ide/TopMenu';
|
|
23
22
|
import { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
|
|
24
23
|
import { By } from 'selenium-webdriver';
|
|
25
|
-
import CheReporter from '../../driver/CheReporter';
|
|
26
24
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
25
|
+
import { ITestWorkspaceUtil } from '../../utils/workspace/ITestWorkspaceUtil';
|
|
26
|
+
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
27
|
+
import CheReporter from '../../driver/CheReporter';
|
|
27
28
|
|
|
28
29
|
const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
|
|
29
30
|
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
@@ -34,7 +35,7 @@ const topMenu: TopMenu = e2eContainer.get(CLASSES.TopMenu);
|
|
|
34
35
|
const loginPage: ICheLoginPage = e2eContainer.get<ICheLoginPage>(TYPES.CheLogin);
|
|
35
36
|
const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
|
|
36
37
|
const gitPlugin: GitPlugin = e2eContainer.get(CLASSES.GitPlugin);
|
|
37
|
-
const testWorkspaceUtils:
|
|
38
|
+
const testWorkspaceUtils: ITestWorkspaceUtil = e2eContainer.get<ITestWorkspaceUtil>(TYPES.WorkspaceUtil);
|
|
38
39
|
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
|
|
39
40
|
|
|
40
41
|
const workspacePrefixUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/dashboard/#/ide/${TestConstants.TS_SELENIUM_USERNAME}/`;
|
|
@@ -53,6 +54,7 @@ suite('Publish branch in git extension', async () => {
|
|
|
53
54
|
test('Login into workspace', async () => {
|
|
54
55
|
await browserTabsUtil.navigateTo(workspacePrefixUrl + wsNameGitPublishBranch);
|
|
55
56
|
await loginPage.login();
|
|
57
|
+
WorkspaceHandlingTests.setWorkspaceName(wsNameGitPublishBranch);
|
|
56
58
|
CheReporter.registerRunningWorkspace(wsNameGitPublishBranch);
|
|
57
59
|
await ide.waitWorkspaceAndIde();
|
|
58
60
|
await projectTree.openProjectTreeContainer();
|
|
@@ -8,68 +8,71 @@
|
|
|
8
8
|
* SPDX-License-Identifier: EPL-2.0
|
|
9
9
|
**********************************************************************/
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
11
|
+
import { e2eContainer } from '../../inversify.config';
|
|
12
|
+
import { CLASSES, TYPES } from '../../inversify.types';
|
|
13
|
+
import { GitPlugin } from '../../pageobjects/ide/plugins/GitPlugin';
|
|
14
|
+
import { Ide } from '../../pageobjects/ide/Ide';
|
|
15
|
+
import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
|
|
16
|
+
import { QuickOpenContainer } from '../../pageobjects/ide/QuickOpenContainer';
|
|
17
|
+
import { ICheLoginPage } from '../../pageobjects/login/ICheLoginPage';
|
|
18
|
+
import { TestConstants } from '../../TestConstants';
|
|
19
|
+
import { DriverHelper } from '../../utils/DriverHelper';
|
|
20
|
+
import { TopMenu } from '../../pageobjects/ide/TopMenu';
|
|
21
|
+
import { TimeoutConstants } from '../../TimeoutConstants';
|
|
22
|
+
import { Dashboard } from '../../pageobjects/dashboard/Dashboard';
|
|
23
|
+
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
24
|
+
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
25
|
+
import { Editor } from '../../pageobjects/ide/Editor';
|
|
26
|
+
import { ITestWorkspaceUtil } from '../../utils/workspace/ITestWorkspaceUtil';
|
|
27
|
+
import CheReporter from '../../driver/CheReporter';
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
30
|
+
const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
31
|
+
const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
|
|
32
|
+
const quickOpenContainer: QuickOpenContainer = e2eContainer.get(CLASSES.QuickOpenContainer);
|
|
33
|
+
const topMenu: TopMenu = e2eContainer.get(CLASSES.TopMenu);
|
|
34
|
+
const loginPage: ICheLoginPage = e2eContainer.get<ICheLoginPage>(TYPES.CheLogin);
|
|
35
|
+
const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
|
|
36
|
+
const gitPlugin: GitPlugin = e2eContainer.get(CLASSES.GitPlugin);
|
|
37
|
+
const testWorkspaceUtils: ITestWorkspaceUtil = e2eContainer.get<ITestWorkspaceUtil>(TYPES.WorkspaceUtil);
|
|
38
|
+
const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
|
|
39
|
+
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
40
|
+
const editor: Editor = e2eContainer.get(CLASSES.Editor);
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
const workspaceName = 'gitSelfSignCert';
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
suite('Checking git + self sign cert', async () => {
|
|
45
|
+
const workspacePrefixUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/dashboard/#/ide/${TestConstants.TS_SELENIUM_USERNAME}/`;
|
|
46
|
+
const gitProjectUrl = `https://${TestConstants.TS_SELF_HOSTED_GIT_SERVER_URL}/maxura/gitService.git`;
|
|
47
|
+
const committedFile = 'README.md';
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
suiteSetup(async function () {
|
|
50
|
+
const wsConfig = await testWorkspaceUtils.getBaseDevfile();
|
|
51
|
+
wsConfig.metadata!.name = workspaceName;
|
|
52
|
+
WorkspaceHandlingTests.setWorkspaceName(workspaceName);
|
|
53
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
54
|
+
await browserTabsUtil.navigateTo(TestConstants.TS_SELENIUM_BASE_URL);
|
|
55
|
+
await loginPage.login();
|
|
56
|
+
await testWorkspaceUtils.createWsFromDevFile(wsConfig);
|
|
57
|
+
});
|
|
55
58
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
test('Wait until created workspace is started', async () => {
|
|
60
|
+
await dashboard.waitPage();
|
|
61
|
+
await browserTabsUtil.navigateTo(workspacePrefixUrl + workspaceName);
|
|
62
|
+
await ide.waitWorkspaceAndIde();
|
|
63
|
+
await projectTree.openProjectTreeContainer();
|
|
64
|
+
await driverHelper.wait(TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
|
|
65
|
+
});
|
|
63
66
|
|
|
64
67
|
|
|
65
|
-
|
|
66
|
-
|
|
68
|
+
test('Clone project', async () => {
|
|
69
|
+
await cloneTestRepo(gitProjectUrl);
|
|
67
70
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
await projectTree.waitProjectImportedNoSubfolder('gitService');
|
|
72
|
+
await projectTree.waitItem('gitService/README.md');
|
|
73
|
+
});
|
|
71
74
|
|
|
72
|
-
|
|
75
|
+
test('Change commit and push', async function changeCommitAndPushFunc() {
|
|
73
76
|
const currentDate: string = Date.now().toString();
|
|
74
77
|
await projectTree.expandPathAndOpenFile('gitService', committedFile);
|
|
75
78
|
await editor.type(committedFile, currentDate + '\n', 1);
|
|
@@ -85,23 +88,23 @@
|
|
|
85
88
|
await gitPlugin.waitDataIsSynchronized();
|
|
86
89
|
});
|
|
87
90
|
|
|
88
|
-
|
|
91
|
+
});
|
|
89
92
|
|
|
90
|
-
|
|
93
|
+
suite('Stopping and deleting the workspace', async () => {
|
|
91
94
|
test(`Stop and remove workspace`, async () => {
|
|
92
95
|
await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
|
|
93
96
|
});
|
|
94
97
|
});
|
|
95
98
|
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
async function cloneTestRepo(linkToRepo: string) {
|
|
100
|
+
const confirmMessage = 'Clone from URL';
|
|
98
101
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
await topMenu.selectOption('View', 'Find Command...');
|
|
103
|
+
// workaround - reopen 'Find Command' container - https://github.com/eclipse/che/issues/19793
|
|
104
|
+
await topMenu.selectOption('View', 'Find Command...');
|
|
105
|
+
await quickOpenContainer.typeAndSelectSuggestion('clone', 'Git: Clone');
|
|
106
|
+
await quickOpenContainer.typeAndSelectSuggestion(linkToRepo, confirmMessage);
|
|
107
|
+
await gitPlugin.clickOnSelectRepositoryButton();
|
|
105
108
|
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
await ide.waitAndApplyTrustNotification();
|
|
110
|
+
}
|
package/tests/e2e/GitSsh.spec.ts
CHANGED
|
@@ -22,11 +22,12 @@ import { DriverHelper } from '../../utils/DriverHelper';
|
|
|
22
22
|
import { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
|
|
23
23
|
import { CheGitApi } from '../../utils/VCS/CheGitApi';
|
|
24
24
|
import { GitHubUtil } from '../../utils/VCS/github/GitHubUtil';
|
|
25
|
-
import { TestWorkspaceUtil } from '../../utils/workspace/TestWorkspaceUtil';
|
|
26
25
|
import { TopMenu } from '../../pageobjects/ide/TopMenu';
|
|
27
26
|
import { TimeoutConstants } from '../../TimeoutConstants';
|
|
28
27
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
29
28
|
import { Dashboard } from '../..';
|
|
29
|
+
import { ITestWorkspaceUtil } from '../../utils/workspace/ITestWorkspaceUtil';
|
|
30
|
+
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
30
31
|
import CheReporter from '../../driver/CheReporter';
|
|
31
32
|
|
|
32
33
|
const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
|
|
@@ -39,7 +40,7 @@ const gitHubUtils: GitHubUtil = e2eContainer.get<GitHubUtil>(CLASSES.GitHubUtil)
|
|
|
39
40
|
const cheGitAPI: CheGitApi = e2eContainer.get(CLASSES.CheGitApi);
|
|
40
41
|
const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
|
|
41
42
|
const gitPlugin: GitPlugin = e2eContainer.get(CLASSES.GitPlugin);
|
|
42
|
-
const testWorkspaceUtils:
|
|
43
|
+
const testWorkspaceUtils: ITestWorkspaceUtil = e2eContainer.get<ITestWorkspaceUtil>(TYPES.WorkspaceUtil);
|
|
43
44
|
const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
|
|
44
45
|
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
45
46
|
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
|
|
@@ -61,6 +62,7 @@ suite('Git with ssh workflow', async () => {
|
|
|
61
62
|
test('Login into workspace and open tree container', async () => {
|
|
62
63
|
await dashboard.openDashboard();
|
|
63
64
|
await browserTabsUtil.navigateTo(workspacePrefixUrl + wsNameCheckGeneratingKeys);
|
|
65
|
+
WorkspaceHandlingTests.setWorkspaceName(wsNameCheckGeneratingKeys);
|
|
64
66
|
CheReporter.registerRunningWorkspace(wsNameCheckGeneratingKeys);
|
|
65
67
|
await ide.waitWorkspaceAndIde();
|
|
66
68
|
await projectTree.openProjectTreeContainer();
|
|
@@ -111,7 +113,8 @@ suite('Git with ssh workflow', async () => {
|
|
|
111
113
|
await testWorkspaceUtils.createWsFromDevFile(data);
|
|
112
114
|
await dashboard.openDashboard();
|
|
113
115
|
await browserTabsUtil.navigateTo(workspacePrefixUrl + wsNameCheckPropagatingKeys);
|
|
114
|
-
|
|
116
|
+
WorkspaceHandlingTests.setWorkspaceName(wsNameCheckPropagatingKeys);
|
|
117
|
+
CheReporter.registerRunningWorkspace(wsNameCheckGeneratingKeys);
|
|
115
118
|
await ide.waitWorkspaceAndIde();
|
|
116
119
|
await projectTree.openProjectTreeContainer();
|
|
117
120
|
await driverHelper.wait(TimeoutConstants.TS_PROJECT_TREE_TIMEOUT);
|
|
@@ -23,15 +23,16 @@ import { ICheLoginPage } from '../../pageobjects/login/ICheLoginPage';
|
|
|
23
23
|
import { TestConstants } from '../../TestConstants';
|
|
24
24
|
import { DriverHelper } from '../../utils/DriverHelper';
|
|
25
25
|
import { PreferencesHandler, TerminalRendererType } from '../../utils/PreferencesHandler';
|
|
26
|
-
import { TestWorkspaceUtil } from '../../utils/workspace/TestWorkspaceUtil';
|
|
27
26
|
import { TimeoutConstants } from '../../TimeoutConstants';
|
|
28
27
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
28
|
+
import { ITestWorkspaceUtil } from '../../utils/workspace/ITestWorkspaceUtil';
|
|
29
|
+
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
29
30
|
import CheReporter from '../../driver/CheReporter';
|
|
30
31
|
|
|
31
32
|
const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
|
|
32
33
|
const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
33
34
|
const loginPage: ICheLoginPage = e2eContainer.get<ICheLoginPage>(TYPES.CheLogin);
|
|
34
|
-
const testWorkspaceUtils:
|
|
35
|
+
const testWorkspaceUtils: ITestWorkspaceUtil = e2eContainer.get<ITestWorkspaceUtil>(TYPES.WorkspaceUtil);
|
|
35
36
|
const openshiftPlugin: OpenshiftPlugin = e2eContainer.get(CLASSES.OpenshiftPlugin);
|
|
36
37
|
const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
|
|
37
38
|
const quickOpenContainer: QuickOpenContainer = e2eContainer.get(CLASSES.QuickOpenContainer);
|
|
@@ -77,6 +78,7 @@ suite('Openshift connector user story', async () => {
|
|
|
77
78
|
test('Login into workspace and open plugin', async () => {
|
|
78
79
|
await dashboard.openDashboard();
|
|
79
80
|
await browserTabsUtil.navigateTo(workspacePrefixUrl + wsName);
|
|
81
|
+
WorkspaceHandlingTests.setWorkspaceName(wsName);
|
|
80
82
|
CheReporter.registerRunningWorkspace(wsName);
|
|
81
83
|
await ide.waitWorkspaceAndIde();
|
|
82
84
|
await projectTree.openProjectTreeContainer();
|
|
@@ -12,7 +12,6 @@ import { e2eContainer } from '../../../inversify.config';
|
|
|
12
12
|
import { CLASSES } from '../../../inversify.types';
|
|
13
13
|
import { TestConstants } from '../../../TestConstants';
|
|
14
14
|
import { ProjectAndFileTests } from '../../../testsLibrary/ProjectAndFileTests';
|
|
15
|
-
import CheReporter from '../../../driver/CheReporter';
|
|
16
15
|
import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
|
|
17
16
|
import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
|
|
18
17
|
import { PreferencesHandler } from '../../../utils/PreferencesHandler';
|
|
@@ -28,7 +27,6 @@ const workspaceRootFolderName: string = 'src';
|
|
|
28
27
|
const fileName: string = 'pom.xml';
|
|
29
28
|
const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/main/java/org/eclipse/che/examples`;
|
|
30
29
|
const tabTitle: string = 'HelloWorld.java';
|
|
31
|
-
let workspaceName: string = 'console-java-simple';
|
|
32
30
|
|
|
33
31
|
suite('Workspace creation via factory url', async () => {
|
|
34
32
|
suite('Open factory URL', async () => {
|
|
@@ -38,11 +36,10 @@ suite('Workspace creation via factory url', async () => {
|
|
|
38
36
|
});
|
|
39
37
|
|
|
40
38
|
suite('Wait workspace readyness', async () => {
|
|
39
|
+
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
41
40
|
projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName);
|
|
42
41
|
|
|
43
42
|
test('Set confirmExit preference to never', async () => {
|
|
44
|
-
CheReporter.registerRunningWorkspace(workspaceName);
|
|
45
|
-
|
|
46
43
|
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
|
|
47
44
|
});
|
|
48
45
|
});
|
|
@@ -56,7 +53,7 @@ suite('Workspace creation via factory url', async () => {
|
|
|
56
53
|
|
|
57
54
|
suite ('Stopping and deleting the workspace', async () => {
|
|
58
55
|
test('Stop and remove workspace', async () => {
|
|
59
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(
|
|
56
|
+
await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
60
57
|
});
|
|
61
58
|
});
|
|
62
59
|
|
|
@@ -12,7 +12,6 @@ import { e2eContainer } from '../../../inversify.config';
|
|
|
12
12
|
import { CLASSES } from '../../../inversify.types';
|
|
13
13
|
import { TestConstants } from '../../../TestConstants';
|
|
14
14
|
import { ProjectAndFileTests } from '../../../testsLibrary/ProjectAndFileTests';
|
|
15
|
-
import CheReporter from '../../../driver/CheReporter';
|
|
16
15
|
import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
|
|
17
16
|
import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
|
|
18
17
|
import { PreferencesHandler } from '../../../utils/PreferencesHandler';
|
|
@@ -27,7 +26,6 @@ const workspaceSampleName: string = 'console-java-simple';
|
|
|
27
26
|
const workspaceRootFolderName: string = 'src';
|
|
28
27
|
const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/main/java/org/eclipse/che/examples`;
|
|
29
28
|
const tabTitle: string = 'HelloWorld.java';
|
|
30
|
-
let workspaceName: string = 'console-java-simple';
|
|
31
29
|
|
|
32
30
|
suite('Workspace creation via factory url', async () => {
|
|
33
31
|
suite('Open factory URL', async () => {
|
|
@@ -37,11 +35,10 @@ suite('Workspace creation via factory url', async () => {
|
|
|
37
35
|
});
|
|
38
36
|
|
|
39
37
|
suite('Wait workspace readyness', async () => {
|
|
38
|
+
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
40
39
|
projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName);
|
|
41
40
|
|
|
42
41
|
test('Set confirmExit preference to never', async () => {
|
|
43
|
-
CheReporter.registerRunningWorkspace(workspaceName);
|
|
44
|
-
|
|
45
42
|
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
|
|
46
43
|
});
|
|
47
44
|
});
|
|
@@ -53,7 +50,7 @@ suite('Workspace creation via factory url', async () => {
|
|
|
53
50
|
|
|
54
51
|
suite ('Stopping and deleting the workspace', async () => {
|
|
55
52
|
test('Stop and remove workspace', async () => {
|
|
56
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(
|
|
53
|
+
await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
57
54
|
});
|
|
58
55
|
});
|
|
59
56
|
|
|
@@ -12,7 +12,6 @@ import { e2eContainer } from '../../../inversify.config';
|
|
|
12
12
|
import { CLASSES } from '../../../inversify.types';
|
|
13
13
|
import { TestConstants } from '../../../TestConstants';
|
|
14
14
|
import { ProjectAndFileTests } from '../../../testsLibrary/ProjectAndFileTests';
|
|
15
|
-
import CheReporter from '../../../driver/CheReporter';
|
|
16
15
|
import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
|
|
17
16
|
import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
|
|
18
17
|
import { PreferencesHandler } from '../../../utils/PreferencesHandler';
|
|
@@ -27,7 +26,6 @@ const workspaceSampleName: string = 'console-java-simple';
|
|
|
27
26
|
const workspaceRootFolderName: string = 'src';
|
|
28
27
|
const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/main/java/org/eclipse/che/examples`;
|
|
29
28
|
const tabTitle: string = 'HelloWorld.java';
|
|
30
|
-
let workspaceName: string = 'console-java-simple';
|
|
31
29
|
|
|
32
30
|
suite('Workspace creation via factory url', async () => {
|
|
33
31
|
suite('Open factory URL', async () => {
|
|
@@ -37,11 +35,10 @@ suite('Workspace creation via factory url', async () => {
|
|
|
37
35
|
});
|
|
38
36
|
|
|
39
37
|
suite('Wait workspace readyness', async () => {
|
|
38
|
+
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
40
39
|
projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName);
|
|
41
40
|
|
|
42
41
|
test('Set confirmExit preference to never', async () => {
|
|
43
|
-
CheReporter.registerRunningWorkspace(workspaceName);
|
|
44
|
-
|
|
45
42
|
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
|
|
46
43
|
});
|
|
47
44
|
});
|
|
@@ -53,7 +50,7 @@ suite('Workspace creation via factory url', async () => {
|
|
|
53
50
|
|
|
54
51
|
suite ('Stopping and deleting the workspace', async () => {
|
|
55
52
|
test('Stop and remove workspace', async () => {
|
|
56
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(
|
|
53
|
+
await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
57
54
|
});
|
|
58
55
|
});
|
|
59
56
|
|
|
@@ -24,6 +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 { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
27
28
|
import CheReporter from '../../driver/CheReporter';
|
|
28
29
|
|
|
29
30
|
const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
@@ -65,6 +66,7 @@ suite('Workspace creation via factory url', async () => {
|
|
|
65
66
|
});
|
|
66
67
|
|
|
67
68
|
test('Register running workspace', async () => {
|
|
69
|
+
WorkspaceHandlingTests.setWorkspaceName(projectName);
|
|
68
70
|
CheReporter.registerRunningWorkspace(projectName);
|
|
69
71
|
});
|
|
70
72
|
|
|
@@ -28,6 +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 { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
31
32
|
import CheReporter from '../../driver/CheReporter';
|
|
32
33
|
|
|
33
34
|
const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
|
|
@@ -75,11 +76,12 @@ suite('Validation of workspace start', async () => {
|
|
|
75
76
|
});
|
|
76
77
|
|
|
77
78
|
test('Register running workspace', async () => {
|
|
79
|
+
WorkspaceHandlingTests.setWorkspaceName(workspaceName);
|
|
78
80
|
CheReporter.registerRunningWorkspace(workspaceName);
|
|
79
81
|
});
|
|
80
82
|
|
|
81
83
|
test('Wait for workspace readiness', async () => {
|
|
82
|
-
await ide.waitAndSwitchToIdeFrame();
|
|
84
|
+
// await ide.waitAndSwitchToIdeFrame(); test is outdated, should be deprecated.
|
|
83
85
|
await ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
84
86
|
await projectTree.openProjectTreeContainer();
|
|
85
87
|
await ide.waitNotificationAndClickOnButton('Do you trust the authors of', 'Yes, I trust', 60_000);
|
|
@@ -126,7 +128,7 @@ suite('Language server validation', async () => {
|
|
|
126
128
|
} catch (err) {
|
|
127
129
|
Logger.debug('Workaround for the https://github.com/eclipse/che/issues/18974.');
|
|
128
130
|
await browserTabsUtil.refreshPage();
|
|
129
|
-
await ide.waitAndSwitchToIdeFrame();
|
|
131
|
+
// await ide.waitAndSwitchToIdeFrame(); test is outdated, should be deprecated.
|
|
130
132
|
await ide.waitIde();
|
|
131
133
|
await editor.waitErrorInLine(30, javaFileName, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT * 2);
|
|
132
134
|
}
|
|
@@ -240,10 +242,11 @@ suite('Validation of debug functionality', async () => {
|
|
|
240
242
|
});
|
|
241
243
|
|
|
242
244
|
test('Check content of the launched application', async () => {
|
|
243
|
-
await previewWidget.waitAndSwitchToWidgetFrame();
|
|
245
|
+
await previewWidget.waitAndSwitchToWidgetFrame(); // test is outdated, should be deprecated.
|
|
244
246
|
await previewWidget.waitAndClick(SpringAppLocators.springHomeButtonLocator);
|
|
245
247
|
await driverHelper.getDriver().switchTo().defaultContent();
|
|
246
|
-
await ide.waitAndSwitchToIdeFrame();
|
|
248
|
+
// await ide.waitAndSwitchToIdeFrame(); test is outdated, should be deprecated.
|
|
249
|
+
await ide.waitIde();
|
|
247
250
|
});
|
|
248
251
|
|
|
249
252
|
test('Open debug view', async () => {
|
|
@@ -280,7 +283,7 @@ suite('Validation of debug functionality', async () => {
|
|
|
280
283
|
});
|
|
281
284
|
|
|
282
285
|
async function checkErrorMessageInApplicationController() {
|
|
283
|
-
await previewWidget.waitAndSwitchToWidgetFrame();
|
|
286
|
+
await previewWidget.waitAndSwitchToWidgetFrame(); // test is outdated, should be deprecated.
|
|
284
287
|
await previewWidget.waitAndClick(SpringAppLocators.springMenuButtonLocator);
|
|
285
288
|
await previewWidget.waitAndClick(SpringAppLocators.springErrorButtonLocator);
|
|
286
289
|
|
|
@@ -289,15 +292,17 @@ async function checkErrorMessageInApplicationController() {
|
|
|
289
292
|
} catch (err) {
|
|
290
293
|
|
|
291
294
|
await driverHelper.getDriver().switchTo().defaultContent();
|
|
292
|
-
await ide.waitAndSwitchToIdeFrame();
|
|
295
|
+
// await ide.waitAndSwitchToIdeFrame(); test is outdated, should be deprecated.
|
|
296
|
+
await ide.waitIde();
|
|
293
297
|
|
|
294
|
-
await previewWidget.waitAndSwitchToWidgetFrame();
|
|
298
|
+
await previewWidget.waitAndSwitchToWidgetFrame(); // test is outdated, should be deprecated.
|
|
295
299
|
await previewWidget.waitVisibility(SpringAppLocators.springErrorMessageLocator, 15_000);
|
|
296
300
|
}
|
|
297
301
|
|
|
298
302
|
|
|
299
303
|
await driverHelper.getDriver().switchTo().defaultContent();
|
|
300
|
-
await ide.waitAndSwitchToIdeFrame();
|
|
304
|
+
// await ide.waitAndSwitchToIdeFrame(); test is outdated, should be deprecated.
|
|
305
|
+
await ide.waitIde();
|
|
301
306
|
}
|
|
302
307
|
|
|
303
308
|
async function checkJavaPathCompletion() {
|
|
@@ -14,8 +14,6 @@ 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';
|
|
19
17
|
import { Dashboard } from '../../pageobjects/dashboard/Dashboard';
|
|
20
18
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
21
19
|
|
|
@@ -23,7 +21,6 @@ const ide: Ide = e2eContainer.get(CLASSES.Ide);
|
|
|
23
21
|
const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
|
|
24
22
|
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
25
23
|
const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
|
|
26
|
-
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
|
|
27
24
|
|
|
28
25
|
const dashboardUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}`;
|
|
29
26
|
|
|
@@ -35,7 +32,8 @@ suite('The "IntelijOpenWorkspace" userstory', async () => {
|
|
|
35
32
|
|
|
36
33
|
test('Wait workspace', async () => {
|
|
37
34
|
await dashboard.waitWorkspaceStartingPage();
|
|
38
|
-
|
|
35
|
+
// todo: Fix workspace register in IntelliJ devfile - https://issues.redhat.com/browse/CRW-2954
|
|
36
|
+
/* CheReporter.registerRunningWorkspace(await workspaceNameHandler.getNameFromUrl()); */
|
|
39
37
|
await ide.waitAndSwitchToIdeFrame();
|
|
40
38
|
await waitIntelijWorkspace();
|
|
41
39
|
});
|
|
@@ -13,16 +13,16 @@ import { CLASSES, TYPES } from '../../inversify.types';
|
|
|
13
13
|
import { Ide } from '../../pageobjects/ide/Ide';
|
|
14
14
|
import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
|
|
15
15
|
import { ICheLoginPage } from '../../pageobjects/login/ICheLoginPage';
|
|
16
|
-
import { TestWorkspaceUtil } from '../../utils/workspace/TestWorkspaceUtil';
|
|
17
16
|
import { TestConstants, WorkspaceNameHandler } from '../..';
|
|
18
|
-
import CheReporter from '../../driver/CheReporter';
|
|
19
17
|
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
18
|
+
import { ITestWorkspaceUtil } from '../../utils/workspace/ITestWorkspaceUtil';
|
|
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);
|
|
23
23
|
const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
|
|
24
24
|
const cheLoginPage: ICheLoginPage = e2eContainer.get<ICheLoginPage>(TYPES.CheLogin);
|
|
25
|
-
const testWorkspaceUtils:
|
|
25
|
+
const testWorkspaceUtils: ITestWorkspaceUtil = e2eContainer.get<ITestWorkspaceUtil>(TYPES.WorkspaceUtil);
|
|
26
26
|
const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
|
|
27
27
|
|
|
28
28
|
const workspaceName: string = workspaceNameHandler.generateWorkspaceName('wksp-test-', 5);
|
|
@@ -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
|
+
WorkspaceHandlingTests.setWorkspaceName(workspaceName);
|
|
48
48
|
await ide.waitWorkspaceAndIde();
|
|
49
49
|
await projectTree.openProjectTreeContainer();
|
|
50
50
|
});
|
|
@@ -8,14 +8,15 @@
|
|
|
8
8
|
* SPDX-License-Identifier: EPL-2.0
|
|
9
9
|
**********************************************************************/
|
|
10
10
|
|
|
11
|
-
import { TestConstants,
|
|
11
|
+
import { TestConstants, 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';
|
|
17
18
|
|
|
18
|
-
const
|
|
19
|
+
const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
|
|
19
20
|
const ocpLogin: IOcpLoginPage = e2eContainer.get<IOcpLoginPage>(TYPES.OcpLogin);
|
|
20
21
|
const updateAccountInformation: UpdateAccountInformationPage = e2eContainer.get(CLASSES.UpdateAccountInformationPage);
|
|
21
22
|
const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
|
|
@@ -24,7 +25,7 @@ const commonTimeout: number = TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT * 2
|
|
|
24
25
|
|
|
25
26
|
suite('Link users', async () => {
|
|
26
27
|
test('Login to OCP', async () => {
|
|
27
|
-
await
|
|
28
|
+
await browserTabsUtil.navigateTo(TestConstants.TS_SELENIUM_BASE_URL);
|
|
28
29
|
|
|
29
30
|
await ocpLogin.login();
|
|
30
31
|
await updateAccountInformation.clickToAllowSelectedPermissionsButton(commonTimeout);
|