@eclipse-che/che-e2e 7.50.0-dev-25a3c8c → 7.50.0

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.
Files changed (157) hide show
  1. package/dist/driver/CheReporter.js +3 -2
  2. package/dist/driver/CheReporter.js.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/inversify.config.js +1 -1
  6. package/dist/inversify.config.js.map +1 -1
  7. package/dist/inversify.types.js +2 -3
  8. package/dist/inversify.types.js.map +1 -1
  9. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js +2 -4
  10. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js.map +1 -1
  11. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js +2 -4
  12. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js.map +1 -1
  13. package/dist/pageobjects/ide/ProjectTree.js +12 -6
  14. package/dist/pageobjects/ide/ProjectTree.js.map +1 -1
  15. package/dist/tests/devfiles/CSlashCPlusPlus.spec.js +3 -4
  16. package/dist/tests/devfiles/CSlashCPlusPlus.spec.js.map +1 -1
  17. package/dist/tests/devfiles/DevfileSmoke.spec.js +4 -5
  18. package/dist/tests/devfiles/DevfileSmoke.spec.js.map +1 -1
  19. package/dist/tests/devfiles/DotNetCore.spec.js +3 -4
  20. package/dist/tests/devfiles/DotNetCore.spec.js.map +1 -1
  21. package/dist/tests/devfiles/Go.spec.js +3 -4
  22. package/dist/tests/devfiles/Go.spec.js.map +1 -1
  23. package/dist/tests/devfiles/JavaMaven.spec.js +3 -4
  24. package/dist/tests/devfiles/JavaMaven.spec.js.map +1 -1
  25. package/dist/tests/devfiles/JavaSpringBoot.spec.js +3 -4
  26. package/dist/tests/devfiles/JavaSpringBoot.spec.js.map +1 -1
  27. package/dist/tests/devfiles/JavaVertx.spec.js +3 -4
  28. package/dist/tests/devfiles/JavaVertx.spec.js.map +1 -1
  29. package/dist/tests/devfiles/NodeJS.spec.js +3 -4
  30. package/dist/tests/devfiles/NodeJS.spec.js.map +1 -1
  31. package/dist/tests/devfiles/PHPSimple.spec.js +3 -4
  32. package/dist/tests/devfiles/PHPSimple.spec.js.map +1 -1
  33. package/dist/tests/devfiles/Python.spec.js +3 -4
  34. package/dist/tests/devfiles/Python.spec.js.map +1 -1
  35. package/dist/tests/devfiles/PythonDjango.spec.js +3 -4
  36. package/dist/tests/devfiles/PythonDjango.spec.js.map +1 -1
  37. package/dist/tests/devfiles/Quarkus.spec.js +3 -4
  38. package/dist/tests/devfiles/Quarkus.spec.js.map +1 -1
  39. package/dist/tests/devfiles/Scala.spec.js +3 -4
  40. package/dist/tests/devfiles/Scala.spec.js.map +1 -1
  41. package/dist/tests/e2e/FactoryUrl.spec.js +5 -10
  42. package/dist/tests/e2e/FactoryUrl.spec.js.map +1 -1
  43. package/dist/tests/e2e/GitPublishBranch.spec.js +3 -1
  44. package/dist/tests/e2e/GitPublishBranch.spec.js.map +1 -1
  45. package/dist/tests/e2e/GitSelfSignCert.spec.js +8 -1
  46. package/dist/tests/e2e/GitSelfSignCert.spec.js.map +1 -1
  47. package/dist/tests/e2e/GitSsh.spec.js +5 -2
  48. package/dist/tests/e2e/GitSsh.spec.js.map +1 -1
  49. package/dist/tests/e2e/OpenshiftConnector.spec.js +3 -1
  50. package/dist/tests/e2e/OpenshiftConnector.spec.js.map +1 -1
  51. package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js +3 -7
  52. package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +1 -1
  53. package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js +3 -7
  54. package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +1 -1
  55. package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js +3 -7
  56. package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +1 -1
  57. package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js +2 -0
  58. package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js.map +1 -1
  59. package/dist/tests/e2e_happy_path/HappyPath.spec.js +13 -8
  60. package/dist/tests/e2e_happy_path/HappyPath.spec.js.map +1 -1
  61. package/dist/tests/intelij/IntelijOpenWorkspace.spec.js +2 -6
  62. package/dist/tests/intelij/IntelijOpenWorkspace.spec.js.map +1 -1
  63. package/dist/tests/load_test/LoadTest.spec.js +3 -6
  64. package/dist/tests/load_test/LoadTest.spec.js.map +1 -1
  65. package/dist/tests/login/LinkCheAndOcpUsers.spec.js +2 -2
  66. package/dist/tests/login/LinkCheAndOcpUsers.spec.js.map +1 -1
  67. package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js +4 -9
  68. package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js.map +1 -1
  69. package/dist/tests/plugins/InstallPluginUsingUI.spec.js +4 -10
  70. package/dist/tests/plugins/InstallPluginUsingUI.spec.js.map +1 -1
  71. package/dist/tests/plugins/JavaPlugin.spec.js +4 -8
  72. package/dist/tests/plugins/JavaPlugin.spec.js.map +1 -1
  73. package/dist/tests/plugins/PhpPlugin.spec.js +12 -10
  74. package/dist/tests/plugins/PhpPlugin.spec.js.map +1 -1
  75. package/dist/tests/plugins/PythonPlugin.spec.js +4 -8
  76. package/dist/tests/plugins/PythonPlugin.spec.js.map +1 -1
  77. package/dist/tests/plugins/TypescriptPlugin.spec.js +4 -8
  78. package/dist/tests/plugins/TypescriptPlugin.spec.js.map +1 -1
  79. package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js +3 -10
  80. package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js.map +1 -1
  81. package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js +3 -10
  82. package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js.map +1 -1
  83. package/dist/tests/plugins/VscodeValePlugin.spec.js +3 -10
  84. package/dist/tests/plugins/VscodeValePlugin.spec.js.map +1 -1
  85. package/dist/tests/plugins/VscodeXmlPlugin.spec.js +15 -1
  86. package/dist/tests/plugins/VscodeXmlPlugin.spec.js.map +1 -1
  87. package/dist/tests/plugins/VscodeYamlPlugin.spec.js +4 -8
  88. package/dist/tests/plugins/VscodeYamlPlugin.spec.js.map +1 -1
  89. package/dist/testsLibrary/CodeExecutionTests.js +14 -2
  90. package/dist/testsLibrary/CodeExecutionTests.js.map +1 -1
  91. package/dist/testsLibrary/WorkspaceHandlingTests.js +75 -10
  92. package/dist/testsLibrary/WorkspaceHandlingTests.js.map +1 -1
  93. package/dist/utils/requestHandlers/CheApiRequestHandler.js.map +1 -1
  94. package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js +17 -2
  95. package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +1 -1
  96. package/dist/utils/workspace/ApiUrlResolver.js +41 -9
  97. package/dist/utils/workspace/ApiUrlResolver.js.map +1 -1
  98. package/dist/utils/workspace/{IApiUrlResolver.js → ITestWorkspaceUtil.js} +1 -1
  99. package/dist/utils/workspace/ITestWorkspaceUtil.js.map +1 -0
  100. package/dist/utils/workspace/TestWorkspaceUtil.js +29 -31
  101. package/dist/utils/workspace/TestWorkspaceUtil.js.map +1 -1
  102. package/dist/utils/workspace/WorkspaceStatus.js.map +1 -1
  103. package/driver/CheReporter.ts +4 -4
  104. package/index.ts +1 -1
  105. package/inversify.config.ts +4 -3
  106. package/inversify.types.ts +2 -3
  107. package/package.json +1 -1
  108. package/pageobjects/dashboard/workspace-details/WorkspaceDetails.ts +3 -3
  109. package/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.ts +4 -4
  110. package/pageobjects/ide/ProjectTree.ts +13 -8
  111. package/tests/devfiles/CSlashCPlusPlus.spec.ts +3 -6
  112. package/tests/devfiles/DevfileSmoke.spec.ts +4 -7
  113. package/tests/devfiles/DotNetCore.spec.ts +3 -6
  114. package/tests/devfiles/Go.spec.ts +3 -4
  115. package/tests/devfiles/JavaMaven.spec.ts +3 -6
  116. package/tests/devfiles/JavaSpringBoot.spec.ts +3 -6
  117. package/tests/devfiles/JavaVertx.spec.ts +3 -6
  118. package/tests/devfiles/NodeJS.spec.ts +3 -6
  119. package/tests/devfiles/PHPSimple.spec.ts +3 -6
  120. package/tests/devfiles/Python.spec.ts +3 -6
  121. package/tests/devfiles/PythonDjango.spec.ts +3 -6
  122. package/tests/devfiles/Quarkus.spec.ts +3 -6
  123. package/tests/devfiles/Scala.spec.ts +3 -7
  124. package/tests/e2e/FactoryUrl.spec.ts +7 -11
  125. package/tests/e2e/GitPublishBranch.spec.ts +5 -3
  126. package/tests/e2e/GitSelfSignCert.spec.ts +68 -65
  127. package/tests/e2e/GitSsh.spec.ts +6 -3
  128. package/tests/e2e/OpenshiftConnector.spec.ts +4 -2
  129. package/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +2 -5
  130. package/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.ts +2 -5
  131. package/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.ts +2 -5
  132. package/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.ts +2 -0
  133. package/tests/e2e_happy_path/HappyPath.spec.ts +13 -8
  134. package/tests/intelij/IntelijOpenWorkspace.spec.ts +2 -4
  135. package/tests/load_test/LoadTest.spec.ts +4 -4
  136. package/tests/login/LinkCheAndOcpUsers.spec.ts +4 -3
  137. package/tests/plugins/GitHubPullRequestPlugin.spec.ts +4 -7
  138. package/tests/plugins/InstallPluginUsingUI.spec.ts +4 -9
  139. package/tests/plugins/JavaPlugin.spec.ts +4 -6
  140. package/tests/plugins/PhpPlugin.spec.ts +3 -9
  141. package/tests/plugins/PythonPlugin.spec.ts +4 -6
  142. package/tests/plugins/TypescriptPlugin.spec.ts +4 -6
  143. package/tests/plugins/VscodeKubernetesPlugin.spec.ts +3 -9
  144. package/tests/plugins/VscodeShellcheckPlugin.spec.ts +3 -9
  145. package/tests/plugins/VscodeValePlugin.spec.ts +3 -9
  146. package/tests/plugins/VscodeXmlPlugin.spec.ts +17 -1
  147. package/tests/plugins/VscodeYamlPlugin.spec.ts +4 -7
  148. package/testsLibrary/CodeExecutionTests.ts +9 -1
  149. package/testsLibrary/WorkspaceHandlingTests.ts +72 -9
  150. package/utils/requestHandlers/CheApiRequestHandler.ts +1 -1
  151. package/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.ts +17 -2
  152. package/utils/workspace/ApiUrlResolver.ts +34 -11
  153. package/utils/workspace/ITestWorkspaceUtil.ts +98 -0
  154. package/utils/workspace/TestWorkspaceUtil.ts +34 -34
  155. package/utils/workspace/WorkspaceStatus.ts +1 -1
  156. package/dist/utils/workspace/IApiUrlResolver.js.map +0 -1
  157. package/utils/workspace/IApiUrlResolver.ts +0 -15
