@eclipse-che/che-e2e 7.46.1-dev-cc22326 → 7.46.1-dev-957e450

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 (130) hide show
  1. package/dist/driver/CheReporter.js +2 -5
  2. package/dist/driver/CheReporter.js.map +1 -1
  3. package/dist/pageobjects/ide/Editor.js +1 -1
  4. package/dist/pageobjects/ide/Editor.js.map +1 -1
  5. package/dist/pageobjects/ide/PreviewWidget.js +3 -0
  6. package/dist/pageobjects/ide/PreviewWidget.js.map +1 -1
  7. package/dist/pageobjects/ide/ProjectTree.js +12 -6
  8. package/dist/pageobjects/ide/ProjectTree.js.map +1 -1
  9. package/dist/tests/devfiles/CSlashCPlusPlus.spec.js +2 -10
  10. package/dist/tests/devfiles/CSlashCPlusPlus.spec.js.map +1 -1
  11. package/dist/tests/devfiles/DevfileSmoke.spec.js +2 -10
  12. package/dist/tests/devfiles/DevfileSmoke.spec.js.map +1 -1
  13. package/dist/tests/devfiles/DotNetCore.spec.js +2 -10
  14. package/dist/tests/devfiles/DotNetCore.spec.js.map +1 -1
  15. package/dist/tests/devfiles/Go.spec.js +2 -10
  16. package/dist/tests/devfiles/Go.spec.js.map +1 -1
  17. package/dist/tests/devfiles/JavaMaven.spec.js +2 -10
  18. package/dist/tests/devfiles/JavaMaven.spec.js.map +1 -1
  19. package/dist/tests/devfiles/JavaSpringBoot.spec.js +2 -10
  20. package/dist/tests/devfiles/JavaSpringBoot.spec.js.map +1 -1
  21. package/dist/tests/devfiles/JavaVertx.spec.js +2 -10
  22. package/dist/tests/devfiles/JavaVertx.spec.js.map +1 -1
  23. package/dist/tests/devfiles/NodeJS.spec.js +2 -10
  24. package/dist/tests/devfiles/NodeJS.spec.js.map +1 -1
  25. package/dist/tests/devfiles/PHPSimple.spec.js +2 -10
  26. package/dist/tests/devfiles/PHPSimple.spec.js.map +1 -1
  27. package/dist/tests/devfiles/Python.spec.js +2 -10
  28. package/dist/tests/devfiles/Python.spec.js.map +1 -1
  29. package/dist/tests/devfiles/PythonDjango.spec.js +2 -10
  30. package/dist/tests/devfiles/PythonDjango.spec.js.map +1 -1
  31. package/dist/tests/devfiles/Quarkus.spec.js +2 -10
  32. package/dist/tests/devfiles/Quarkus.spec.js.map +1 -1
  33. package/dist/tests/devfiles/Scala.spec.js +2 -10
  34. package/dist/tests/devfiles/Scala.spec.js.map +1 -1
  35. package/dist/tests/e2e/FactoryUrl.spec.js +4 -9
  36. package/dist/tests/e2e/FactoryUrl.spec.js.map +1 -1
  37. package/dist/tests/e2e/GitPublishBranch.spec.js +2 -5
  38. package/dist/tests/e2e/GitPublishBranch.spec.js.map +1 -1
  39. package/dist/tests/e2e/GitSelfSignCert.spec.js +2 -0
  40. package/dist/tests/e2e/GitSelfSignCert.spec.js.map +1 -1
  41. package/dist/tests/e2e/GitSsh.spec.js +3 -6
  42. package/dist/tests/e2e/GitSsh.spec.js.map +1 -1
  43. package/dist/tests/e2e/OpenshiftConnector.spec.js +2 -5
  44. package/dist/tests/e2e/OpenshiftConnector.spec.js.map +1 -1
  45. package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js +3 -7
  46. package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +1 -1
  47. package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js +3 -7
  48. package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +1 -1
  49. package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js +3 -7
  50. package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +1 -1
  51. package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js +2 -2
  52. package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js.map +1 -1
  53. package/dist/tests/e2e_happy_path/HappyPath.spec.js +13 -13
  54. package/dist/tests/e2e_happy_path/HappyPath.spec.js.map +1 -1
  55. package/dist/tests/intelij/IntelijOpenWorkspace.spec.js +2 -6
  56. package/dist/tests/intelij/IntelijOpenWorkspace.spec.js.map +1 -1
  57. package/dist/tests/load_test/LoadTest.spec.js +2 -5
  58. package/dist/tests/load_test/LoadTest.spec.js.map +1 -1
  59. package/dist/tests/login/LinkCheAndOcpUsers.spec.js +2 -2
  60. package/dist/tests/login/LinkCheAndOcpUsers.spec.js.map +1 -1
  61. package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js +4 -9
  62. package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js.map +1 -1
  63. package/dist/tests/plugins/InstallPluginUsingUI.spec.js +4 -10
  64. package/dist/tests/plugins/InstallPluginUsingUI.spec.js.map +1 -1
  65. package/dist/tests/plugins/JavaPlugin.spec.js +4 -8
  66. package/dist/tests/plugins/JavaPlugin.spec.js.map +1 -1
  67. package/dist/tests/plugins/PhpPlugin.spec.js +12 -10
  68. package/dist/tests/plugins/PhpPlugin.spec.js.map +1 -1
  69. package/dist/tests/plugins/PythonPlugin.spec.js +4 -8
  70. package/dist/tests/plugins/PythonPlugin.spec.js.map +1 -1
  71. package/dist/tests/plugins/TypescriptPlugin.spec.js +4 -8
  72. package/dist/tests/plugins/TypescriptPlugin.spec.js.map +1 -1
  73. package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js +3 -10
  74. package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js.map +1 -1
  75. package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js +3 -10
  76. package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js.map +1 -1
  77. package/dist/tests/plugins/VscodeValePlugin.spec.js +3 -10
  78. package/dist/tests/plugins/VscodeValePlugin.spec.js.map +1 -1
  79. package/dist/tests/plugins/VscodeXmlPlugin.spec.js +10 -22
  80. package/dist/tests/plugins/VscodeXmlPlugin.spec.js.map +1 -1
  81. package/dist/tests/plugins/VscodeYamlPlugin.spec.js +4 -8
  82. package/dist/tests/plugins/VscodeYamlPlugin.spec.js.map +1 -1
  83. package/dist/testsLibrary/CodeExecutionTests.js +52 -29
  84. package/dist/testsLibrary/CodeExecutionTests.js.map +1 -1
  85. package/dist/testsLibrary/WorkspaceHandlingTests.js +68 -11
  86. package/dist/testsLibrary/WorkspaceHandlingTests.js.map +1 -1
  87. package/driver/CheReporter.ts +2 -8
  88. package/package.json +1 -1
  89. package/pageobjects/ide/Editor.ts +1 -1
  90. package/pageobjects/ide/PreviewWidget.ts +3 -0
  91. package/pageobjects/ide/ProjectTree.ts +13 -8
  92. package/tests/devfiles/CSlashCPlusPlus.spec.ts +2 -9
  93. package/tests/devfiles/DevfileSmoke.spec.ts +2 -9
  94. package/tests/devfiles/DotNetCore.spec.ts +2 -9
  95. package/tests/devfiles/Go.spec.ts +2 -7
  96. package/tests/devfiles/JavaMaven.spec.ts +2 -9
  97. package/tests/devfiles/JavaSpringBoot.spec.ts +2 -9
  98. package/tests/devfiles/JavaVertx.spec.ts +2 -9
  99. package/tests/devfiles/NodeJS.spec.ts +2 -9
  100. package/tests/devfiles/PHPSimple.spec.ts +2 -9
  101. package/tests/devfiles/Python.spec.ts +2 -9
  102. package/tests/devfiles/PythonDjango.spec.ts +2 -9
  103. package/tests/devfiles/Quarkus.spec.ts +2 -9
  104. package/tests/devfiles/Scala.spec.ts +2 -10
  105. package/tests/e2e/FactoryUrl.spec.ts +4 -8
  106. package/tests/e2e/GitPublishBranch.spec.ts +2 -2
  107. package/tests/e2e/GitSelfSignCert.spec.ts +66 -65
  108. package/tests/e2e/GitSsh.spec.ts +3 -3
  109. package/tests/e2e/OpenshiftConnector.spec.ts +2 -2
  110. package/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +2 -5
  111. package/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.ts +2 -5
  112. package/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.ts +2 -5
  113. package/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.ts +2 -2
  114. package/tests/e2e_happy_path/HappyPath.spec.ts +13 -10
  115. package/tests/intelij/IntelijOpenWorkspace.spec.ts +2 -4
  116. package/tests/load_test/LoadTest.spec.ts +2 -2
  117. package/tests/login/LinkCheAndOcpUsers.spec.ts +4 -3
  118. package/tests/plugins/GitHubPullRequestPlugin.spec.ts +4 -7
  119. package/tests/plugins/InstallPluginUsingUI.spec.ts +4 -9
  120. package/tests/plugins/JavaPlugin.spec.ts +4 -6
  121. package/tests/plugins/PhpPlugin.spec.ts +3 -9
  122. package/tests/plugins/PythonPlugin.spec.ts +4 -6
  123. package/tests/plugins/TypescriptPlugin.spec.ts +4 -6
  124. package/tests/plugins/VscodeKubernetesPlugin.spec.ts +3 -9
  125. package/tests/plugins/VscodeShellcheckPlugin.spec.ts +3 -9
  126. package/tests/plugins/VscodeValePlugin.spec.ts +3 -9
  127. package/tests/plugins/VscodeXmlPlugin.spec.ts +14 -23
  128. package/tests/plugins/VscodeYamlPlugin.spec.ts +4 -7
  129. package/testsLibrary/CodeExecutionTests.ts +43 -22
  130. package/testsLibrary/WorkspaceHandlingTests.ts +66 -9
