@eclipse-che/che-e2e 7.62.0-dev-4f7da12 → 7.62.0-dev-13e3caa

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 (380) hide show
  1. package/configs/inversify.config.ts +88 -0
  2. package/{inversify.types.ts → configs/inversify.types.ts} +6 -9
  3. package/configs/mocharc.ts +21 -0
  4. package/{generateIndex.sh → configs/sh-scripts/generateIndex.sh} +8 -10
  5. package/{initDevfileTests.sh → configs/sh-scripts/initDevfileTests.sh} +18 -26
  6. package/{TestConstants.ts → constants/TestConstants.ts} +1 -1
  7. package/{TimeoutConstants.ts → constants/TimeoutConstants.ts} +1 -1
  8. package/dist/configs/inversify.config.js +81 -0
  9. package/dist/configs/inversify.config.js.map +1 -0
  10. package/dist/{inversify.types.js → configs/inversify.types.js} +5 -8
  11. package/dist/configs/inversify.types.js.map +1 -0
  12. package/dist/configs/mocharc.js +20 -0
  13. package/dist/configs/mocharc.js.map +1 -0
  14. package/dist/{TestConstants.js → constants/TestConstants.js} +1 -1
  15. package/dist/constants/TestConstants.js.map +1 -0
  16. package/dist/{TimeoutConstants.js → constants/TimeoutConstants.js} +1 -1
  17. package/dist/constants/TimeoutConstants.js.map +1 -0
  18. package/dist/driver/ChromeDriver.js +2 -2
  19. package/dist/driver/ChromeDriver.js.map +1 -1
  20. package/dist/pageobjects/dashboard/CreateWorkspace.js +4 -4
  21. package/dist/pageobjects/dashboard/CreateWorkspace.js.map +1 -1
  22. package/dist/pageobjects/dashboard/Dashboard.js +4 -4
  23. package/dist/pageobjects/dashboard/Dashboard.js.map +1 -1
  24. package/dist/pageobjects/dashboard/Workspaces.js +3 -3
  25. package/dist/pageobjects/dashboard/Workspaces.js.map +1 -1
  26. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js +10 -8
  27. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js.map +1 -1
  28. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js +3 -3
  29. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js.map +1 -1
  30. package/dist/pageobjects/login/ICheLoginPage.js +1 -1
  31. package/dist/pageobjects/login/IOcpLoginPage.js +1 -1
  32. package/dist/pageobjects/login/MultiUserLoginPage.js +3 -3
  33. package/dist/pageobjects/login/MultiUserLoginPage.js.map +1 -1
  34. package/dist/pageobjects/login/OcpUserLoginPage.js +3 -3
  35. package/dist/pageobjects/login/OcpUserLoginPage.js.map +1 -1
  36. package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js +4 -4
  37. package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js.map +1 -1
  38. package/dist/pageobjects/login/UpdateAccountInformationPage.js +2 -2
  39. package/dist/pageobjects/login/UpdateAccountInformationPage.js.map +1 -1
  40. package/dist/pageobjects/openshift/CheLoginPage.js +3 -3
  41. package/dist/pageobjects/openshift/CheLoginPage.js.map +1 -1
  42. package/dist/pageobjects/openshift/OcpLoginPage.js +4 -4
  43. package/dist/pageobjects/openshift/OcpLoginPage.js.map +1 -1
  44. package/dist/pageobjects/third-parties/GitLoginPage.js +4 -4
  45. package/dist/pageobjects/third-parties/GitLoginPage.js.map +1 -1
  46. package/dist/pageobjects/third-parties/GitOauthAppsSettings.js +3 -3
  47. package/dist/pageobjects/third-parties/GitOauthAppsSettings.js.map +1 -1
  48. package/dist/{tests → specs}/MochaHooks.js +32 -18
  49. package/dist/specs/MochaHooks.js.map +1 -0
  50. package/dist/{tests/devfiles/che-code → specs/devfiles}/EmptyWorkspace.spec.js +10 -11
  51. package/dist/specs/devfiles/EmptyWorkspace.spec.js.map +1 -0
  52. package/dist/{tests → specs}/login/LinkCheAndOcpUsers.spec.js +13 -12
  53. package/dist/specs/login/LinkCheAndOcpUsers.spec.js.map +1 -0
  54. package/dist/{utils/AnimationChecker.js → tests-library/LoginTests.js} +26 -18
  55. package/dist/tests-library/LoginTests.js.map +1 -0
  56. package/dist/{testsLibrary/che-code/ProjectAndFileTestsCheCode.js → tests-library/ProjectAndFileTests.js} +11 -11
  57. package/dist/tests-library/ProjectAndFileTests.js.map +1 -0
  58. package/dist/{testsLibrary → tests-library}/WorkspaceHandlingTests.js +4 -4
  59. package/dist/tests-library/WorkspaceHandlingTests.js.map +1 -0
  60. package/dist/utils/BrowserTabsUtil.js +3 -3
  61. package/dist/utils/BrowserTabsUtil.js.map +1 -1
  62. package/dist/{driver → utils}/CheReporter.js +6 -10
  63. package/dist/utils/CheReporter.js.map +1 -0
  64. package/dist/utils/DriverHelper.js +3 -3
  65. package/dist/utils/DriverHelper.js.map +1 -1
  66. package/dist/utils/Logger.js +2 -2
  67. package/dist/utils/Logger.js.map +1 -1
  68. package/dist/utils/Sanitizer.js +1 -1
  69. package/dist/utils/ScreenCatcher.js +7 -7
  70. package/dist/utils/ScreenCatcher.js.map +1 -1
  71. package/dist/utils/WorkspaceNameHandler.js +2 -2
  72. package/dist/utils/WorkspaceNameHandler.js.map +1 -1
  73. package/dist/utils/{requestHandlers → request-handlers}/CheApiRequestHandler.js +3 -3
  74. package/dist/utils/request-handlers/CheApiRequestHandler.js.map +1 -0
  75. package/dist/utils/{requestHandlers → request-handlers}/headers/CheMultiuserAuthorizationHeaderHandler.js +1 -1
  76. package/dist/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +1 -0
  77. package/dist/utils/{requestHandlers → request-handlers}/headers/IAuthorizationHeaderHandler.js +1 -1
  78. package/dist/utils/request-handlers/headers/IAuthorizationHeaderHandler.js.map +1 -0
  79. package/dist/utils/{requestHandlers → request-handlers}/tokens/CheMultiuserTokenHandler.js +2 -2
  80. package/dist/utils/request-handlers/tokens/CheMultiuserTokenHandler.js.map +1 -0
  81. package/dist/utils/{requestHandlers → request-handlers}/tokens/ITokenHandler.js +1 -1
  82. package/dist/utils/request-handlers/tokens/ITokenHandler.js.map +1 -0
  83. package/dist/utils/{VCS → vsc}/CheGitApi.js +2 -2
  84. package/dist/utils/vsc/CheGitApi.js.map +1 -0
  85. package/dist/utils/{VCS → vsc}/github/GitHubUtil.js.map +1 -1
  86. package/dist/utils/workspace/ApiUrlResolver.js +3 -3
  87. package/dist/utils/workspace/ApiUrlResolver.js.map +1 -1
  88. package/dist/utils/workspace/ITestWorkspaceUtil.js +1 -1
  89. package/dist/utils/workspace/TestWorkspaceUtil.js +4 -4
  90. package/dist/utils/workspace/TestWorkspaceUtil.js.map +1 -1
  91. package/dist/utils/workspace/WorkspaceStatus.js +1 -1
  92. package/driver/ChromeDriver.ts +2 -2
  93. package/driver/IDriver.ts +1 -1
  94. package/package.json +6 -37
  95. package/pageobjects/dashboard/CreateWorkspace.ts +4 -4
  96. package/pageobjects/dashboard/Dashboard.ts +4 -4
  97. package/pageobjects/dashboard/Workspaces.ts +3 -3
  98. package/pageobjects/dashboard/workspace-details/WorkspaceDetails.ts +8 -8
  99. package/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.ts +3 -4
  100. package/pageobjects/login/ICheLoginPage.ts +1 -1
  101. package/pageobjects/login/IOcpLoginPage.ts +1 -1
  102. package/pageobjects/login/MultiUserLoginPage.ts +3 -3
  103. package/pageobjects/login/OcpUserLoginPage.ts +3 -3
  104. package/pageobjects/login/RegularUserOcpCheLoginPage.ts +4 -4
  105. package/pageobjects/login/UpdateAccountInformationPage.ts +2 -2
  106. package/pageobjects/openshift/CheLoginPage.ts +3 -3
  107. package/pageobjects/openshift/OcpLoginPage.ts +4 -4
  108. package/pageobjects/third-parties/GitLoginPage.ts +4 -4
  109. package/pageobjects/third-parties/GitOauthAppsSettings.ts +3 -3
  110. package/specs/MochaHooks.ts +72 -0
  111. package/{tests/devfiles/che-code → specs/devfiles}/EmptyWorkspace.spec.ts +12 -9
  112. package/{tests → specs}/login/LinkCheAndOcpUsers.spec.ts +5 -4
  113. package/tests-library/LoginTests.ts +35 -0
  114. package/{testsLibrary/che-code/ProjectAndFileTestsCheCode.ts → tests-library/ProjectAndFileTests.ts} +6 -6
  115. package/{testsLibrary → tests-library}/WorkspaceHandlingTests.ts +4 -4
  116. package/utils/BrowserTabsUtil.ts +3 -3
  117. package/{driver → utils}/CheReporter.ts +10 -15
  118. package/utils/DriverHelper.ts +4 -4
  119. package/utils/Logger.ts +2 -2
  120. package/utils/Sanitizer.ts +1 -1
  121. package/utils/ScreenCatcher.ts +3 -3
  122. package/utils/WorkspaceNameHandler.ts +2 -2
  123. package/utils/{requestHandlers → request-handlers}/CheApiRequestHandler.ts +3 -3
  124. package/utils/{requestHandlers → request-handlers}/headers/CheMultiuserAuthorizationHeaderHandler.ts +2 -2
  125. package/utils/{requestHandlers → request-handlers}/headers/IAuthorizationHeaderHandler.ts +1 -1
  126. package/utils/{requestHandlers → request-handlers}/tokens/CheMultiuserTokenHandler.ts +2 -2
  127. package/utils/{requestHandlers → request-handlers}/tokens/ITokenHandler.ts +1 -1
  128. package/utils/{VCS → vsc}/CheGitApi.ts +2 -6
  129. package/utils/workspace/ApiUrlResolver.ts +3 -3
  130. package/utils/workspace/ITestWorkspaceUtil.ts +1 -1
  131. package/utils/workspace/TestWorkspaceUtil.ts +4 -4
  132. package/utils/workspace/WorkspaceStatus.ts +1 -1
  133. package/dist/TestConstants.js.map +0 -1
  134. package/dist/TimeoutConstants.js.map +0 -1
  135. package/dist/driver/CheReporter.js.map +0 -1
  136. package/dist/index.js +0 -94
  137. package/dist/index.js.map +0 -1
  138. package/dist/inversify.config.js +0 -133
  139. package/dist/inversify.config.js.map +0 -1
  140. package/dist/inversify.types.js.map +0 -1
  141. package/dist/pageobjects/ide/theia/ContextMenu.js +0 -66
  142. package/dist/pageobjects/ide/theia/ContextMenu.js.map +0 -1
  143. package/dist/pageobjects/ide/theia/DebugView.js +0 -98
  144. package/dist/pageobjects/ide/theia/DebugView.js.map +0 -1
  145. package/dist/pageobjects/ide/theia/DialogWindow.js +0 -102
  146. package/dist/pageobjects/ide/theia/DialogWindow.js.map +0 -1
  147. package/dist/pageobjects/ide/theia/Editor.js +0 -463
  148. package/dist/pageobjects/ide/theia/Editor.js.map +0 -1
  149. package/dist/pageobjects/ide/theia/Ide.js +0 -336
  150. package/dist/pageobjects/ide/theia/Ide.js.map +0 -1
  151. package/dist/pageobjects/ide/theia/LeftToolBar.js +0 -81
  152. package/dist/pageobjects/ide/theia/LeftToolBar.js.map +0 -1
  153. package/dist/pageobjects/ide/theia/NavigationBar.js +0 -57
  154. package/dist/pageobjects/ide/theia/NavigationBar.js.map +0 -1
  155. package/dist/pageobjects/ide/theia/NotificationCenter.js +0 -76
  156. package/dist/pageobjects/ide/theia/NotificationCenter.js.map +0 -1
  157. package/dist/pageobjects/ide/theia/OpenDialogWidget.js +0 -100
  158. package/dist/pageobjects/ide/theia/OpenDialogWidget.js.map +0 -1
  159. package/dist/pageobjects/ide/theia/OpenEditors.js +0 -73
  160. package/dist/pageobjects/ide/theia/OpenEditors.js.map +0 -1
  161. package/dist/pageobjects/ide/theia/OpenWorkspaceWidget.js +0 -62
  162. package/dist/pageobjects/ide/theia/OpenWorkspaceWidget.js.map +0 -1
  163. package/dist/pageobjects/ide/theia/PreviewWidget.js +0 -134
  164. package/dist/pageobjects/ide/theia/PreviewWidget.js.map +0 -1
  165. package/dist/pageobjects/ide/theia/ProjectTree.js +0 -282
  166. package/dist/pageobjects/ide/theia/ProjectTree.js.map +0 -1
  167. package/dist/pageobjects/ide/theia/QuickOpenContainer.js +0 -70
  168. package/dist/pageobjects/ide/theia/QuickOpenContainer.js.map +0 -1
  169. package/dist/pageobjects/ide/theia/RightToolBar.js +0 -51
  170. package/dist/pageobjects/ide/theia/RightToolBar.js.map +0 -1
  171. package/dist/pageobjects/ide/theia/Terminal.js +0 -184
  172. package/dist/pageobjects/ide/theia/Terminal.js.map +0 -1
  173. package/dist/pageobjects/ide/theia/TopMenu.js +0 -109
  174. package/dist/pageobjects/ide/theia/TopMenu.js.map +0 -1
  175. package/dist/pageobjects/ide/theia/plugins/GitHubPullRequestPlugin.js +0 -128
  176. package/dist/pageobjects/ide/theia/plugins/GitHubPullRequestPlugin.js.map +0 -1
  177. package/dist/pageobjects/ide/theia/plugins/GitPlugin.js +0 -120
  178. package/dist/pageobjects/ide/theia/plugins/GitPlugin.js.map +0 -1
  179. package/dist/pageobjects/ide/theia/plugins/KubernetesPlugin.js +0 -107
  180. package/dist/pageobjects/ide/theia/plugins/KubernetesPlugin.js.map +0 -1
  181. package/dist/pageobjects/ide/theia/plugins/OpenshiftPlugin.js +0 -99
  182. package/dist/pageobjects/ide/theia/plugins/OpenshiftPlugin.js.map +0 -1
  183. package/dist/pageobjects/ide/theia/plugins/PluginsView.js +0 -166
  184. package/dist/pageobjects/ide/theia/plugins/PluginsView.js.map +0 -1
  185. package/dist/tests/MochaHooks.js.map +0 -1
  186. package/dist/tests/devfiles/che-code/EmptyWorkspace.spec.js.map +0 -1
  187. package/dist/tests/devfiles/theia/CSlashCPlusPlus.spec.js +0 -73
  188. package/dist/tests/devfiles/theia/CSlashCPlusPlus.spec.js.map +0 -1
  189. package/dist/tests/devfiles/theia/DevfileSmoke.spec.js +0 -47
  190. package/dist/tests/devfiles/theia/DevfileSmoke.spec.js.map +0 -1
  191. package/dist/tests/devfiles/theia/DotNetCore.spec.js +0 -81
  192. package/dist/tests/devfiles/theia/DotNetCore.spec.js.map +0 -1
  193. package/dist/tests/devfiles/theia/Go.spec.js +0 -72
  194. package/dist/tests/devfiles/theia/Go.spec.js.map +0 -1
  195. package/dist/tests/devfiles/theia/JavaMaven.spec.js +0 -60
  196. package/dist/tests/devfiles/theia/JavaMaven.spec.js.map +0 -1
  197. package/dist/tests/devfiles/theia/JavaSpringBoot.spec.js +0 -66
  198. package/dist/tests/devfiles/theia/JavaSpringBoot.spec.js.map +0 -1
  199. package/dist/tests/devfiles/theia/JavaVertx.spec.js +0 -60
  200. package/dist/tests/devfiles/theia/JavaVertx.spec.js.map +0 -1
  201. package/dist/tests/devfiles/theia/NodeJS.spec.js +0 -64
  202. package/dist/tests/devfiles/theia/NodeJS.spec.js.map +0 -1
  203. package/dist/tests/devfiles/theia/PHPSimple.spec.js +0 -74
  204. package/dist/tests/devfiles/theia/PHPSimple.spec.js.map +0 -1
  205. package/dist/tests/devfiles/theia/Python.spec.js +0 -58
  206. package/dist/tests/devfiles/theia/Python.spec.js.map +0 -1
  207. package/dist/tests/devfiles/theia/PythonDjango.spec.js +0 -61
  208. package/dist/tests/devfiles/theia/PythonDjango.spec.js.map +0 -1
  209. package/dist/tests/devfiles/theia/Quarkus.spec.js +0 -69
  210. package/dist/tests/devfiles/theia/Quarkus.spec.js.map +0 -1
  211. package/dist/tests/devfiles/theia/Scala.spec.js +0 -66
  212. package/dist/tests/devfiles/theia/Scala.spec.js.map +0 -1
  213. package/dist/tests/e2e/theia/FactoryUrl.spec.js +0 -40
  214. package/dist/tests/e2e/theia/FactoryUrl.spec.js.map +0 -1
  215. package/dist/tests/e2e/theia/GitPublishBranch.spec.js +0 -90
  216. package/dist/tests/e2e/theia/GitPublishBranch.spec.js.map +0 -1
  217. package/dist/tests/e2e/theia/GitSelfSignCert.spec.js +0 -90
  218. package/dist/tests/e2e/theia/GitSelfSignCert.spec.js.map +0 -1
  219. package/dist/tests/e2e/theia/GitSsh.spec.js +0 -120
  220. package/dist/tests/e2e/theia/GitSsh.spec.js.map +0 -1
  221. package/dist/tests/e2e/theia/OpenshiftConnector.spec.js +0 -124
  222. package/dist/tests/e2e/theia/OpenshiftConnector.spec.js.map +0 -1
  223. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js +0 -50
  224. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +0 -1
  225. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.js +0 -48
  226. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +0 -1
  227. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js +0 -48
  228. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +0 -1
  229. package/dist/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.js +0 -277
  230. package/dist/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.js.map +0 -1
  231. package/dist/tests/e2e_happy_path/theia/HappyPath.spec.js +0 -314
  232. package/dist/tests/e2e_happy_path/theia/HappyPath.spec.js.map +0 -1
  233. package/dist/tests/intelij/IntelijOpenWorkspace.spec.js +0 -39
  234. package/dist/tests/intelij/IntelijOpenWorkspace.spec.js.map +0 -1
  235. package/dist/tests/load_test/theia/LoadTest.spec.js +0 -41
  236. package/dist/tests/load_test/theia/LoadTest.spec.js.map +0 -1
  237. package/dist/tests/login/LinkCheAndOcpUsers.spec.js.map +0 -1
  238. package/dist/tests/login/Login.spec.js +0 -28
  239. package/dist/tests/login/Login.spec.js.map +0 -1
  240. package/dist/tests/plugins/theia/GitHubPullRequestPlugin.spec.js +0 -117
  241. package/dist/tests/plugins/theia/GitHubPullRequestPlugin.spec.js.map +0 -1
  242. package/dist/tests/plugins/theia/InstallPluginUsingUI.spec.js +0 -62
  243. package/dist/tests/plugins/theia/InstallPluginUsingUI.spec.js.map +0 -1
  244. package/dist/tests/plugins/theia/JavaPlugin.spec.js +0 -82
  245. package/dist/tests/plugins/theia/JavaPlugin.spec.js.map +0 -1
  246. package/dist/tests/plugins/theia/PhpPlugin.spec.js +0 -96
  247. package/dist/tests/plugins/theia/PhpPlugin.spec.js.map +0 -1
  248. package/dist/tests/plugins/theia/PythonPlugin.spec.js +0 -72
  249. package/dist/tests/plugins/theia/PythonPlugin.spec.js.map +0 -1
  250. package/dist/tests/plugins/theia/TypescriptPlugin.spec.js +0 -135
  251. package/dist/tests/plugins/theia/TypescriptPlugin.spec.js.map +0 -1
  252. package/dist/tests/plugins/theia/VscodeKubernetesPlugin.spec.js +0 -69
  253. package/dist/tests/plugins/theia/VscodeKubernetesPlugin.spec.js.map +0 -1
  254. package/dist/tests/plugins/theia/VscodeShellcheckPlugin.spec.js +0 -82
  255. package/dist/tests/plugins/theia/VscodeShellcheckPlugin.spec.js.map +0 -1
  256. package/dist/tests/plugins/theia/VscodeValePlugin.spec.js +0 -70
  257. package/dist/tests/plugins/theia/VscodeValePlugin.spec.js.map +0 -1
  258. package/dist/tests/plugins/theia/VscodeXmlPlugin.spec.js +0 -81
  259. package/dist/tests/plugins/theia/VscodeXmlPlugin.spec.js.map +0 -1
  260. package/dist/tests/plugins/theia/VscodeYamlPlugin.spec.js +0 -78
  261. package/dist/tests/plugins/theia/VscodeYamlPlugin.spec.js.map +0 -1
  262. package/dist/testsLibrary/WorkspaceHandlingTests.js.map +0 -1
  263. package/dist/testsLibrary/che-code/ProjectAndFileTestsCheCode.js.map +0 -1
  264. package/dist/testsLibrary/theia/CodeExecutionTestsTheia.js +0 -248
  265. package/dist/testsLibrary/theia/CodeExecutionTestsTheia.js.map +0 -1
  266. package/dist/testsLibrary/theia/LanguageServerTestsTheia.js +0 -230
  267. package/dist/testsLibrary/theia/LanguageServerTestsTheia.js.map +0 -1
  268. package/dist/testsLibrary/theia/ProjectAndFileTestsTheia.js +0 -133
  269. package/dist/testsLibrary/theia/ProjectAndFileTestsTheia.js.map +0 -1
  270. package/dist/utils/AnimationChecker.js.map +0 -1
  271. package/dist/utils/VCS/CheGitApi.js.map +0 -1
  272. package/dist/utils/requestHandlers/CheApiRequestHandler.js.map +0 -1
  273. package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +0 -1
  274. package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.js.map +0 -1
  275. package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.js.map +0 -1
  276. package/dist/utils/requestHandlers/tokens/ITokenHandler.js.map +0 -1
  277. package/dist/utils/theia/PreferencesHandlerTheia.js +0 -142
  278. package/dist/utils/theia/PreferencesHandlerTheia.js.map +0 -1
  279. package/index.ts +0 -69
  280. package/initPluginTest.sh +0 -9
  281. package/inversify.config.ts +0 -141
  282. package/mocha-all-devfiles-che-code.json +0 -12
  283. package/mocha-all-devfiles-theia.json +0 -15
  284. package/mocha-all-factories-che-code.json +0 -14
  285. package/mocha-all-factories-theia.json +0 -16
  286. package/mocha-all-plugins-che-code.json +0 -13
  287. package/mocha-all-plugins-theia.json +0 -15
  288. package/mocha-che-code.json +0 -12
  289. package/mocha-connector-theia.json +0 -12
  290. package/mocha-devworkspace-happy-path-che-code.json +0 -13
  291. package/mocha-devworkspace-happy-path-theia.json +0 -14
  292. package/mocha-empty-workspace-devworkspace-happy-path-che-code.json +0 -14
  293. package/mocha-factory-che-code.json +0 -13
  294. package/mocha-factory-theia.json +0 -14
  295. package/mocha-git-publish-branch-theia.json +0 -14
  296. package/mocha-git-self-sign-cert-theia.json +0 -14
  297. package/mocha-git-ssh-theia.json +0 -14
  298. package/mocha-happy-path-che-code.json +0 -14
  299. package/mocha-happy-path-theia.json +0 -15
  300. package/mocha-java-maven.json +0 -13
  301. package/mocha-java-springboot-che-code.json +0 -12
  302. package/mocha-java-springboot-theia.json +0 -13
  303. package/mocha-java-vertx-che-code.json +0 -12
  304. package/mocha-java-vertx-theia.json +0 -13
  305. package/mocha-load-theia.json +0 -12
  306. package/mocha-scala.json +0 -13
  307. package/mocha-single-devfile.json +0 -11
  308. package/mocha-theia.json +0 -12
  309. package/mocha-ws-creation-and-ls-theia.json +0 -12
  310. package/mocha.intelij.json +0 -13
  311. package/mocha.ocp.link.json +0 -11
  312. package/mocha.single.plugin.json +0 -8
  313. package/pageobjects/ide/theia/ContextMenu.ts +0 -55
  314. package/pageobjects/ide/theia/DebugView.ts +0 -88
  315. package/pageobjects/ide/theia/DialogWindow.ts +0 -101
  316. package/pageobjects/ide/theia/Editor.ts +0 -601
  317. package/pageobjects/ide/theia/Ide.ts +0 -393
  318. package/pageobjects/ide/theia/LeftToolBar.ts +0 -81
  319. package/pageobjects/ide/theia/NavigationBar.ts +0 -41
  320. package/pageobjects/ide/theia/NotificationCenter.ts +0 -75
  321. package/pageobjects/ide/theia/OpenDialogWidget.ts +0 -92
  322. package/pageobjects/ide/theia/OpenEditors.ts +0 -63
  323. package/pageobjects/ide/theia/OpenWorkspaceWidget.ts +0 -48
  324. package/pageobjects/ide/theia/PreviewWidget.ts +0 -142
  325. package/pageobjects/ide/theia/ProjectTree.ts +0 -338
  326. package/pageobjects/ide/theia/QuickOpenContainer.ts +0 -59
  327. package/pageobjects/ide/theia/RightToolBar.ts +0 -34
  328. package/pageobjects/ide/theia/Terminal.ts +0 -219
  329. package/pageobjects/ide/theia/TopMenu.ts +0 -103
  330. package/pageobjects/ide/theia/plugins/GitHubPullRequestPlugin.ts +0 -130
  331. package/pageobjects/ide/theia/plugins/GitPlugin.ts +0 -118
  332. package/pageobjects/ide/theia/plugins/KubernetesPlugin.ts +0 -113
  333. package/pageobjects/ide/theia/plugins/OpenshiftPlugin.ts +0 -87
  334. package/pageobjects/ide/theia/plugins/PluginsView.ts +0 -191
  335. package/tests/MochaHooks.ts +0 -57
  336. package/tests/devfiles/theia/CSlashCPlusPlus.spec.ts +0 -78
  337. package/tests/devfiles/theia/DevfileSmoke.spec.ts +0 -50
  338. package/tests/devfiles/theia/DotNetCore.spec.ts +0 -87
  339. package/tests/devfiles/theia/Go.spec.ts +0 -81
  340. package/tests/devfiles/theia/JavaMaven.spec.ts +0 -64
  341. package/tests/devfiles/theia/JavaSpringBoot.spec.ts +0 -71
  342. package/tests/devfiles/theia/JavaVertx.spec.ts +0 -65
  343. package/tests/devfiles/theia/NodeJS.spec.ts +0 -71
  344. package/tests/devfiles/theia/PHPSimple.spec.ts +0 -80
  345. package/tests/devfiles/theia/Python.spec.ts +0 -64
  346. package/tests/devfiles/theia/PythonDjango.spec.ts +0 -67
  347. package/tests/devfiles/theia/Quarkus.spec.ts +0 -76
  348. package/tests/devfiles/theia/Scala.spec.ts +0 -70
  349. package/tests/e2e/theia/FactoryUrl.spec.ts +0 -47
  350. package/tests/e2e/theia/GitPublishBranch.spec.ts +0 -109
  351. package/tests/e2e/theia/GitSelfSignCert.spec.ts +0 -110
  352. package/tests/e2e/theia/GitSsh.spec.ts +0 -144
  353. package/tests/e2e/theia/OpenshiftConnector.spec.ts +0 -144
  354. package/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +0 -60
  355. package/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.ts +0 -57
  356. package/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.ts +0 -57
  357. package/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.ts +0 -294
  358. package/tests/e2e_happy_path/theia/HappyPath.spec.ts +0 -348
  359. package/tests/intelij/IntelijOpenWorkspace.spec.ts +0 -47
  360. package/tests/load_test/theia/LoadTest.spec.ts +0 -55
  361. package/tests/login/Login.spec.ts +0 -31
  362. package/tests/plugins/theia/GitHubPullRequestPlugin.spec.ts +0 -147
  363. package/tests/plugins/theia/InstallPluginUsingUI.spec.ts +0 -77
  364. package/tests/plugins/theia/JavaPlugin.spec.ts +0 -100
  365. package/tests/plugins/theia/PhpPlugin.spec.ts +0 -115
  366. package/tests/plugins/theia/PythonPlugin.spec.ts +0 -86
  367. package/tests/plugins/theia/TypescriptPlugin.spec.ts +0 -168
  368. package/tests/plugins/theia/VscodeKubernetesPlugin.spec.ts +0 -83
  369. package/tests/plugins/theia/VscodeShellcheckPlugin.spec.ts +0 -100
  370. package/tests/plugins/theia/VscodeValePlugin.spec.ts +0 -85
  371. package/tests/plugins/theia/VscodeXmlPlugin.spec.ts +0 -104
  372. package/tests/plugins/theia/VscodeYamlPlugin.spec.ts +0 -99
  373. package/testsLibrary/theia/CodeExecutionTestsTheia.ts +0 -220
  374. package/testsLibrary/theia/LanguageServerTestsTheia.ts +0 -205
  375. package/testsLibrary/theia/ProjectAndFileTestsTheia.ts +0 -113
  376. package/utils/AnimationChecker.ts +0 -27
  377. package/utils/theia/PreferencesHandlerTheia.ts +0 -123
  378. /package/{initDefaultValues.sh → configs/sh-scripts/initDefaultValues.sh} +0 -0
  379. /package/dist/utils/{VCS → vsc}/github/GitHubUtil.js +0 -0
  380. /package/utils/{VCS → vsc}/github/GitHubUtil.ts +0 -0
