@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.
Files changed (124) hide show
  1. package/dist/driver/CheReporter.js +5 -2
  2. package/dist/driver/CheReporter.js.map +1 -1
  3. package/dist/pageobjects/ide/ProjectTree.js +6 -12
  4. package/dist/pageobjects/ide/ProjectTree.js.map +1 -1
  5. package/dist/tests/devfiles/CSlashCPlusPlus.spec.js +10 -2
  6. package/dist/tests/devfiles/CSlashCPlusPlus.spec.js.map +1 -1
  7. package/dist/tests/devfiles/DevfileSmoke.spec.js +10 -2
  8. package/dist/tests/devfiles/DevfileSmoke.spec.js.map +1 -1
  9. package/dist/tests/devfiles/DotNetCore.spec.js +10 -2
  10. package/dist/tests/devfiles/DotNetCore.spec.js.map +1 -1
  11. package/dist/tests/devfiles/Go.spec.js +10 -2
  12. package/dist/tests/devfiles/Go.spec.js.map +1 -1
  13. package/dist/tests/devfiles/JavaMaven.spec.js +10 -2
  14. package/dist/tests/devfiles/JavaMaven.spec.js.map +1 -1
  15. package/dist/tests/devfiles/JavaSpringBoot.spec.js +10 -2
  16. package/dist/tests/devfiles/JavaSpringBoot.spec.js.map +1 -1
  17. package/dist/tests/devfiles/JavaVertx.spec.js +10 -2
  18. package/dist/tests/devfiles/JavaVertx.spec.js.map +1 -1
  19. package/dist/tests/devfiles/NodeJS.spec.js +10 -2
  20. package/dist/tests/devfiles/NodeJS.spec.js.map +1 -1
  21. package/dist/tests/devfiles/PHPSimple.spec.js +10 -2
  22. package/dist/tests/devfiles/PHPSimple.spec.js.map +1 -1
  23. package/dist/tests/devfiles/Python.spec.js +10 -2
  24. package/dist/tests/devfiles/Python.spec.js.map +1 -1
  25. package/dist/tests/devfiles/PythonDjango.spec.js +10 -2
  26. package/dist/tests/devfiles/PythonDjango.spec.js.map +1 -1
  27. package/dist/tests/devfiles/Quarkus.spec.js +10 -2
  28. package/dist/tests/devfiles/Quarkus.spec.js.map +1 -1
  29. package/dist/tests/devfiles/Scala.spec.js +10 -2
  30. package/dist/tests/devfiles/Scala.spec.js.map +1 -1
  31. package/dist/tests/e2e/FactoryUrl.spec.js +9 -4
  32. package/dist/tests/e2e/FactoryUrl.spec.js.map +1 -1
  33. package/dist/tests/e2e/GitPublishBranch.spec.js +5 -2
  34. package/dist/tests/e2e/GitPublishBranch.spec.js.map +1 -1
  35. package/dist/tests/e2e/GitSelfSignCert.spec.js +0 -2
  36. package/dist/tests/e2e/GitSelfSignCert.spec.js.map +1 -1
  37. package/dist/tests/e2e/GitSsh.spec.js +6 -3
  38. package/dist/tests/e2e/GitSsh.spec.js.map +1 -1
  39. package/dist/tests/e2e/OpenshiftConnector.spec.js +5 -2
  40. package/dist/tests/e2e/OpenshiftConnector.spec.js.map +1 -1
  41. package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js +7 -3
  42. package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +1 -1
  43. package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js +7 -3
  44. package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +1 -1
  45. package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js +7 -3
  46. package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +1 -1
  47. package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js +2 -2
  48. package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js.map +1 -1
  49. package/dist/tests/e2e_happy_path/HappyPath.spec.js +13 -13
  50. package/dist/tests/e2e_happy_path/HappyPath.spec.js.map +1 -1
  51. package/dist/tests/intelij/IntelijOpenWorkspace.spec.js +6 -2
  52. package/dist/tests/intelij/IntelijOpenWorkspace.spec.js.map +1 -1
  53. package/dist/tests/load_test/LoadTest.spec.js +5 -2
  54. package/dist/tests/load_test/LoadTest.spec.js.map +1 -1
  55. package/dist/tests/login/LinkCheAndOcpUsers.spec.js +2 -2
  56. package/dist/tests/login/LinkCheAndOcpUsers.spec.js.map +1 -1
  57. package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js +9 -4
  58. package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js.map +1 -1
  59. package/dist/tests/plugins/InstallPluginUsingUI.spec.js +10 -4
  60. package/dist/tests/plugins/InstallPluginUsingUI.spec.js.map +1 -1
  61. package/dist/tests/plugins/JavaPlugin.spec.js +8 -4
  62. package/dist/tests/plugins/JavaPlugin.spec.js.map +1 -1
  63. package/dist/tests/plugins/PhpPlugin.spec.js +10 -12
  64. package/dist/tests/plugins/PhpPlugin.spec.js.map +1 -1
  65. package/dist/tests/plugins/PythonPlugin.spec.js +8 -4
  66. package/dist/tests/plugins/PythonPlugin.spec.js.map +1 -1
  67. package/dist/tests/plugins/TypescriptPlugin.spec.js +8 -4
  68. package/dist/tests/plugins/TypescriptPlugin.spec.js.map +1 -1
  69. package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js +10 -3
  70. package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js.map +1 -1
  71. package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js +10 -3
  72. package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js.map +1 -1
  73. package/dist/tests/plugins/VscodeValePlugin.spec.js +10 -3
  74. package/dist/tests/plugins/VscodeValePlugin.spec.js.map +1 -1
  75. package/dist/tests/plugins/VscodeXmlPlugin.spec.js +14 -15
  76. package/dist/tests/plugins/VscodeXmlPlugin.spec.js.map +1 -1
  77. package/dist/tests/plugins/VscodeYamlPlugin.spec.js +8 -4
  78. package/dist/tests/plugins/VscodeYamlPlugin.spec.js.map +1 -1
  79. package/dist/testsLibrary/CodeExecutionTests.js +2 -14
  80. package/dist/testsLibrary/CodeExecutionTests.js.map +1 -1
  81. package/dist/testsLibrary/WorkspaceHandlingTests.js +11 -68
  82. package/dist/testsLibrary/WorkspaceHandlingTests.js.map +1 -1
  83. package/driver/CheReporter.ts +8 -2
  84. package/package.json +2 -2
  85. package/pageobjects/ide/ProjectTree.ts +8 -13
  86. package/tests/devfiles/CSlashCPlusPlus.spec.ts +9 -2
  87. package/tests/devfiles/DevfileSmoke.spec.ts +9 -2
  88. package/tests/devfiles/DotNetCore.spec.ts +9 -2
  89. package/tests/devfiles/Go.spec.ts +7 -2
  90. package/tests/devfiles/JavaMaven.spec.ts +9 -2
  91. package/tests/devfiles/JavaSpringBoot.spec.ts +9 -2
  92. package/tests/devfiles/JavaVertx.spec.ts +9 -2
  93. package/tests/devfiles/NodeJS.spec.ts +9 -2
  94. package/tests/devfiles/PHPSimple.spec.ts +9 -2
  95. package/tests/devfiles/Python.spec.ts +9 -2
  96. package/tests/devfiles/PythonDjango.spec.ts +9 -2
  97. package/tests/devfiles/Quarkus.spec.ts +9 -2
  98. package/tests/devfiles/Scala.spec.ts +10 -2
  99. package/tests/e2e/FactoryUrl.spec.ts +8 -4
  100. package/tests/e2e/GitPublishBranch.spec.ts +2 -2
  101. package/tests/e2e/GitSelfSignCert.spec.ts +65 -66
  102. package/tests/e2e/GitSsh.spec.ts +3 -3
  103. package/tests/e2e/OpenshiftConnector.spec.ts +2 -2
  104. package/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +5 -2
  105. package/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.ts +5 -2
  106. package/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.ts +5 -2
  107. package/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.ts +2 -2
  108. package/tests/e2e_happy_path/HappyPath.spec.ts +10 -13
  109. package/tests/intelij/IntelijOpenWorkspace.spec.ts +4 -2
  110. package/tests/load_test/LoadTest.spec.ts +2 -2
  111. package/tests/login/LinkCheAndOcpUsers.spec.ts +3 -4
  112. package/tests/plugins/GitHubPullRequestPlugin.spec.ts +7 -4
  113. package/tests/plugins/InstallPluginUsingUI.spec.ts +9 -4
  114. package/tests/plugins/JavaPlugin.spec.ts +6 -4
  115. package/tests/plugins/PhpPlugin.spec.ts +9 -3
  116. package/tests/plugins/PythonPlugin.spec.ts +6 -4
  117. package/tests/plugins/TypescriptPlugin.spec.ts +6 -4
  118. package/tests/plugins/VscodeKubernetesPlugin.spec.ts +9 -3
  119. package/tests/plugins/VscodeShellcheckPlugin.spec.ts +9 -3
  120. package/tests/plugins/VscodeValePlugin.spec.ts +9 -3
  121. package/tests/plugins/VscodeXmlPlugin.spec.ts +14 -16
  122. package/tests/plugins/VscodeYamlPlugin.spec.ts +7 -4
  123. package/testsLibrary/CodeExecutionTests.ts +1 -9
  124. package/testsLibrary/WorkspaceHandlingTests.ts +9 -66