@@ -15,7 +15,6 @@ 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';
19
18
 
20
19
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
21
20
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -29,17 +28,11 @@ const tabTitle: string = 'hello.cpp';
29
28
  const buildTaskName: string = 'build';
30
29
  const runTaskName: string = 'run';
31
30
  const stack: string = 'C/C++';
32
- let workspaceName: string;
33
31
 
34
32
  suite(`${stack} test`, async () => {
35
33
  suite(`Create ${stack} workspace`, async () => {
36
34
  workspaceHandlingTests.createAndOpenWorkspace(stack);
37
-
38
- test('Register running workspace', async () => {
39
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
40
- CheReporter.registerRunningWorkspace(workspaceName);
41
- });
42
-
35
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
43
36
  projectAndFileTests.waitWorkspaceReadinessNoSubfolder(workspaceSampleName, false);
44
37
  });
45
38
 
@@ -63,7 +56,7 @@ suite(`${stack} test`, async () => {
63
56
 
64
57
  suite('Stopping and deleting the workspace', async () => {
65
58
  test(`Stop and remowe workspace`, async () => {
66
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
59
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
67
60
  });
68
61
  });
69
62
 
@@ -9,7 +9,6 @@
9
9
  **********************************************************************/
10
10
  import 'reflect-metadata';
11
11
  import { CLASSES } from '../../inversify.types';
12
- import CheReporter from '../../driver/CheReporter';
13
12
  import { e2eContainer } from '../../inversify.config';
14
13
  import { PreferencesHandler } from '../../utils/PreferencesHandler';
15
14
  import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
@@ -26,17 +25,11 @@ const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
26
25
  const workspaceSampleName: string = 'console-java-simple';
27
26
  const workspaceRootFolderName: string = 'src';
28
27
  const stack: string = 'Java Maven';
29
- let workspaceName: string;
30
28
 
31
29
  suite(`${stack} test`, async () => {
32
30
  suite (`Create ${stack} workspace`, async () => {
33
31
  workspaceHandlingTests.createAndOpenWorkspace(stack);
34
-
35
- test('Register running workspace', async () => {
36
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
37
- CheReporter.registerRunningWorkspace(workspaceName);
38
- });
39
-
32
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
40
33
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
41
34
 
42
35
  test('Set application.confirmExit user preferences to "never"', async () => {
@@ -47,7 +40,7 @@ suite(`${stack} test`, async () => {
47
40
  suite ('Stopping and deleting the workspace', async () => {
48
41
  test(`Stop and remowe workspace`, async () => {
49
42
  await navigationBar.openNavigationBar();
50
- await dashboard.stopAndRemoveWorkspaceByUI(workspaceName);
43
+ await dashboard.stopAndRemoveWorkspaceByUI(WorkspaceHandlingTests.getWorkspaceName());
51
44
  });
52
45
  });
53
46
  });
@@ -15,7 +15,6 @@ 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';
19
18
 
20
19
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
21
20
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -32,17 +31,11 @@ const updateDependenciesTaskName: string = 'update dependencies';
32
31
  const buildTaskName: string = 'build';
33
32
  const runTaskName: string = 'run';
34
33
  const runTaskNameExpectedString: string = 'Process 5000-tcp is now listening on port 5000. Open it ?';
35
- let workspaceName: string;
36
34
 
37
35
  suite(`Test ${stack}`, async () => {
38
36
  suite (`Create ${stack} workspace`, async () => {
39
37
  workspaceHandlingTests.createAndOpenWorkspace(stack);
40
-
41
- test('Register running workspace', async () => {
42
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
43
- CheReporter.registerRunningWorkspace(workspaceName);
44
- });
45
-
38
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
46
39
  projectAndFileTests.waitWorkspaceReadinessNoSubfolder(workspaceSampleName, false);
47
40
  });
48
41
 
@@ -75,7 +68,7 @@ suite(`Test ${stack}`, async () => {
75
68
 
76
69
  suite ('Stopping and deleting the workspace', async () => {
77
70
  test(`Stop and remowe workspace`, async () => {
78
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
71
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
79
72
  });
80
73
  });
81
74
  });
@@ -16,7 +16,6 @@ import { LanguageServerTests } from '../../testsLibrary/LanguageServerTests';
16
16
  import { CodeExecutionTests } from '../../testsLibrary/CodeExecutionTests';
17
17
  import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
18
18
  import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
19
- import CheReporter from '../../driver/CheReporter';
20
19
 
21
20
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
22
21
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -34,16 +33,12 @@ const taskRunServer: string = 'run-outyet';
34
33
  const taskStopServer: string = 'stop-outyet';
35
34
  const taskTestOutyet: string = 'test-outyet';
36
35
  const notificationText: string = 'Process 8080-tcp is now listening on port 8080. Open it ?';
37
- let workspaceName: string;
38
36
 
39
37
  suite(`${workspaceStack} test`, async () => {
40
38
 
41
39
  suite(`Create ${workspaceStack} workspace`, async () => {
42
40
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
43
- test('Register running workspace', async () => {
44
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
45
- CheReporter.registerRunningWorkspace(workspaceName);
46
- });
41
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
47
42
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceSubfolderName, false);
48
43
  test('Workaround for issue #16113', async () => {
49
44
  Logger.warn(`Manually setting a preference for golang devFile LS based on issue: https://github.com/eclipse/che/issues/16113`);
@@ -75,7 +70,7 @@ suite(`${workspaceStack} test`, async () => {
75
70
 
76
71
  suite('Stop and remove workspace', async() => {
77
72
  test(`Stop and remove workspace`, async () => {
78
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
73
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
79
74
  });
80
75
  });
81
76
 
@@ -14,7 +14,6 @@ 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';
18
17
 
19
18
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
20
19
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -28,17 +27,11 @@ const tabTitle: string = 'HelloWorld.java';
28
27
  const codeNavigationClassName: string = 'String.class';
29
28
  const stack : string = 'Java Maven';
30
29
  const taskName: string = 'maven build';
31
- let workspaceName: string;
32
30
 
33
31
  suite(`${stack} test`, async () => {
34
32
  suite (`Create ${stack} workspace`, async () => {
35
33
  workspaceHandlingTests.createAndOpenWorkspace(stack);
36
-
37
- test('Register running workspace', async () => {
38
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
39
- CheReporter.registerRunningWorkspace(workspaceName);
40
- });
41
-
34
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
42
35
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
43
36
  });
44
37
 
@@ -61,7 +54,7 @@ suite(`${stack} test`, async () => {
61
54
 
62
55
  suite('Stopping and deleting the workspace', async () => {
63
56
  test(`Stop and remowe workspace`, async () => {
64
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
57
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
65
58
  });
66
59
  });
67
60
  });
@@ -14,7 +14,6 @@ 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';
18
17
 
19
18
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
20
19
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -30,17 +29,11 @@ const codeNavigationClassName: string = 'SpringApplication.class';
30
29
  const buildTaskName: string = 'maven build';
31
30
  const runTaskName: string = 'run webapp';
32
31
  const runTaskExpectedDialogue: string = 'Process 8080-tcp is now listening on port 8080. Open it ?';
33
- let workspaceName: string;
34
32
 
35
33
  suite(`${stack} test`, async () => {
36
34
  suite(`Create ${stack} workspace`, async () => {
37
35
  workspaceHandlingTests.createAndOpenWorkspace(stack);
38
-
39
- test('Register running workspace', async () => {
40
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
- CheReporter.registerRunningWorkspace(workspaceName);
42
- });
43
-
36
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
44
37
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
45
38
  });
46
39
 
@@ -68,7 +61,7 @@ suite(`${stack} test`, async () => {
68
61
 
69
62
  suite('Stopping and deleting the workspace', async () => {
70
63
  test(`Stop and remowe workspace`, async () => {
71
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
64
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
72
65
  });
73
66
  });
74
67
  });
@@ -14,7 +14,6 @@ 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';
18
17
 
19
18
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
20
19
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -28,17 +27,11 @@ const tabTitle: string = 'HttpApplication.java';
28
27
  const codeNavigationClassName: string = 'RouterImpl.class';
29
28
  const buildTaskName: string = 'maven build';
30
29
  const stack: string = 'Java Vert.x';
31
- let workspaceName: string;
32
30
 
33
31
  suite(`${stack} test`, async () => {
34
32
  suite (`Create ${stack} workspace`, async () => {
35
33
  workspaceHandlingTests.createAndOpenWorkspace(stack);
36
-
37
- test('Register running workspace', async () => {
38
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
39
- CheReporter.registerRunningWorkspace(workspaceName);
40
- });
41
-
34
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
42
35
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
43
36
  });
44
37
 
@@ -61,7 +54,7 @@ suite(`${stack} test`, async () => {
61
54
 
62
55
  suite ('Stopping and deleting the workspace', async () => {
63
56
  test(`Stop and remowe workspace`, async () => {
64
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
57
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
65
58
  });
66
59
  });
67
60
 
@@ -14,7 +14,6 @@ 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';
18
17
 
19
18
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
20
19
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -30,18 +29,12 @@ const fileName: string = `app.js`;
30
29
  const taskDownloadDependencies: string = 'download dependencies';
31
30
  const taskRunWebApp: string = 'run the web app';
32
31
  const taskExpectedDialogText: string = 'Process nodejs is now listening on port 3000. Open it ?';
33
- let workspaceName: string;
34
32
 
35
33
  suite(`${workspaceStack} test`, async () => {
36
34
 
37
35
  suite(`Create ${workspaceStack}`, async () => {
38
36
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
39
-
40
- test('Register running workspace', async () => {
41
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
42
- CheReporter.registerRunningWorkspace(workspaceName);
43
- });
44
-
37
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
45
38
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
46
39
  });
47
40
 
@@ -68,7 +61,7 @@ suite(`${workspaceStack} test`, async () => {
68
61
 
69
62
  suite('Stop and remove workspace', async() => {
70
63
  test(`Stop and remowe workspace`, async () => {
71
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
64
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
72
65
  });
73
66
  });
74
67
  });
@@ -15,7 +15,6 @@ 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';
19
18
 
20
19
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
21
20
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -30,17 +29,11 @@ const tabTitle: string = 'index.php';
30
29
  const depTaskName: string = 'Configure Apache Web Server DocumentRoot';
31
30
  const buildTaskName: string = 'Start Apache Web Server';
32
31
  const stack: string = 'PHP Simple';
33
- let workspaceName: string;
34
32
 
35
33
  suite(`${stack} test`, async () => {
36
34
  suite (`Create ${stack} workspace`, async () => {
37
35
  workspaceHandlingTests.createAndOpenWorkspace(stack);
38
-
39
- test('Register running workspace', async () => {
40
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
- CheReporter.registerRunningWorkspace(workspaceName);
42
- });
43
-
36
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
44
37
  projectAndFileTests.waitWorkspaceReadinessNoSubfolder(workspaceSampleName, false);
45
38
  });
46
39
 
@@ -67,7 +60,7 @@ suite(`${stack} test`, async () => {
67
60
 
68
61
  suite ('Stopping and deleting the workspace', async () => {
69
62
  test(`Stop and remowe workspace`, async () => {
70
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
63
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
71
64
  });
72
65
  });
73
66
 
@@ -14,7 +14,6 @@ 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';
18
17
 
19
18
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
20
19
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -27,18 +26,12 @@ const workspaceSampleName: string = 'python-hello-world';
27
26
  const taskRunName: string = 'run';
28
27
  const fileFolderPath: string = `${workspaceSampleName}`;
29
28
  const fileName: string = `hello-world.py`;
30
- let workspaceName: string;
31
29
 
32
30
  suite(`${workspaceStack} test`, async () => {
33
31
 
34
32
  suite(`Create ${workspaceStack} workspace`, async () => {
35
33
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
36
-
37
- test('Register running workspace', async () => {
38
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
39
- CheReporter.registerRunningWorkspace(workspaceName);
40
- });
41
-
34
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
42
35
  projectAndFileTests.waitWorkspaceReadinessNoSubfolder(workspaceSampleName, false);
43
36
  });
44
37
 
@@ -61,7 +54,7 @@ suite(`${workspaceStack} test`, async () => {
61
54
 
62
55
  suite ('Stopping and deleting the workspace', async () => {
63
56
  test(`Stop and remowe workspace`, async () => {
64
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
57
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
65
58
  });
66
59
  });
67
60
  });
@@ -13,7 +13,6 @@ 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';
17
16
 
18
17
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
19
18
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -29,18 +28,12 @@ const taskRunServer: string = 'run server';
29
28
  const taskRunServerInDebugMode: string = 'run server in debug mode';
30
29
  const taskExpectedDialogText: string = 'Process django is now listening on port 7000. Open it ?';
31
30
  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
31
 
34
32
  suite(`${workspaceStack} test`, async () => {
35
33
 
36
34
  suite(`Create ${workspaceStack} workspace`, async () => {
37
35
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
38
-
39
- test('Register running workspace', async () => {
40
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
- CheReporter.registerRunningWorkspace(workspaceName);
42
- });
43
-
36
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
44
37
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
45
38
  });
46
39
 
@@ -64,7 +57,7 @@ suite(`${workspaceStack} test`, async () => {
64
57
 
65
58
  suite ('Stopping and deleting the workspace', async () => {
66
59
  test(`Stop and remowe workspace`, async () => {
67
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
60
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
68
61
  });
69
62
  });
70
63
  });
@@ -14,7 +14,6 @@ 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';
18
17
 
19
18
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
20
19
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -30,17 +29,11 @@ const fileName: string = `GreetingService.java`;
30
29
  const taskPackage: string = 'Package';
31
30
  const taskPackageNative: string = 'Package Native';
32
31
  const taskStartNative: string = 'Start Native';
33
- let workspaceName: string;
34
32
 
35
33
  suite(`${workspaceStack} test`, async () => {
36
34
  suite(`Create ${workspaceStack}`, async () => {
37
35
  workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
38
-
39
- test('Register running workspace', async () => {
40
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
- CheReporter.registerRunningWorkspace(workspaceName);
42
- });
43
-
36
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
44
37
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
45
38
  });
46
39
 
@@ -73,7 +66,7 @@ suite(`${workspaceStack} test`, async () => {
73
66
 
74
67
  suite('Stop and remove workspace', async() => {
75
68
  test(`Stop and remowe workspace`, async () => {
76
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
69
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
77
70
  });
78
71
  });
79
72
  });
@@ -14,7 +14,6 @@ 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';
18
17
 
19
18
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
20
19
  const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
@@ -29,18 +28,12 @@ const compileTaskkName: string = 'sbt compile';
29
28
  const runTaskName: string = 'sbt run';
30
29
  const testTaskName: string = 'sbt test';
31
30
  const stack: string = 'Scala';
32
- let workspaceName: string;
33
31
 
34
32
  // skipping scala to enable pre-release suite to be easily used for updates until https://github.com/eclipse/che/issues/18662 is fixed
35
33
  suite.skip(`${stack} test`, async () => {
36
34
  suite (`Create ${stack} workspace`, async () => {
37
35
  workspaceHandlingTests.createAndOpenWorkspace(stack);
38
-
39
- test('Register running workspace', async () => {
40
- workspaceName = WorkspaceHandlingTests.getWorkspaceName();
41
- CheReporter.registerRunningWorkspace(workspaceName);
42
- });
43
-
36
+ workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
44
37
  projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
45
38
  });
46
39
 
@@ -67,8 +60,7 @@ suite.skip(`${stack} test`, async () => {
67
60
 
68
61
  suite ('Stopping and deleting the workspace', async () => {
69
62
  test(`Stop and remowe workspace`, async () => {
70
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
63
+ await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
71
64
  });
72
65
  });
73
-
74
66
  });
@@ -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 { WorkspaceNameHandler } from '../../utils/WorkspaceNameHandler';
18
16
  import { TestWorkspaceUtil } from '../../utils/workspace/TestWorkspaceUtil';
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
21
  const testWorkspaceUtils: TestWorkspaceUtil = e2eContainer.get<TestWorkspaceUtil>(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
 
@@ -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';
26
25
  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
- CheReporter.registerRunningWorkspace(wsNameGitPublishBranch);
56
+ WorkspaceHandlingTests.setWorkspaceName(wsNameGitPublishBranch);
57
57
  await ide.waitWorkspaceAndIde();
58
58
  await projectTree.openProjectTreeContainer();
59
59
  await driverHelper.wait(15000);