@@ -30,17 +30,14 @@ const codeNavigationClassName: string = 'SpringApplication.class';
30
30
  const buildTaskName: string = 'maven build';
31
31
  const runTaskName: string = 'run webapp';
32
32
  const runTaskExpectedDialogue: string = 'Process 8080-tcp is now listening on port 8080. Open it ?';
33
- let workspaceName: string;
34
33
 
35
34
  suite(`${stack} test`, async () => {
36
35
  suite(`Create ${stack} workspace`, async () => {
37
36
  workspaceHandlingTests.createAndOpenWorkspace(stack);
38
-
37
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
39
38
  test('Register running workspace', async () => {
40
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
- CheReporter.registerRunningWorkspace(workspaceName);
39
+ CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
42
40
  });
43
-
44
41
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
45
42
  });
46
43
 
@@ -68,7 +65,7 @@ suite(`${stack} test`, async () => {
68
65
 
69
66
  suite('Stopping and deleting the workspace', async () => {
70
67
  test(`Stop and remowe workspace`, async () => {
71
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
68
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
72
69
  });
73
70
  });
74
71
  });
@@ -28,17 +28,14 @@ const tabTitle: string = 'HttpApplication.java';
28
28
  const codeNavigationClassName: string = 'RouterImpl.class';
29
29
  const buildTaskName: string = 'maven build';
30
30
  const stack: string = 'Java Vert.x';
31
- let workspaceName: string;
32
31
 
33
32
  suite(`${stack} test`, async () => {
34
33
  suite (`Create ${stack} workspace`, async () => {
35
34
  workspaceHandlingTests.createAndOpenWorkspace(stack);
36
-
35
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
37
36
  test('Register running workspace', async () => {
38
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
39
- CheReporter.registerRunningWorkspace(workspaceName);
37
+ CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
40
38
  });
41
-
42
39
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
43
40
  });
44
41
 
@@ -61,7 +58,7 @@ suite(`${stack} test`, async () => {
61
58
 
62
59
  suite ('Stopping and deleting the workspace', async () => {
63
60
  test(`Stop and remowe workspace`, async () => {
64
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
61
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
65
62
  });
66
63
  });
67
64
 
@@ -30,18 +30,15 @@ const fileName: string = `app.js`;
30
30
  const taskDownloadDependencies: string = 'download dependencies';
31
31
  const taskRunWebApp: string = 'run the web app';
32
32
  const taskExpectedDialogText: string = 'Process nodejs is now listening on port 3000. Open it ?';
33
- let workspaceName: string;
34
33
 
35
34
  suite(`${workspaceStack} test`, async () => {
36
35
 
37
36
  suite(`Create ${workspaceStack}`, async () => {
38
37
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
39
-
38
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
40
39
  test('Register running workspace', async () => {
41
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
42
- CheReporter.registerRunningWorkspace(workspaceName);
40
+ CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
43
41
  });
44
-
45
42
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
46
43
  });
47
44
 
@@ -68,7 +65,7 @@ suite(`${workspaceStack} test`, async () => {
68
65
 
69
66
  suite('Stop and remove workspace', async() => {
70
67
  test(`Stop and remowe workspace`, async () => {
71
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
68
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
72
69
  });
73
70
  });
74
71
  });
@@ -30,17 +30,14 @@ const tabTitle: string = 'index.php';
30
30
  const depTaskName: string = 'Configure Apache Web Server DocumentRoot';
31
31
  const buildTaskName: string = 'Start Apache Web Server';
32
32
  const stack: string = 'PHP Simple';
33
- let workspaceName: string;
34
33
 
35
34
  suite(`${stack} test`, async () => {
36
35
  suite (`Create ${stack} workspace`, async () => {
37
36
  workspaceHandlingTests.createAndOpenWorkspace(stack);
38
-
37
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
39
38
  test('Register running workspace', async () => {
40
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
- CheReporter.registerRunningWorkspace(workspaceName);
39
+ CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
42
40
  });
43
-
44
41
  projectAndFileTests.waitWorkspaceReadinessNoSubfolder(workspaceSampleName, false);
45
42
  });
46
43
 
@@ -67,7 +64,7 @@ suite(`${stack} test`, async () => {
67
64
 
68
65
  suite ('Stopping and deleting the workspace', async () => {
69
66
  test(`Stop and remowe workspace`, async () => {
70
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
67
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
71
68
  });
72
69
  });
73
70
 
@@ -27,18 +27,15 @@ const workspaceSampleName: string = 'python-hello-world';
27
27
  const taskRunName: string = 'run';
28
28
  const fileFolderPath: string = `${workspaceSampleName}`;
29
29
  const fileName: string = `hello-world.py`;
30
- let workspaceName: string;
31
30
 
32
31
  suite(`${workspaceStack} test`, async () => {
33
32
 
34
33
  suite(`Create ${workspaceStack} workspace`, async () => {
35
34
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
36
-
35
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
37
36
  test('Register running workspace', async () => {
38
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
39
- CheReporter.registerRunningWorkspace(workspaceName);
37
+ CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
40
38
  });
41
-
42
39
  projectAndFileTests.waitWorkspaceReadinessNoSubfolder(workspaceSampleName, false);
43
40
  });
44
41
 
@@ -61,7 +58,7 @@ suite(`${workspaceStack} test`, async () => {
61
58
 
62
59
  suite ('Stopping and deleting the workspace', async () => {
63
60
  test(`Stop and remowe workspace`, async () => {
64
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
61
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
65
62
  });
66
63
  });
67
64
  });
@@ -29,18 +29,15 @@ const taskRunServer: string = 'run server';
29
29
  const taskRunServerInDebugMode: string = 'run server in debug mode';
30
30
  const taskExpectedDialogText: string = 'Process django is now listening on port 7000. Open it ?';
31
31
  const taskExpectedDialogTextInDebugMode: string = 'A new process is now listening on port 5678 but this port is not a current endpoint. Would you want to add a redirect for this port so it becomes available ?';
32
- let workspaceName: string;
33
32
 
34
33
  suite(`${workspaceStack} test`, async () => {
35
34
 
36
35
  suite(`Create ${workspaceStack} workspace`, async () => {
37
36
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
38
-
37
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
39
38
  test('Register running workspace', async () => {
40
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
- CheReporter.registerRunningWorkspace(workspaceName);
39
+ CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
42
40
  });
43
-
44
41
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
45
42
  });
46
43
 
@@ -64,7 +61,7 @@ suite(`${workspaceStack} test`, async () => {
64
61
 
65
62
  suite ('Stopping and deleting the workspace', async () => {
66
63
  test(`Stop and remowe workspace`, async () => {
67
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
64
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
68
65
  });
69
66
  });
70
67
  });
@@ -30,17 +30,14 @@ const fileName: string = `GreetingService.java`;
30
30
  const taskPackage: string = 'Package';
31
31
  const taskPackageNative: string = 'Package Native';
32
32
  const taskStartNative: string = 'Start Native';
33
- let workspaceName: string;
34
33
 
35
34
  suite(`${workspaceStack} test`, async () => {
36
35
  suite(`Create ${workspaceStack}`, async () => {
37
36
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
38
-
37
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
39
38
  test('Register running workspace', async () => {
40
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
- CheReporter.registerRunningWorkspace(workspaceName);
39
+ CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
42
40
  });
43
-
44
41
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
45
42
  });
46
43
 
@@ -73,7 +70,7 @@ suite(`${workspaceStack} test`, async () => {
73
70
 
74
71
  suite('Stop and remove workspace', async() => {
75
72
  test(`Stop and remowe workspace`, async () => {
76
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
73
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
77
74
  });
78
75
  });
79
76
  });
@@ -29,18 +29,15 @@ const compileTaskkName: string = 'sbt compile';
29
29
  const runTaskName: string = 'sbt run';
30
30
  const testTaskName: string = 'sbt test';
31
31
  const stack: string = 'Scala';
32
- let workspaceName: string;
33
32
 
34
33
  // skipping scala to enable pre-release suite to be easily used for updates until https://github.com/eclipse/che/issues/18662 is fixed
35
34
  suite.skip(`${stack} test`, async () => {
36
35
  suite (`Create ${stack} workspace`, async () => {
37
36
  workspaceHandlingTests.createAndOpenWorkspace(stack);
38
-
37
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
39
38
  test('Register running workspace', async () => {
40
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
- CheReporter.registerRunningWorkspace(workspaceName);
39
+ CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
42
40
  });
43
-
44
41
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
45
42
  });
46
43
 
@@ -67,8 +64,7 @@ suite.skip(`${stack} test`, async () => {
67
64
 
68
65
  suite ('Stopping and deleting the workspace', async () => {
69
66
  test(`Stop and remowe workspace`, async () => {
70
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
67
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
71
68
  });
72
69
  });
73
-
74
70
  });
@@ -9,23 +9,21 @@
9
9
  // **********************************************************************/
10
10
 
11
11
  import { e2eContainer } from '../../inversify.config';
12
- import { CLASSES } from '../../inversify.types';
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 { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
18
- import { TestWorkspaceUtil } from '../../utils/workspace/TestWorkspaceUtil';
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 workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
23
- const testWorkspaceUtils: TestWorkspaceUtil = e2eContainer.get<TestWorkspaceUtil>(CLASSES.WorkspaceUtil);
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
- workspaceName = await workspaceNameHandler.getNameFromUrl();
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: TestWorkspaceUtil = e2eContainer.get<TestWorkspaceUtil>(CLASSES.WorkspaceUtil);
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
- 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 { TestWorkspaceUtil } from '../../utils/workspace/TestWorkspaceUtil';
21
- import { TopMenu } from '../../pageobjects/ide/TopMenu';
22
- import { TimeoutConstants } from '../../TimeoutConstants';
23
- import { Dashboard } from '../../pageobjects/dashboard/Dashboard';
24
- import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
25
- import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
26
- import { Editor } from '../../pageobjects/ide/Editor';
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
- const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
29
- const ide: Ide = e2eContainer.get(CLASSES.Ide);
30
- const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
31
- const quickOpenContainer: QuickOpenContainer = e2eContainer.get(CLASSES.QuickOpenContainer);
32
- const topMenu: TopMenu = e2eContainer.get(CLASSES.TopMenu);
33
- const loginPage: ICheLoginPage = e2eContainer.get<ICheLoginPage>(TYPES.CheLogin);
34
- const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
35
- const gitPlugin: GitPlugin = e2eContainer.get(CLASSES.GitPlugin);
36
- const testWorkspaceUtils: TestWorkspaceUtil = e2eContainer.get<TestWorkspaceUtil>(CLASSES.WorkspaceUtil);
37
- const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
38
- const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
39
- const editor: Editor = e2eContainer.get(CLASSES.Editor);
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
- const workspaceName = 'gitSelfSignCert';
42
+ const workspaceName = 'gitSelfSignCert';
42
43
 
43
- suite('Checking git + self sign cert', async () => {
44
- const workspacePrefixUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/dashboard/#/ide/${TestConstants.TS_SELENIUM_USERNAME}/`;
45
- const gitProjectUrl = `https://${TestConstants.TS_SELF_HOSTED_GIT_SERVER_URL}/maxura/gitService.git`;
46
- const committedFile = 'README.md';
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
- suiteSetup(async function () {
49
- const wsConfig = await testWorkspaceUtils.getBaseDevfile();
50
- wsConfig.metadata!.name = workspaceName;
51
- await browserTabsUtil.navigateTo(TestConstants.TS_SELENIUM_BASE_URL);
52
- await loginPage.login();
53
- await testWorkspaceUtils.createWsFromDevFile(wsConfig);
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
- test('Wait until created workspace is started', async () => {
57
- await dashboard.waitPage();
58
- await browserTabsUtil.navigateTo(workspacePrefixUrl + workspaceName);
59
- await ide.waitWorkspaceAndIde();
60
- await projectTree.openProjectTreeContainer();
61
- await driverHelper.wait(TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
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
- test('Clone project', async () => {
66
- await cloneTestRepo(gitProjectUrl);
68
+ test('Clone project', async () => {
69
+ await cloneTestRepo(gitProjectUrl);
67
70
 
68
- await projectTree.waitProjectImportedNoSubfolder('gitService');
69
- await projectTree.waitItem('gitService/README.md');
70
- });
71
+ await projectTree.waitProjectImportedNoSubfolder('gitService');
72
+ await projectTree.waitItem('gitService/README.md');
73
+ });
71
74
 
72
- test('Change commit and push', async function changeCommitAndPushFunc() {
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
- suite('Stopping and deleting the workspace', async () => {
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
- async function cloneTestRepo(linkToRepo: string) {
97
- const confirmMessage = 'Clone from URL';
99
+ async function cloneTestRepo(linkToRepo: string) {
100
+ const confirmMessage = 'Clone from URL';
98
101
 
99
- await topMenu.selectOption('View', 'Find Command...');
100
- // workaround - reopen 'Find Command' container - https://github.com/eclipse/che/issues/19793
101
- await topMenu.selectOption('View', 'Find Command...');
102
- await quickOpenContainer.typeAndSelectSuggestion('clone', 'Git: Clone');
103
- await quickOpenContainer.typeAndSelectSuggestion(linkToRepo, confirmMessage);
104
- await gitPlugin.clickOnSelectRepositoryButton();
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
- await ide.waitAndApplyTrustNotification();
107
- }
109
+ await ide.waitAndApplyTrustNotification();
110
+ }
@@ -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: TestWorkspaceUtil = e2eContainer.get<TestWorkspaceUtil>(CLASSES.WorkspaceUtil);
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
- CheReporter.registerRunningWorkspace(wsNameCheckPropagatingKeys);
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: TestWorkspaceUtil = e2eContainer.get<TestWorkspaceUtil>(CLASSES.WorkspaceUtil);
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(workspaceName);
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(workspaceName);
53
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
57
54
  });
58
55
  });
59
56