@@ -14,6 +14,7 @@ import { e2eContainer } from '../../inversify.config';
14
14
  import { CodeExecutionTests } from '../../testsLibrary/CodeExecutionTests';
15
15
  import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
16
16
  import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
17
+ import CheReporter from '../../driver/CheReporter';
17
18
 
18
19
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
19
20
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -27,11 +28,17 @@ const tabTitle: string = 'HttpApplication.java';
27
28
  const codeNavigationClassName: string = 'RouterImpl.class';
28
29
  const buildTaskName: string = 'maven build';
29
30
  const stack: string = 'Java Vert.x';
31
+ let workspaceName: string;
30
32
 
31
33
  suite(`${stack} test`, async () => {
32
34
  suite (`Create ${stack} workspace`, async () => {
33
35
  workspaceHandlingTests.createAndOpenWorkspace(stack);
34
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
36
+
37
+ test('Register running workspace', async () => {
38
+ workspaceName = WorkspaceHandlingTests.getWorkspaceName();
39
+ CheReporter.registerRunningWorkspace(workspaceName);
40
+ });
41
+
35
42
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
36
43
  });
37
44
 
@@ -54,7 +61,7 @@ suite(`${stack} test`, async () => {
54
61
 
55
62
  suite ('Stopping and deleting the workspace', async () => {
56
63
  test(`Stop and remowe workspace`, async () => {
57
- await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
64
+ await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
58
65
  });
59
66
  });
60
67
 
@@ -14,6 +14,7 @@ import { e2eContainer } from '../../inversify.config';
14
14
  import { CodeExecutionTests } from '../../testsLibrary/CodeExecutionTests';
15
15
  import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
16
16
  import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
17
+ import CheReporter from '../../driver/CheReporter';
17
18
 
18
19
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
19
20
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -29,12 +30,18 @@ const fileName: string = `app.js`;
29
30
  const taskDownloadDependencies: string = 'download dependencies';
30
31
  const taskRunWebApp: string = 'run the web app';
31
32
  const taskExpectedDialogText: string = 'Process nodejs is now listening on port 3000. Open it ?';
33
+ let workspaceName: string;
32
34
 
33
35
  suite(`${workspaceStack} test`, async () => {
34
36
 
35
37
  suite(`Create ${workspaceStack}`, async () => {
36
38
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
37
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
39
+
40
+ test('Register running workspace', async () => {
41
+ workspaceName = WorkspaceHandlingTests.getWorkspaceName();
42
+ CheReporter.registerRunningWorkspace(workspaceName);
43
+ });
44
+
38
45
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
39
46
  });
40
47
 
@@ -61,7 +68,7 @@ suite(`${workspaceStack} test`, async () => {
61
68
 
62
69
  suite('Stop and remove workspace', async() => {
63
70
  test(`Stop and remowe workspace`, async () => {
64
- await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
71
+ await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
65
72
  });
66
73
  });
67
74
  });
@@ -15,6 +15,7 @@ import { LanguageServerTests } from '../../testsLibrary/LanguageServerTests';
15
15
  import { CodeExecutionTests } from '../../testsLibrary/CodeExecutionTests';
16
16
  import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
17
17
  import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
18
+ import CheReporter from '../../driver/CheReporter';
18
19
 
19
20
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
20
21
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -29,11 +30,17 @@ const tabTitle: string = 'index.php';
29
30
  const depTaskName: string = 'Configure Apache Web Server DocumentRoot';
30
31
  const buildTaskName: string = 'Start Apache Web Server';
31
32
  const stack: string = 'PHP Simple';
33
+ let workspaceName: string;
32
34
 
33
35
  suite(`${stack} test`, async () => {
34
36
  suite (`Create ${stack} workspace`, async () => {
35
37
  workspaceHandlingTests.createAndOpenWorkspace(stack);
36
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
38
+
39
+ test('Register running workspace', async () => {
40
+ workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
+ CheReporter.registerRunningWorkspace(workspaceName);
42
+ });
43
+
37
44
  projectAndFileTests.waitWorkspaceReadinessNoSubfolder(workspaceSampleName, false);
38
45
  });
39
46
 
@@ -60,7 +67,7 @@ suite(`${stack} test`, async () => {
60
67
 
61
68
  suite ('Stopping and deleting the workspace', async () => {
62
69
  test(`Stop and remowe workspace`, async () => {
63
- await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
70
+ await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
64
71
  });
65
72
  });
66
73
 
@@ -14,6 +14,7 @@ import { e2eContainer } from '../../inversify.config';
14
14
  import { CodeExecutionTests } from '../../testsLibrary/CodeExecutionTests';
15
15
  import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
16
16
  import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
17
+ import CheReporter from '../../driver/CheReporter';
17
18
 
18
19
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
19
20
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -26,12 +27,18 @@ const workspaceSampleName: string = 'python-hello-world';
26
27
  const taskRunName: string = 'run';
27
28
  const fileFolderPath: string = `${workspaceSampleName}`;
28
29
  const fileName: string = `hello-world.py`;
30
+ let workspaceName: string;
29
31
 
30
32
  suite(`${workspaceStack} test`, async () => {
31
33
 
32
34
  suite(`Create ${workspaceStack} workspace`, async () => {
33
35
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
34
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
36
+
37
+ test('Register running workspace', async () => {
38
+ workspaceName = WorkspaceHandlingTests.getWorkspaceName();
39
+ CheReporter.registerRunningWorkspace(workspaceName);
40
+ });
41
+
35
42
  projectAndFileTests.waitWorkspaceReadinessNoSubfolder(workspaceSampleName, false);
36
43
  });
37
44
 
@@ -54,7 +61,7 @@ suite(`${workspaceStack} test`, async () => {
54
61
 
55
62
  suite ('Stopping and deleting the workspace', async () => {
56
63
  test(`Stop and remowe workspace`, async () => {
57
- await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
64
+ await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
58
65
  });
59
66
  });
60
67
  });
@@ -13,6 +13,7 @@ import { CodeExecutionTests } from '../../testsLibrary/CodeExecutionTests';
13
13
  import { e2eContainer } from '../../inversify.config';
14
14
  import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
15
15
  import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
16
+ import CheReporter from '../../driver/CheReporter';
16
17
 
17
18
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
18
19
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -28,12 +29,18 @@ const taskRunServer: string = 'run server';
28
29
  const taskRunServerInDebugMode: string = 'run server in debug mode';
29
30
  const taskExpectedDialogText: string = 'Process django is now listening on port 7000. Open it ?';
30
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;
31
33
 
32
34
  suite(`${workspaceStack} test`, async () => {
33
35
 
34
36
  suite(`Create ${workspaceStack} workspace`, async () => {
35
37
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
36
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
38
+
39
+ test('Register running workspace', async () => {
40
+ workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
+ CheReporter.registerRunningWorkspace(workspaceName);
42
+ });
43
+
37
44
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
38
45
  });
39
46
 
@@ -57,7 +64,7 @@ suite(`${workspaceStack} test`, async () => {
57
64
 
58
65
  suite ('Stopping and deleting the workspace', async () => {
59
66
  test(`Stop and remowe workspace`, async () => {
60
- await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
67
+ await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
61
68
  });
62
69
  });
63
70
  });
@@ -14,6 +14,7 @@ import { e2eContainer } from '../../inversify.config';
14
14
  import { CodeExecutionTests } from '../../testsLibrary/CodeExecutionTests';
15
15
  import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
16
16
  import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
17
+ import CheReporter from '../../driver/CheReporter';
17
18
 
18
19
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
19
20
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -29,11 +30,17 @@ const fileName: string = `GreetingService.java`;
29
30
  const taskPackage: string = 'Package';
30
31
  const taskPackageNative: string = 'Package Native';
31
32
  const taskStartNative: string = 'Start Native';
33
+ let workspaceName: string;
32
34
 
33
35
  suite(`${workspaceStack} test`, async () => {
34
36
  suite(`Create ${workspaceStack}`, async () => {
35
37
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
36
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
38
+
39
+ test('Register running workspace', async () => {
40
+ workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
+ CheReporter.registerRunningWorkspace(workspaceName);
42
+ });
43
+
37
44
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
38
45
  });
39
46
 
@@ -66,7 +73,7 @@ suite(`${workspaceStack} test`, async () => {
66
73
 
67
74
  suite('Stop and remove workspace', async() => {
68
75
  test(`Stop and remowe workspace`, async () => {
69
- await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
76
+ await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
70
77
  });
71
78
  });
72
79
  });
@@ -14,6 +14,7 @@ import { e2eContainer } from '../../inversify.config';
14
14
  import { CodeExecutionTests } from '../../testsLibrary/CodeExecutionTests';
15
15
  import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
16
16
  import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
17
+ import CheReporter from '../../driver/CheReporter';
17
18
 
18
19
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
19
20
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -28,12 +29,18 @@ const compileTaskkName: string = 'sbt compile';
28
29
  const runTaskName: string = 'sbt run';
29
30
  const testTaskName: string = 'sbt test';
30
31
  const stack: string = 'Scala';
32
+ let workspaceName: string;
31
33
 
32
34
  // skipping scala to enable pre-release suite to be easily used for updates until https://github.com/eclipse/che/issues/18662 is fixed
33
35
  suite.skip(`${stack} test`, async () => {
34
36
  suite (`Create ${stack} workspace`, async () => {
35
37
  workspaceHandlingTests.createAndOpenWorkspace(stack);
36
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
38
+
39
+ test('Register running workspace', async () => {
40
+ workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
+ CheReporter.registerRunningWorkspace(workspaceName);
42
+ });
43
+
37
44
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
38
45
  });
39
46
 
@@ -60,7 +67,8 @@ suite.skip(`${stack} test`, async () => {
60
67
 
61
68
  suite ('Stopping and deleting the workspace', async () => {
62
69
  test(`Stop and remowe workspace`, async () => {
63
- await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
70
+ await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
64
71
  });
65
72
  });
73
+
66
74
  });
@@ -12,18 +12,20 @@ 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';
15
16
  import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
17
+ import { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
16
18
  import { TestWorkspaceUtil } from '../../utils/workspace/TestWorkspaceUtil';
17
- import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
18
19
 
19
20
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
20
21
  const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
22
+ const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
21
23
  const testWorkspaceUtils: TestWorkspaceUtil = e2eContainer.get<TestWorkspaceUtil>(TYPES.WorkspaceUtil);
22
- const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get<WorkspaceHandlingTests>(CLASSES.WorkspaceHandlingTests);
23
24
 
24
25
  const factoryUrl : string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=https://raw.githubusercontent.com/eclipse/che-devfile-registry/master/devfiles/java-maven/devfile.yaml`;
25
26
  const workspaceSampleName: string = 'console-java-simple';
26
27
  const workspaceRootFolderName: string = 'src';
28
+ let workspaceName: string;
27
29
 
28
30
  // the suite expect user to be logged in
29
31
  suite('Workspace creation via factory url', async () => {
@@ -34,13 +36,15 @@ suite('Workspace creation via factory url', async () => {
34
36
  });
35
37
 
36
38
  suite('Wait workspace readyness', async () => {
37
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
38
39
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName);
39
40
  });
40
41
 
41
42
  suite ('Stopping and deleting the workspace', async () => {
42
43
  test('Stop and remove workspace', async () => {
43
- await testWorkspaceUtils.cleanUpRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
44
+ workspaceName = await workspaceNameHandler.getNameFromUrl();
45
+ CheReporter.registerRunningWorkspace(workspaceName);
46
+
47
+ await testWorkspaceUtils.cleanUpRunningWorkspace(workspaceName);
44
48
  });
45
49
  });
46
50
 
@@ -22,8 +22,8 @@ import { TestWorkspaceUtil } from '../../utils/workspace/TestWorkspaceUtil';
22
22
  import { TopMenu } from '../../pageobjects/ide/TopMenu';
23
23
  import { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
24
24
  import { By } from 'selenium-webdriver';
25
+ import CheReporter from '../../driver/CheReporter';
25
26
  import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
26
- import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
27
27
 
28
28
  const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
29
29
  const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
@@ -53,7 +53,7 @@ suite('Publish branch in git extension', async () => {
53
53
  test('Login into workspace', async () => {
54
54
  await browserTabsUtil.navigateTo(workspacePrefixUrl + wsNameGitPublishBranch);
55
55
  await loginPage.login();
56
- WorkspaceHandlingTests.setWorkspaceName(wsNameGitPublishBranch);
56
+ CheReporter.registerRunningWorkspace(wsNameGitPublishBranch);
57
57
  await ide.waitWorkspaceAndIde();
58
58
  await projectTree.openProjectTreeContainer();
59
59
  await driverHelper.wait(15000);
@@ -8,69 +8,68 @@
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 { 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';
27
27
 
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>(TYPES.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);
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>(TYPES.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);
40
40
 
41
- const workspaceName = 'gitSelfSignCert';
41
+ const workspaceName = 'gitSelfSignCert';
42
42
 
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';
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';
47
47
 
48
- suiteSetup(async function () {
49
- const wsConfig = await testWorkspaceUtils.getBaseDevfile();
50
- wsConfig.metadata!.name = workspaceName;
51
- WorkspaceHandlingTests.setWorkspaceName(workspaceName);
52
- await browserTabsUtil.navigateTo(TestConstants.TS_SELENIUM_BASE_URL);
53
- await loginPage.login();
54
- await testWorkspaceUtils.createWsFromDevFile(wsConfig);
55
- });
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
+ });
56
55
 
57
- test('Wait until created workspace is started', async () => {
58
- await dashboard.waitPage();
59
- await browserTabsUtil.navigateTo(workspacePrefixUrl + workspaceName);
60
- await ide.waitWorkspaceAndIde();
61
- await projectTree.openProjectTreeContainer();
62
- await driverHelper.wait(TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
63
- });
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
+ });
64
63
 
65
64
 
66
- test('Clone project', async () => {
67
- await cloneTestRepo(gitProjectUrl);
65
+ test('Clone project', async () => {
66
+ await cloneTestRepo(gitProjectUrl);
68
67
 
69
- await projectTree.waitProjectImportedNoSubfolder('gitService');
70
- await projectTree.waitItem('gitService/README.md');
71
- });
68
+ await projectTree.waitProjectImportedNoSubfolder('gitService');
69
+ await projectTree.waitItem('gitService/README.md');
70
+ });
72
71
 
73
- test('Change commit and push', async function changeCommitAndPushFunc() {
72
+ test('Change commit and push', async function changeCommitAndPushFunc() {
74
73
  const currentDate: string = Date.now().toString();
75
74
  await projectTree.expandPathAndOpenFile('gitService', committedFile);
76
75
  await editor.type(committedFile, currentDate + '\n', 1);
@@ -86,23 +85,23 @@ suite('Checking git + self sign cert', async () => {
86
85
  await gitPlugin.waitDataIsSynchronized();
87
86
  });
88
87
 
89
- });
88
+ });
90
89
 
91
- suite('Stopping and deleting the workspace', async () => {
90
+ suite('Stopping and deleting the workspace', async () => {
92
91
  test(`Stop and remove workspace`, async () => {
93
92
  await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
94
93
  });
95
94
  });
96
95
 
97
- async function cloneTestRepo(linkToRepo: string) {
98
- const confirmMessage = 'Clone from URL';
96
+ async function cloneTestRepo(linkToRepo: string) {
97
+ const confirmMessage = 'Clone from URL';
99
98
 
100
- await topMenu.selectOption('View', 'Find Command...');
101
- // workaround - reopen 'Find Command' container - https://github.com/eclipse/che/issues/19793
102
- await topMenu.selectOption('View', 'Find Command...');
103
- await quickOpenContainer.typeAndSelectSuggestion('clone', 'Git: Clone');
104
- await quickOpenContainer.typeAndSelectSuggestion(linkToRepo, confirmMessage);
105
- await gitPlugin.clickOnSelectRepositoryButton();
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();
106
105
 
107
- await ide.waitAndApplyTrustNotification();
108
- }
106
+ await ide.waitAndApplyTrustNotification();
107
+ }
@@ -27,7 +27,7 @@ import { TopMenu } from '../../pageobjects/ide/TopMenu';
27
27
  import { TimeoutConstants } from '../../TimeoutConstants';
28
28
  import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
29
29
  import { Dashboard } from '../..';
30
- import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
30
+ import CheReporter from '../../driver/CheReporter';
31
31
 
32
32
  const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
33
33
  const ide: Ide = e2eContainer.get(CLASSES.Ide);
@@ -61,7 +61,7 @@ suite('Git with ssh workflow', async () => {
61
61
  test('Login into workspace and open tree container', async () => {
62
62
  await dashboard.openDashboard();
63
63
  await browserTabsUtil.navigateTo(workspacePrefixUrl + wsNameCheckGeneratingKeys);
64
- WorkspaceHandlingTests.setWorkspaceName(wsNameCheckGeneratingKeys);
64
+ CheReporter.registerRunningWorkspace(wsNameCheckGeneratingKeys);
65
65
  await ide.waitWorkspaceAndIde();
66
66
  await projectTree.openProjectTreeContainer();
67
67
  await driverHelper.wait(TimeoutConstants.TS_PROJECT_TREE_TIMEOUT);
@@ -111,7 +111,7 @@ suite('Git with ssh workflow', async () => {
111
111
  await testWorkspaceUtils.createWsFromDevFile(data);
112
112
  await dashboard.openDashboard();
113
113
  await browserTabsUtil.navigateTo(workspacePrefixUrl + wsNameCheckPropagatingKeys);
114
- WorkspaceHandlingTests.setWorkspaceName(wsNameCheckPropagatingKeys);
114
+ CheReporter.registerRunningWorkspace(wsNameCheckPropagatingKeys);
115
115
  await ide.waitWorkspaceAndIde();
116
116
  await projectTree.openProjectTreeContainer();
117
117
  await driverHelper.wait(TimeoutConstants.TS_PROJECT_TREE_TIMEOUT);
@@ -26,7 +26,7 @@ import { PreferencesHandler, TerminalRendererType } from '../../utils/Preference
26
26
  import { TestWorkspaceUtil } from '../../utils/workspace/TestWorkspaceUtil';
27
27
  import { TimeoutConstants } from '../../TimeoutConstants';
28
28
  import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
29
- import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
29
+ import CheReporter from '../../driver/CheReporter';
30
30
 
31
31
  const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
32
32
  const ide: Ide = e2eContainer.get(CLASSES.Ide);
@@ -77,7 +77,7 @@ suite('Openshift connector user story', async () => {
77
77
  test('Login into workspace and open plugin', async () => {
78
78
  await dashboard.openDashboard();
79
79
  await browserTabsUtil.navigateTo(workspacePrefixUrl + wsName);
80
- WorkspaceHandlingTests.setWorkspaceName(wsName);
80
+ CheReporter.registerRunningWorkspace(wsName);
81
81
  await ide.waitWorkspaceAndIde();
82
82
  await projectTree.openProjectTreeContainer();
83
83
  await projectTree.waitProjectImported(projectName, 'index.js');
@@ -12,6 +12,7 @@ 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';
15
16
  import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
16
17
  import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
17
18
  import { PreferencesHandler } from '../../../utils/PreferencesHandler';
@@ -27,6 +28,7 @@ const workspaceRootFolderName: string = 'src';
27
28
  const fileName: string = 'pom.xml';
28
29
  const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/main/java/org/eclipse/che/examples`;
29
30
  const tabTitle: string = 'HelloWorld.java';
31
+ let workspaceName: string = 'console-java-simple';
30
32
 
31
33
  suite('Workspace creation via factory url', async () => {
32
34
  suite('Open factory URL', async () => {
@@ -36,10 +38,11 @@ suite('Workspace creation via factory url', async () => {
36
38
  });
37
39
 
38
40
  suite('Wait workspace readyness', async () => {
39
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
40
41
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName);
41
42
 
42
43
  test('Set confirmExit preference to never', async () => {
44
+ CheReporter.registerRunningWorkspace(workspaceName);
45
+
43
46
  await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
44
47
  });
45
48
  });
@@ -53,7 +56,7 @@ suite('Workspace creation via factory url', async () => {
53
56
 
54
57
  suite ('Stopping and deleting the workspace', async () => {
55
58
  test('Stop and remove workspace', async () => {
56
- await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
59
+ await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
57
60
  });
58
61
  });
59
62
 
@@ -12,6 +12,7 @@ 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';
15
16
  import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
16
17
  import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
17
18
  import { PreferencesHandler } from '../../../utils/PreferencesHandler';
@@ -26,6 +27,7 @@ const workspaceSampleName: string = 'console-java-simple';
26
27
  const workspaceRootFolderName: string = 'src';
27
28
  const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/main/java/org/eclipse/che/examples`;
28
29
  const tabTitle: string = 'HelloWorld.java';
30
+ let workspaceName: string = 'console-java-simple';
29
31
 
30
32
  suite('Workspace creation via factory url', async () => {
31
33
  suite('Open factory URL', async () => {
@@ -35,10 +37,11 @@ suite('Workspace creation via factory url', async () => {
35
37
  });
36
38
 
37
39
  suite('Wait workspace readyness', async () => {
38
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
39
40
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName);
40
41
 
41
42
  test('Set confirmExit preference to never', async () => {
43
+ CheReporter.registerRunningWorkspace(workspaceName);
44
+
42
45
  await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
43
46
  });
44
47
  });
@@ -50,7 +53,7 @@ suite('Workspace creation via factory url', async () => {
50
53
 
51
54
  suite ('Stopping and deleting the workspace', async () => {
52
55
  test('Stop and remove workspace', async () => {
53
- await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
56
+ await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
54
57
  });
55
58
  });
56
59
 
@@ -12,6 +12,7 @@ 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';
15
16
  import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
16
17
  import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
17
18
  import { PreferencesHandler } from '../../../utils/PreferencesHandler';
@@ -26,6 +27,7 @@ const workspaceSampleName: string = 'console-java-simple';
26
27
  const workspaceRootFolderName: string = 'src';
27
28
  const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/main/java/org/eclipse/che/examples`;
28
29
  const tabTitle: string = 'HelloWorld.java';
30
+ let workspaceName: string = 'console-java-simple';
29
31
 
30
32
  suite('Workspace creation via factory url', async () => {
31
33
  suite('Open factory URL', async () => {
@@ -35,10 +37,11 @@ suite('Workspace creation via factory url', async () => {
35
37
  });
36
38
 
37
39
  suite('Wait workspace readyness', async () => {
38
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
39
40
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName);
40
41
 
41
42
  test('Set confirmExit preference to never', async () => {
43
+ CheReporter.registerRunningWorkspace(workspaceName);
44
+
42
45
  await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
43
46
  });
44
47
  });
@@ -50,7 +53,7 @@ suite('Workspace creation via factory url', async () => {
50
53
 
51
54
  suite ('Stopping and deleting the workspace', async () => {
52
55
  test('Stop and remove workspace', async () => {
53
- await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
56
+ await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
54
57
  });
55
58
  });
56
59