@@ -1,70 +0,0 @@
1
- /*********************************************************************
2
- * Copyright (c) 2020 Red Hat, Inc.
3
- *
4
- * This program and the accompanying materials are made
5
- * available under the terms of the Eclipse Public License 2.0
6
- * which is available at https://www.eclipse.org/legal/epl-2.0/
7
- *
8
- * SPDX-License-Identifier: EPL-2.0
9
- **********************************************************************/
10
- import 'reflect-metadata';
11
- import { CLASSES } from '../../../inversify.types';
12
- import { LanguageServerTestsTheia } from '../../../testsLibrary/theia/LanguageServerTestsTheia';
13
- import { e2eContainer } from '../../../inversify.config';
14
- import { CodeExecutionTestsTheia } from '../../../testsLibrary/theia/CodeExecutionTestsTheia';
15
- import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
16
- import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
17
- import CheReporter from '../../../driver/CheReporter';
18
-
19
- const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
20
- const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
21
- const commonLanguageServerTests: LanguageServerTestsTheia = e2eContainer.get(CLASSES.LanguageServerTestsTheia);
22
- const codeExecutionTests: CodeExecutionTestsTheia = e2eContainer.get(CLASSES.CodeExecutionTestsTheia);
23
-
24
- const workspaceSampleName: string = 'console-scala-simple';
25
- const workspaceRootFolderName: string = 'example';
26
- const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/src/main/scala/org/eclipse/che/examples`;
27
- const tabTitle: string = 'HelloWorld.scala';
28
- const compileTaskkName: string = 'sbt compile';
29
- const runTaskName: string = 'sbt run';
30
- const testTaskName: string = 'sbt test';
31
- const stack: string = 'Scala';
32
-
33
- // skipping scala to enable pre-release suite to be easily used for updates until https://github.com/eclipse/che/issues/18662 is fixed
34
- suite.skip(`${stack} test`, async () => {
35
- suite (`Create ${stack} workspace`, async () => {
36
- workspaceHandlingTests.createAndOpenWorkspace(stack);
37
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
38
- test('Register running workspace', async () => {
39
- CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
40
- });
41
- projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
42
- });
43
-
44
- suite('Test opening file', async () => {
45
- // opening file that soon should give time for LS to initialize
46
- projectAndFileTests.openFile(fileFolderPath, tabTitle);
47
- });
48
-
49
- suite('Validation of commands', async () => {
50
- codeExecutionTests.runTask(compileTaskkName, 240_000);
51
- codeExecutionTests.closeTerminal(compileTaskkName);
52
- codeExecutionTests.runTaskInputText(runTaskName, '[info] running org.eclipse.che.examples.HelloWorld', 'Test User', 120_000);
53
- codeExecutionTests.closeTerminal(runTaskName);
54
- codeExecutionTests.runTask(testTaskName, 120_000);
55
- codeExecutionTests.closeTerminal(testTaskName);
56
- });
57
-
58
- suite('Language server validation', async () => {
59
- commonLanguageServerTests.errorHighlighting(tabTitle, 'Abc:', 21);
60
- // commonLanguageServerTests.suggestionInvoking(tabTitle, 15, 31, 'Console scala');
61
- commonLanguageServerTests.autocomplete(tabTitle, 25, 28, 'name: String');
62
- // commonLanguageServerTests.goToImplementations(tabTitle, 19, 7, codeNavigationClassName, 30_000); // not working
63
- });
64
-
65
- suite ('Stopping and deleting the workspace', async () => {
66
- test(`Stop and remowe workspace`, async () => {
67
- await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
68
- });
69
- });
70
- });
@@ -1,47 +0,0 @@
1
- // /*********************************************************************
2
- // * Copyright (c) 2020 Red Hat, Inc.
3
- // *
4
- // * This program and the accompanying materials are made
5
- // * available under the terms of the Eclipse Public License 2.0
6
- // * which is available at https://www.eclipse.org/legal/epl-2.0/
7
- // *
8
- // * SPDX-License-Identifier: EPL-2.0
9
- // **********************************************************************/
10
-
11
- import { e2eContainer } from '../../../inversify.config';
12
- import { CLASSES, TYPES } from '../../../inversify.types';
13
- import { TestConstants } from '../../../TestConstants';
14
- import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
15
- import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
16
- import { ITestWorkspaceUtil } from '../../../utils/workspace/ITestWorkspaceUtil';
17
- import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
18
-
19
- const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
20
- const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
21
- const testWorkspaceUtils: ITestWorkspaceUtil = e2eContainer.get<ITestWorkspaceUtil>(TYPES.WorkspaceUtil);
22
- const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
23
-
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`;
25
- const workspaceSampleName: string = 'console-java-simple';
26
- const workspaceRootFolderName: string = 'src';
27
-
28
- // the suite expect user to be logged in
29
- suite('Workspace creation via factory url', async () => {
30
- suite('Open factory URL', async () => {
31
- test(`Navigating to factory URL`, async () => {
32
- await browserTabsUtil.navigateTo(factoryUrl);
33
- });
34
- });
35
-
36
- suite('Wait workspace readyness', async () => {
37
- workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
38
- projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName);
39
- });
40
-
41
- suite ('Stopping and deleting the workspace', async () => {
42
- test('Stop and remove workspace', async () => {
43
- await testWorkspaceUtils.cleanUpRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
44
- });
45
- });
46
-
47
- });
@@ -1,109 +0,0 @@
1
- /*********************************************************************
2
- * Copyright (c) 2019 Red Hat, Inc.
3
- *
4
- * This program and the accompanying materials are made
5
- * available under the terms of the Eclipse Public License 2.0
6
- * which is available at https://www.eclipse.org/legal/epl-2.0/
7
- *
8
- * SPDX-License-Identifier: EPL-2.0
9
- **********************************************************************/
10
-
11
- import { e2eContainer } from '../../../inversify.config';
12
- import { CLASSES, TYPES } from '../../../inversify.types';
13
- import { Editor } from '../../../pageobjects/ide/theia/Editor';
14
- import { GitPlugin } from '../../../pageobjects/ide/theia/plugins/GitPlugin';
15
- import { Ide } from '../../../pageobjects/ide/theia/Ide';
16
- import { ProjectTree } from '../../../pageobjects/ide/theia/ProjectTree';
17
- import { QuickOpenContainer } from '../../../pageobjects/ide/theia/QuickOpenContainer';
18
- import { ICheLoginPage } from '../../../pageobjects/login/ICheLoginPage';
19
- import { TestConstants } from '../../../TestConstants';
20
- import { DriverHelper } from '../../../utils/DriverHelper';
21
- import { TopMenu } from '../../../pageobjects/ide/theia/TopMenu';
22
- import { WorkspaceNameHandler } from '../../../utils/WorkspaceNameHandler';
23
- import { By } from 'selenium-webdriver';
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';
28
-
29
- const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
30
- const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
31
- const ide: Ide = e2eContainer.get(CLASSES.Ide);
32
- const quickOpenContainer: QuickOpenContainer = e2eContainer.get(CLASSES.QuickOpenContainer);
33
- const editor: Editor = e2eContainer.get(CLASSES.Editor);
34
- const topMenu: TopMenu = e2eContainer.get(CLASSES.TopMenu);
35
- const loginPage: ICheLoginPage = e2eContainer.get<ICheLoginPage>(TYPES.CheLogin);
36
- const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
37
- const gitPlugin: GitPlugin = e2eContainer.get(CLASSES.GitPlugin);
38
- const testWorkspaceUtils: ITestWorkspaceUtil = e2eContainer.get<ITestWorkspaceUtil>(TYPES.WorkspaceUtil);
39
- const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
40
-
41
- const workspacePrefixUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/dashboard/#/ide/${TestConstants.TS_SELENIUM_USERNAME}/`;
42
- const wsNameGitPublishBranch = workspaceNameHandler.generateWorkspaceName('checkGitPublishBranch-', 5);
43
- const changedFile = 'README.md';
44
- const branchName = workspaceNameHandler.generateWorkspaceName('checkGitPublishBranch', 5);
45
- const file = `https://github.com/${TestConstants.TS_GITHUB_TEST_REPO}/blob/${branchName}/README.md`;
46
-
47
- suite('Publish branch in git extension', async () => {
48
- suiteSetup(async function () {
49
- const wsConfig = await testWorkspaceUtils.getBaseDevfile();
50
- wsConfig.metadata!.name = wsNameGitPublishBranch;
51
- await testWorkspaceUtils.createWsFromDevFile(wsConfig);
52
- });
53
-
54
- test('Login into workspace', async () => {
55
- await browserTabsUtil.navigateTo(workspacePrefixUrl + wsNameGitPublishBranch);
56
- await loginPage.login();
57
- WorkspaceHandlingTests.setWorkspaceName(wsNameGitPublishBranch);
58
- CheReporter.registerRunningWorkspace(wsNameGitPublishBranch);
59
- await ide.waitWorkspaceAndIde();
60
- await projectTree.openProjectTreeContainer();
61
- await driverHelper.wait(15000);
62
- });
63
-
64
- test('Create a new branch, change commit and push', async function changeCommitAndPushFunc() {
65
- const currentDate: string = Date.now().toString();
66
- const readmeFileContentXpath: string = `//div[@id='readme']//p[contains(text(), '${currentDate}')]`;
67
- await cloneTestRepo();
68
-
69
- await driverHelper.wait(15000);
70
- await topMenu.selectOption('View', 'Find Command...');
71
- await quickOpenContainer.typeAndSelectSuggestion('branch', 'Git: Create Branch...');
72
- await quickOpenContainer.typeAndSelectSuggestion(branchName, `Please provide a new branch name (Press 'Enter' to confirm your input or 'Escape' to cancel)`);
73
-
74
- await projectTree.expandPathAndOpenFile('Spoon-Knife', changedFile);
75
- await editor.type(changedFile, currentDate + '\n', 1);
76
- await gitPlugin.openGitPluginContainer();
77
- await gitPlugin.waitChangedFileInChagesList(changedFile);
78
- await gitPlugin.stageAllChanges(changedFile);
79
- await gitPlugin.waitChangedFileInChagesList(changedFile);
80
- await gitPlugin.typeCommitMessage(this.test!.title + currentDate);
81
- await gitPlugin.commitFromCommandMenu();
82
- await gitPlugin.pushChangesFromCommandMenu();
83
- await driverHelper.waitAndClick(By.xpath(`//button[@class='theia-button main']`));
84
- await gitPlugin.waitDataIsSynchronized();
85
- await testWorkspaceUtils.cleanUpAllWorkspaces();
86
-
87
- await browserTabsUtil.navigateTo(file);
88
- await driverHelper.waitVisibility(By.xpath(readmeFileContentXpath));
89
- });
90
-
91
- });
92
-
93
- suite('Cleanup', async () => {
94
- test('Remove test workspace', async () => {
95
- await testWorkspaceUtils.cleanUpAllWorkspaces();
96
- });
97
- });
98
-
99
- async function cloneTestRepo() {
100
- const sshLinkToRepo: string = 'git@github.com:' + TestConstants.TS_GITHUB_TEST_REPO + '.git';
101
- const confirmMessage = 'Clone from URL';
102
-
103
- await topMenu.selectOption('View', 'Find Command...');
104
- await quickOpenContainer.typeAndSelectSuggestion('clone', 'Git: Clone');
105
- await quickOpenContainer.typeAndSelectSuggestion(sshLinkToRepo, confirmMessage);
106
- await gitPlugin.clickOnSelectRepositoryButton();
107
-
108
- await ide.waitAndApplyTrustNotification();
109
- }
@@ -1,110 +0,0 @@
1
- /*********************************************************************
2
- * Copyright (c) 2021 Red Hat, Inc.
3
- *
4
- * This program and the accompanying materials are made
5
- * available under the terms of the Eclipse Public License 2.0
6
- * which is available at https://www.eclipse.org/legal/epl-2.0/
7
- *
8
- * SPDX-License-Identifier: EPL-2.0
9
- **********************************************************************/
10
-
11
- import { e2eContainer } from '../../../inversify.config';
12
- import { CLASSES, TYPES } from '../../../inversify.types';
13
- import { GitPlugin } from '../../../pageobjects/ide/theia/plugins/GitPlugin';
14
- import { Ide } from '../../../pageobjects/ide/theia/Ide';
15
- import { ProjectTree } from '../../../pageobjects/ide/theia/ProjectTree';
16
- import { QuickOpenContainer } from '../../../pageobjects/ide/theia/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/theia/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/theia/Editor';
26
- import { ITestWorkspaceUtil } from '../../../utils/workspace/ITestWorkspaceUtil';
27
- import CheReporter from '../../../driver/CheReporter';
28
-
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);
41
-
42
- const workspaceName = 'gitSelfSignCert';
43
-
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';
48
-
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
- });
58
-
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
- });
66
-
67
-
68
- test('Clone project', async () => {
69
- await cloneTestRepo(gitProjectUrl);
70
-
71
- await projectTree.waitProjectImportedNoSubfolder('gitService');
72
- await projectTree.waitItem('gitService/README.md');
73
- });
74
-
75
- test('Change commit and push', async function changeCommitAndPushFunc() {
76
- const currentDate: string = Date.now().toString();
77
- await projectTree.expandPathAndOpenFile('gitService', committedFile);
78
- await editor.type(committedFile, currentDate + '\n', 1);
79
- await gitPlugin.openGitPluginContainer();
80
- await gitPlugin.waitChangedFileInChagesList(committedFile);
81
- await gitPlugin.stageAllChanges(committedFile);
82
- await gitPlugin.waitChangedFileInChagesList(committedFile);
83
- await gitPlugin.typeCommitMessage(this.test!.title + currentDate);
84
- await gitPlugin.commitFromCommandMenu();
85
- await gitPlugin.pushChangesFromCommandMenu();
86
- await quickOpenContainer.typeAndSelectSuggestion('git-admin', 'Git: ' + `https://${TestConstants.TS_SELF_HOSTED_GIT_SERVER_URL}` + ' (Press \'Enter\' to confirm your input or \'Escape\' to cancel)');
87
- await quickOpenContainer.typeAndSelectSuggestion('admin', 'Git: https://git-admin@' + `${TestConstants.TS_SELF_HOSTED_GIT_SERVER_URL}` + ' (Press \'Enter\' to confirm your input or \'Escape\' to cancel)');
88
- await gitPlugin.waitDataIsSynchronized();
89
- });
90
-
91
- });
92
-
93
- suite('Stopping and deleting the workspace', async () => {
94
- test(`Stop and remove workspace`, async () => {
95
- await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
96
- });
97
- });
98
-
99
- async function cloneTestRepo(linkToRepo: string) {
100
- const confirmMessage = 'Clone from URL';
101
-
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();
108
-
109
- await ide.waitAndApplyTrustNotification();
110
- }
@@ -1,144 +0,0 @@
1
- /*********************************************************************
2
- * Copyright (c) 2019 Red Hat, Inc.
3
- *
4
- * This program and the accompanying materials are made
5
- * available under the terms of the Eclipse Public License 2.0
6
- * which is available at https://www.eclipse.org/legal/epl-2.0/
7
- *
8
- * SPDX-License-Identifier: EPL-2.0
9
- **********************************************************************/
10
-
11
- import { assert } from 'chai';
12
- import { e2eContainer } from '../../../inversify.config';
13
- import { CLASSES, TYPES } from '../../../inversify.types';
14
- import { Editor } from '../../../pageobjects/ide/theia/Editor';
15
- import { GitPlugin } from '../../../pageobjects/ide/theia/plugins/GitPlugin';
16
- import { Ide } from '../../../pageobjects/ide/theia/Ide';
17
- import { ProjectTree } from '../../../pageobjects/ide/theia/ProjectTree';
18
- import { QuickOpenContainer } from '../../../pageobjects/ide/theia/QuickOpenContainer';
19
- import { ICheLoginPage } from '../../../pageobjects/login/ICheLoginPage';
20
- import { TestConstants } from '../../../TestConstants';
21
- import { DriverHelper } from '../../../utils/DriverHelper';
22
- import { WorkspaceNameHandler } from '../../../utils/WorkspaceNameHandler';
23
- import { CheGitApi } from '../../../utils/VCS/CheGitApi';
24
- import { GitHubUtil } from '../../../utils/VCS/github/GitHubUtil';
25
- import { TopMenu } from '../../../pageobjects/ide/theia/TopMenu';
26
- import { TimeoutConstants } from '../../../TimeoutConstants';
27
- import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
28
- import { Dashboard } from '../../../pageobjects/dashboard/Dashboard';
29
- import { ITestWorkspaceUtil } from '../../../utils/workspace/ITestWorkspaceUtil';
30
- import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
31
- import CheReporter from '../../../driver/CheReporter';
32
-
33
- const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
34
- const ide: Ide = e2eContainer.get(CLASSES.Ide);
35
- const quickOpenContainer: QuickOpenContainer = e2eContainer.get(CLASSES.QuickOpenContainer);
36
- const editor: Editor = e2eContainer.get(CLASSES.Editor);
37
- const topMenu: TopMenu = e2eContainer.get(CLASSES.TopMenu);
38
- const loginPage: ICheLoginPage = e2eContainer.get<ICheLoginPage>(TYPES.CheLogin);
39
- const gitHubUtils: GitHubUtil = e2eContainer.get<GitHubUtil>(CLASSES.GitHubUtil);
40
- const cheGitAPI: CheGitApi = e2eContainer.get(CLASSES.CheGitApi);
41
- const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
42
- const gitPlugin: GitPlugin = e2eContainer.get(CLASSES.GitPlugin);
43
- const testWorkspaceUtils: ITestWorkspaceUtil = e2eContainer.get<ITestWorkspaceUtil>(TYPES.WorkspaceUtil);
44
- const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
45
- const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
46
- const workspaceNameHandler: WorkspaceNameHandler = e2eContainer.get(CLASSES.WorkspaceNameHandler);
47
-
48
- const workspacePrefixUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/dashboard/#/ide/${TestConstants.TS_SELENIUM_USERNAME}/`;
49
- const wsNameCheckGeneratingKeys = 'checkGeneratingSsh';
50
- const wsNameCheckPropagatingKeys = 'checkPropagatingSsh';
51
- const committedFile = 'README.md';
52
-
53
- suite('Git with ssh workflow', async () => {
54
- suiteSetup(async function () {
55
- const wsConfig = await testWorkspaceUtils.getBaseDevfile();
56
- wsConfig.metadata!.name = wsNameCheckGeneratingKeys;
57
- await browserTabsUtil.navigateTo(TestConstants.TS_SELENIUM_BASE_URL);
58
- await loginPage.login();
59
- await testWorkspaceUtils.createWsFromDevFile(wsConfig);
60
- });
61
-
62
- test('Login into workspace and open tree container', async () => {
63
- await dashboard.openDashboard();
64
- await browserTabsUtil.navigateTo(workspacePrefixUrl + wsNameCheckGeneratingKeys);
65
- WorkspaceHandlingTests.setWorkspaceName(wsNameCheckGeneratingKeys);
66
- CheReporter.registerRunningWorkspace(wsNameCheckGeneratingKeys);
67
- await ide.waitWorkspaceAndIde();
68
- await projectTree.openProjectTreeContainer();
69
- await driverHelper.wait(TimeoutConstants.TS_PROJECT_TREE_TIMEOUT);
70
- });
71
-
72
- test('Generate a SSH key', async () => {
73
- await topMenu.selectOption('View', 'Find Command...');
74
- // workaround - reopen 'Find Command' container - https://github.com/eclipse/che/issues/19793
75
- await topMenu.selectOption('View', 'Find Command...');
76
- await quickOpenContainer.typeAndSelectSuggestion('SSH', 'SSH: Generate Key...');
77
- await ide.waitNotificationAndClickOnButton('Key pair successfully generated, do you want to view the public key', 'View');
78
- await editor.waitEditorOpened('Untitled-0');
79
- await editor.waitText('Untitled-0', 'ssh-rsa');
80
- });
81
-
82
-
83
- test('Add a SSH key to GitHub side and clone by ssh link', async () => {
84
- const sshName: string = workspaceNameHandler.generateWorkspaceName('test-SSH-', 5);
85
- const publicSshKey = await cheGitAPI.getPublicSSHKey();
86
- await gitHubUtils.addPublicSshKeyToUserAccount(TestConstants.TS_GITHUB_TEST_REPO_ACCESS_TOKEN, sshName, publicSshKey);
87
- await cloneTestRepo();
88
-
89
- });
90
-
91
- test('Change commit and push', async function changeCommitAndPushFunc() {
92
- const currentDate: string = Date.now().toString();
93
- await projectTree.expandPathAndOpenFile('Spoon-Knife', committedFile);
94
- await editor.type(committedFile, currentDate + '\n', 1);
95
- await gitPlugin.openGitPluginContainer();
96
- await gitPlugin.waitChangedFileInChagesList(committedFile);
97
- await gitPlugin.stageAllChanges(committedFile);
98
- await gitPlugin.waitChangedFileInChagesList(committedFile);
99
- await gitPlugin.typeCommitMessage(this.test!.title + currentDate);
100
- await gitPlugin.commitFromCommandMenu();
101
- await gitPlugin.pushChangesFromCommandMenu();
102
- await gitPlugin.waitDataIsSynchronized();
103
- await driverHelper.wait(TimeoutConstants.TS_EDITOR_TAB_INTERACTION_TIMEOUT);
104
- const rawDataFromFile: string = await gitHubUtils.getRawContentFromFile(TestConstants.TS_GITHUB_TEST_REPO + '/master/' + committedFile);
105
- assert.isTrue(rawDataFromFile.includes(currentDate));
106
- await testWorkspaceUtils.cleanUpAllWorkspaces();
107
- });
108
-
109
- test('Check ssh key in a new workspace', async () => {
110
- const data = await testWorkspaceUtils.getBaseDevfile();
111
-
112
- data.metadata!.name = wsNameCheckPropagatingKeys;
113
- await testWorkspaceUtils.createWsFromDevFile(data);
114
- await dashboard.openDashboard();
115
- await browserTabsUtil.navigateTo(workspacePrefixUrl + wsNameCheckPropagatingKeys);
116
- WorkspaceHandlingTests.setWorkspaceName(wsNameCheckPropagatingKeys);
117
- CheReporter.registerRunningWorkspace(wsNameCheckGeneratingKeys);
118
- await ide.waitWorkspaceAndIde();
119
- await projectTree.openProjectTreeContainer();
120
- await driverHelper.wait(TimeoutConstants.TS_PROJECT_TREE_TIMEOUT);
121
- await cloneTestRepo();
122
- await projectTree.expandPath('Spoon-Knife');
123
- await projectTree.waitItem('Spoon-Knife/README.md');
124
- });
125
-
126
- });
127
-
128
- suite('Cleanup', async () => {
129
- test('Remove test workspace', async () => {
130
- await testWorkspaceUtils.cleanUpAllWorkspaces();
131
- });
132
- });
133
-
134
- async function cloneTestRepo() {
135
- const sshLinkToRepo: string = 'git@github.com:' + TestConstants.TS_GITHUB_TEST_REPO + '.git';
136
- const confirmMessage = 'Clone from URL, ' + sshLinkToRepo;
137
-
138
- await topMenu.selectOption('View', 'Find Command...');
139
- // workaround - reopen 'Find Command' container - https://github.com/eclipse/che/issues/19793
140
- await topMenu.selectOption('View', 'Find Command...');
141
- await quickOpenContainer.typeAndSelectSuggestion('clone', 'Git: Clone');
142
- await quickOpenContainer.typeAndSelectSuggestion(sshLinkToRepo, confirmMessage);
143
- await gitPlugin.clickOnSelectRepositoryButton();
144
- }
@@ -1,144 +0,0 @@
1
- /*********************************************************************
2
- * Copyright (c) 2019 Red Hat, Inc.
3
- *
4
- * This program and the accompanying materials are made
5
- * available under the terms of the Eclipse Public License 2.0
6
- * which is available at https://www.eclipse.org/legal/epl-2.0/
7
- *
8
- * SPDX-License-Identifier: EPL-2.0
9
- **********************************************************************/
10
-
11
- import { e2eContainer } from '../../../inversify.config';
12
- import { CLASSES, TYPES } from '../../../inversify.types';
13
- import { Dashboard } from '../../../pageobjects/dashboard/Dashboard';
14
- import { Ide } from '../../../pageobjects/ide/theia/Ide';
15
- import { Buttons, Locations, OpenDialogWidget } from '../../../pageobjects/ide/theia/OpenDialogWidget';
16
- import { OpenshiftAppExplorerToolbar, OpenshiftContextMenuItems, OpenshiftPlugin } from '../../../pageobjects/ide/theia/plugins/OpenshiftPlugin';
17
- import { ProjectTree } from '../../../pageobjects/ide/theia/ProjectTree';
18
- import { QuickOpenContainer } from '../../../pageobjects/ide/theia/QuickOpenContainer';
19
- import { Terminal } from '../../../pageobjects/ide/theia/Terminal';
20
- import { TopMenu } from '../../../pageobjects/ide/theia/TopMenu';
21
- import { ICheLoginPage } from '../../../pageobjects/login/ICheLoginPage';
22
- import { TimeoutConstants } from '../../../TimeoutConstants';
23
- import { TestConstants } from '../../../TestConstants';
24
- import { DriverHelper } from '../../../utils/DriverHelper';
25
- import { PreferencesHandlerTheia, TerminalRendererTypeTheia } from '../../../utils/theia/PreferencesHandlerTheia';
26
- import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
27
- import { ITestWorkspaceUtil } from '../../../utils/workspace/ITestWorkspaceUtil';
28
- import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
29
- import CheReporter from '../../../driver/CheReporter';
30
- import { Key } from 'selenium-webdriver';
31
-
32
- const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
33
- const ide: Ide = e2eContainer.get(CLASSES.Ide);
34
- const loginPage: ICheLoginPage = e2eContainer.get<ICheLoginPage>(TYPES.CheLogin);
35
- const testWorkspaceUtils: ITestWorkspaceUtil = e2eContainer.get<ITestWorkspaceUtil>(TYPES.WorkspaceUtil);
36
- const openshiftPlugin: OpenshiftPlugin = e2eContainer.get(CLASSES.OpenshiftPlugin);
37
- const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
38
- const quickOpenContainer: QuickOpenContainer = e2eContainer.get(CLASSES.QuickOpenContainer);
39
- const openDialogWidget: OpenDialogWidget = e2eContainer.get(CLASSES.OpenDialogWidget);
40
- const preferencesHalder: PreferencesHandlerTheia = e2eContainer.get(CLASSES.PreferencesHandlerTheia);
41
- const terminal: Terminal = e2eContainer.get(CLASSES.Terminal);
42
- const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
43
- const topMenu: TopMenu = e2eContainer.get(CLASSES.TopMenu);
44
- const projectName: string = 'node-js';
45
- const selectSugestionSuffix: string = '(Press \'Enter\' to confirm your input or \'Escape\' to cancel)';
46
- const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
47
-
48
- suite('Openshift connector user story', async () => {
49
- const workspacePrefixUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/dashboard/#/ide/${TestConstants.TS_SELENIUM_USERNAME}/`;
50
- let wsName: string;
51
-
52
- suiteSetup(async function () {
53
- preferencesHalder.setTerminalType(TerminalRendererTypeTheia.dom);
54
- const wsConfig = await testWorkspaceUtils.getBaseDevfile();
55
- wsName = wsConfig.metadata!.name!;
56
- wsConfig.projects = [
57
- {
58
- 'name': 'node-js',
59
- 'source': {
60
- 'location': 'https://github.com/maxura/nodejs-hello-world.git',
61
- 'type': 'git'
62
- }
63
- },
64
- ],
65
-
66
- wsConfig.components = [
67
- {
68
- 'id': 'redhat/vscode-openshift-connector/latest',
69
- 'type': 'chePlugin'
70
- },
71
- ];
72
-
73
- await browserTabsUtil.navigateTo(TestConstants.TS_SELENIUM_BASE_URL);
74
- await loginPage.login();
75
- await testWorkspaceUtils.createWsFromDevFile(wsConfig);
76
- });
77
-
78
- test('Login into workspace and open plugin', async () => {
79
- await dashboard.openDashboard();
80
- await browserTabsUtil.navigateTo(workspacePrefixUrl + wsName);
81
- WorkspaceHandlingTests.setWorkspaceName(wsName);
82
- CheReporter.registerRunningWorkspace(wsName);
83
- await ide.waitWorkspaceAndIde();
84
- await projectTree.openProjectTreeContainer();
85
- await projectTree.waitProjectImported(projectName, 'index.js');
86
- await dashboard.waitDisappearanceNavigationMenu();
87
- await openshiftPlugin.clickOnOpenshiftToollBarIcon();
88
- await openshiftPlugin.waitOpenshiftConnectorTree();
89
- });
90
-
91
- test('Login into current cluster', async () => {
92
- const provideAuthenticationSuffix: string = `for basic authentication to the API server ${selectSugestionSuffix}`;
93
- const loginIntoClusterMessage: string = 'You are already logged in the cluster. Do you want to login to a different cluster?';
94
- const openshiftIP: string = await openshiftPlugin.getClusterIP();
95
-
96
- await openshiftPlugin.clickOnOpenshiftConnectorTree();
97
- await openshiftPlugin.clickOnApplicationToolbarItem(OpenshiftAppExplorerToolbar.LogIntoCluster);
98
- await ide.clickOnNotificationButton(loginIntoClusterMessage, 'Yes');
99
- await quickOpenContainer.clickOnContainerItem('Credentials');
100
- await quickOpenContainer.clickOnContainerItem(`https://${openshiftIP}`);
101
- await quickOpenContainer.clickOnContainerItem('$(plus) Add new user...');
102
- await quickOpenContainer.typeAndSelectSuggestion(TestConstants.TS_TEST_OPENSHIFT_PLUGIN_USERNAME, `Provide Username ${provideAuthenticationSuffix}`);
103
- await quickOpenContainer.typeAndSelectSuggestion(TestConstants.TS_TEST_OPENSHIFT_PLUGIN_PASSWORD, `Provide Password ${provideAuthenticationSuffix}`);
104
-
105
- await topMenu.selectOption('View', 'Find Command...');
106
- await quickOpenContainer.typeAndSelectSuggestion('OpenShift: Set Active Project', 'OpenShift: Set Active Project');
107
- await quickOpenContainer.typeAndSelectSuggestion(TestConstants.TS_TEST_OPENSHIFT_PLUGIN_PROJECT, TestConstants.TS_TEST_OPENSHIFT_PLUGIN_PROJECT);
108
- await openshiftPlugin.clickOnItemInTree(openshiftIP);
109
- await openshiftPlugin.waitItemInTree(TestConstants.TS_TEST_OPENSHIFT_PLUGIN_PROJECT);
110
- });
111
-
112
- test('Create new component with application', async () => {
113
- await topMenu.selectOption('View', 'Find Command...');
114
- await quickOpenContainer.typeAndSelectSuggestion('OpenShift: New Component', 'OpenShift: New Component from local folder');
115
- await quickOpenContainer.clickOnContainerItem('$(plus) Create new Application...');
116
- await quickOpenContainer.typeAndSelectSuggestion('node-js-app', `Provide Application name ${selectSugestionSuffix}` );
117
- await quickOpenContainer.clickOnContainerItem('$(plus) Add new context folder.');
118
- await openDialogWidget.selectLocationAndAddContextFolder(Locations.Root, `projects/${projectName}`, Buttons.AddContext);
119
- await quickOpenContainer.typeAndSelectSuggestion('component-node-js', `Provide Component name ${selectSugestionSuffix}`);
120
-
121
- await quickOpenContainer.clickOnContainerItem(TestConstants.TS_TEST_OPENSHIFT_PLUGIN_COMPONENT_TYPE);
122
- await quickOpenContainer.clickOnContainerItem(TestConstants.TS_TEST_OPENSHIFT_PLUGIN_COMPONENT_VERSION);
123
-
124
- await driverHelper.wait(TimeoutConstants.TS_PROJECT_TREE_TIMEOUT);
125
- await openshiftPlugin.waitItemInTree(TestConstants.TS_TEST_OPENSHIFT_PLUGIN_PROJECT);
126
- await openshiftPlugin.waitItemInTree('node-js-app');
127
- await openshiftPlugin.waitItemInTree('component-node-js');
128
- });
129
-
130
- test('Push new component', async () => {
131
- driverHelper.getDriver().switchTo().activeElement().sendKeys(Key.F1);
132
- await quickOpenContainer.typeAndSelectSuggestion(OpenshiftContextMenuItems.Push, 'OpenShift: Push Component');
133
- await quickOpenContainer.clickOnContainerItem('node-js-app');
134
- await quickOpenContainer.clickOnContainerItem('component-node-js (s2i)');
135
- await terminal.selectTabByPrefixAndWaitText('OpenShift: Push', 'Changes successfully pushed to component', 240000);
136
- });
137
-
138
- suite('Cleanup', async () => {
139
- test('Remove test workspace', async () => {
140
- await testWorkspaceUtils.cleanUpAllWorkspaces();
141
- });
142
- });
143
-
144
- });