@eclipse-che/che-e2e 7.56.0 → 7.56.1-dev-8788793

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 (314) hide show
  1. package/TestConstants.ts +23 -0
  2. package/driver/CheReporter.ts +16 -5
  3. package/driver/ChromeDriver.ts +7 -5
  4. package/index.ts +26 -26
  5. package/initDefaultValues.sh +2 -0
  6. package/initDevfileTests.sh +7 -3
  7. package/initPluginTest.sh +1 -1
  8. package/inversify.config.ts +30 -30
  9. package/inversify.types.ts +4 -4
  10. package/{mocha-all-devfiles.json → mocha-all-devfiles-theia.json} +2 -2
  11. package/{mocha-git-ssh.json → mocha-all-factories-code.json} +1 -1
  12. package/{mocha-all-factories.json → mocha-all-factories-theia.json} +2 -2
  13. package/mocha-all-plugins-code.json +10 -0
  14. package/{mocha-all-plugins.json → mocha-all-plugins-theia.json} +2 -2
  15. package/{mocha.json → mocha-code.json} +1 -1
  16. package/{mocha-connector.json → mocha-connector-theia.json} +1 -1
  17. package/mocha-devworkspace-happy-path-code.json +10 -0
  18. package/{mocha-devworkspace-happy-path.json → mocha-devworkspace-happy-path-theia.json} +1 -1
  19. package/mocha-factory-code.json +10 -0
  20. package/{mocha-factory.json → mocha-factory-theia.json} +1 -1
  21. package/mocha-git-publish-branch-theia.json +11 -0
  22. package/mocha-git-self-sign-cert-theia.json +11 -0
  23. package/{mocha-git-self-sign-cert.json → mocha-git-ssh-theia.json} +1 -1
  24. package/{mocha-git-publish-branch.json → mocha-happy-path-code.json} +1 -1
  25. package/{mocha-happy-path.json → mocha-happy-path-theia.json} +1 -1
  26. package/{mocha-java-vertx.json → mocha-java-maven.json} +1 -1
  27. package/{mocha-load.json → mocha-java-springboot-code.json} +1 -1
  28. package/mocha-java-springboot-theia.json +9 -0
  29. package/{mocha-wkspc-creation-and-ls.json → mocha-java-vertx-code.json} +1 -1
  30. package/mocha-java-vertx-theia.json +9 -0
  31. package/mocha-load-theia.json +9 -0
  32. package/mocha-scala.json +9 -0
  33. package/mocha-theia.json +8 -0
  34. package/mocha-ws-creation-and-ls-theia.json +9 -0
  35. package/package.json +37 -25
  36. package/pageobjects/dashboard/CreateWorkspace.ts +9 -1
  37. package/pageobjects/dashboard/workspace-details/WorkspaceDetails.ts +1 -1
  38. package/pageobjects/ide/{ContextMenu.ts → theia/ContextMenu.ts} +6 -6
  39. package/pageobjects/ide/{DebugView.ts → theia/DebugView.ts} +6 -6
  40. package/pageobjects/ide/{DialogWindow.ts → theia/DialogWindow.ts} +4 -4
  41. package/pageobjects/ide/{Editor.ts → theia/Editor.ts} +19 -20
  42. package/pageobjects/ide/{Ide.ts → theia/Ide.ts} +5 -5
  43. package/pageobjects/ide/{LeftToolBar.ts → theia/LeftToolBar.ts} +4 -4
  44. package/pageobjects/ide/{NavigationBar.ts → theia/NavigationBar.ts} +7 -7
  45. package/pageobjects/ide/{NotificationCenter.ts → theia/NotificationCenter.ts} +4 -4
  46. package/pageobjects/ide/{OpenDialogWidget.ts → theia/OpenDialogWidget.ts} +6 -6
  47. package/pageobjects/ide/{OpenEditors.ts → theia/OpenEditors.ts} +4 -4
  48. package/pageobjects/ide/{OpenWorkspaceWidget.ts → theia/OpenWorkspaceWidget.ts} +4 -4
  49. package/pageobjects/ide/{PreviewWidget.ts → theia/PreviewWidget.ts} +5 -5
  50. package/pageobjects/ide/{ProjectTree.ts → theia/ProjectTree.ts} +6 -6
  51. package/pageobjects/ide/{QuickOpenContainer.ts → theia/QuickOpenContainer.ts} +4 -4
  52. package/pageobjects/ide/{RightToolBar.ts → theia/RightToolBar.ts} +4 -4
  53. package/pageobjects/ide/{Terminal.ts → theia/Terminal.ts} +5 -5
  54. package/pageobjects/ide/{TopMenu.ts → theia/TopMenu.ts} +5 -5
  55. package/pageobjects/ide/{plugins → theia/plugins}/GitHubPullRequestPlugin.ts +5 -5
  56. package/pageobjects/ide/{plugins → theia/plugins}/GitPlugin.ts +4 -4
  57. package/pageobjects/ide/{plugins → theia/plugins}/KubernetesPlugin.ts +4 -4
  58. package/pageobjects/ide/{plugins → theia/plugins}/OpenshiftPlugin.ts +4 -4
  59. package/pageobjects/ide/{plugins → theia/plugins}/PluginsView.ts +4 -4
  60. package/tests/devfiles/code/JavaSpringBoot.spec.ts +77 -0
  61. package/tests/devfiles/{CSlashCPlusPlus.spec.ts → theia/CSlashCPlusPlus.spec.ts} +11 -11
  62. package/tests/devfiles/{DevfileSmoke.spec.ts → theia/DevfileSmoke.spec.ts} +10 -10
  63. package/tests/devfiles/{DotNetCore.spec.ts → theia/DotNetCore.spec.ts} +11 -11
  64. package/tests/devfiles/{Go.spec.ts → theia/Go.spec.ts} +13 -13
  65. package/tests/devfiles/{JavaMaven.spec.ts → theia/JavaMaven.spec.ts} +10 -10
  66. package/tests/devfiles/{JavaSpringBoot.spec.ts → theia/JavaSpringBoot.spec.ts} +10 -10
  67. package/tests/devfiles/{JavaVertx.spec.ts → theia/JavaVertx.spec.ts} +10 -10
  68. package/tests/devfiles/{NodeJS.spec.ts → theia/NodeJS.spec.ts} +10 -10
  69. package/tests/devfiles/{PHPSimple.spec.ts → theia/PHPSimple.spec.ts} +11 -11
  70. package/tests/devfiles/{Python.spec.ts → theia/Python.spec.ts} +10 -10
  71. package/tests/devfiles/{PythonDjango.spec.ts → theia/PythonDjango.spec.ts} +8 -8
  72. package/tests/devfiles/{Quarkus.spec.ts → theia/Quarkus.spec.ts} +10 -10
  73. package/tests/devfiles/{Scala.spec.ts → theia/Scala.spec.ts} +10 -10
  74. package/tests/e2e/{FactoryUrl.spec.ts → theia/FactoryUrl.spec.ts} +9 -9
  75. package/tests/e2e/{GitPublishBranch.spec.ts → theia/GitPublishBranch.spec.ts} +16 -16
  76. package/tests/e2e/{GitSelfSignCert.spec.ts → theia/GitSelfSignCert.spec.ts} +17 -17
  77. package/tests/e2e/{GitSsh.spec.ts → theia/GitSsh.spec.ts} +20 -20
  78. package/tests/e2e/{OpenshiftConnector.spec.ts → theia/OpenshiftConnector.spec.ts} +21 -21
  79. package/tests/e2e/{factories → theia/factories}/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +10 -10
  80. package/tests/e2e/{factories → theia/factories}/DirectUrlFactoryWithRootFolderTest.spec.ts +10 -10
  81. package/tests/e2e/{factories → theia/factories}/DirectUrlFactoryWithSpecificBranchTest.spec.ts +10 -10
  82. package/tests/e2e_happy_path/{DevWorkspaceHappyPath.spec.ts → theia/DevWorkspaceHappyPath.spec.ts} +17 -19
  83. package/tests/e2e_happy_path/{HappyPath.spec.ts → theia/HappyPath.spec.ts} +21 -20
  84. package/tests/intelij/IntelijOpenWorkspace.spec.ts +1 -1
  85. package/tests/load_test/{LoadTest.spec.ts → theia/LoadTest.spec.ts} +10 -9
  86. package/tests/plugins/{GitHubPullRequestPlugin.spec.ts → theia/GitHubPullRequestPlugin.spec.ts} +19 -20
  87. package/tests/plugins/{InstallPluginUsingUI.spec.ts → theia/InstallPluginUsingUI.spec.ts} +11 -12
  88. package/tests/plugins/{JavaPlugin.spec.ts → theia/JavaPlugin.spec.ts} +13 -13
  89. package/tests/plugins/{PhpPlugin.spec.ts → theia/PhpPlugin.spec.ts} +12 -12
  90. package/tests/plugins/{PythonPlugin.spec.ts → theia/PythonPlugin.spec.ts} +13 -13
  91. package/tests/plugins/{TypescriptPlugin.spec.ts → theia/TypescriptPlugin.spec.ts} +19 -19
  92. package/tests/plugins/{VscodeKubernetesPlugin.spec.ts → theia/VscodeKubernetesPlugin.spec.ts} +13 -13
  93. package/tests/plugins/{VscodeShellcheckPlugin.spec.ts → theia/VscodeShellcheckPlugin.spec.ts} +12 -12
  94. package/tests/plugins/{VscodeValePlugin.spec.ts → theia/VscodeValePlugin.spec.ts} +11 -11
  95. package/tests/plugins/{VscodeXmlPlugin.spec.ts → theia/VscodeXmlPlugin.spec.ts} +12 -12
  96. package/tests/plugins/{VscodeYamlPlugin.spec.ts → theia/VscodeYamlPlugin.spec.ts} +12 -12
  97. package/testsLibrary/WorkspaceHandlingTests.ts +115 -140
  98. package/testsLibrary/{CodeExecutionTests.ts → theia/CodeExecutionTestsTheia.ts} +15 -15
  99. package/testsLibrary/{LanguageServerTests.ts → theia/LanguageServerTestsTheia.ts} +9 -9
  100. package/testsLibrary/{ProjectAndFileTests.ts → theia/ProjectAndFileTestsTheia.ts} +36 -10
  101. package/utils/DriverHelper.ts +3 -3
  102. package/utils/{PreferencesHandler.ts → theia/PreferencesHandlerTheia.ts} +11 -11
  103. package/dist/TestConstants.js +0 -220
  104. package/dist/TestConstants.js.map +0 -1
  105. package/dist/TimeoutConstants.js +0 -184
  106. package/dist/TimeoutConstants.js.map +0 -1
  107. package/dist/driver/CheReporter.js +0 -181
  108. package/dist/driver/CheReporter.js.map +0 -1
  109. package/dist/driver/ChromeDriver.js +0 -75
  110. package/dist/driver/ChromeDriver.js.map +0 -1
  111. package/dist/driver/IDriver.js +0 -3
  112. package/dist/driver/IDriver.js.map +0 -1
  113. package/dist/index.js +0 -93
  114. package/dist/index.js.map +0 -1
  115. package/dist/inversify.config.js +0 -130
  116. package/dist/inversify.config.js.map +0 -1
  117. package/dist/inversify.types.js +0 -74
  118. package/dist/inversify.types.js.map +0 -1
  119. package/dist/pageobjects/dashboard/CreateWorkspace.js +0 -65
  120. package/dist/pageobjects/dashboard/CreateWorkspace.js.map +0 -1
  121. package/dist/pageobjects/dashboard/Dashboard.js +0 -115
  122. package/dist/pageobjects/dashboard/Dashboard.js.map +0 -1
  123. package/dist/pageobjects/dashboard/Workspaces.js +0 -157
  124. package/dist/pageobjects/dashboard/Workspaces.js.map +0 -1
  125. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js +0 -138
  126. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js.map +0 -1
  127. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js +0 -97
  128. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js.map +0 -1
  129. package/dist/pageobjects/ide/ContextMenu.js +0 -66
  130. package/dist/pageobjects/ide/ContextMenu.js.map +0 -1
  131. package/dist/pageobjects/ide/DebugView.js +0 -98
  132. package/dist/pageobjects/ide/DebugView.js.map +0 -1
  133. package/dist/pageobjects/ide/DialogWindow.js +0 -102
  134. package/dist/pageobjects/ide/DialogWindow.js.map +0 -1
  135. package/dist/pageobjects/ide/Editor.js +0 -464
  136. package/dist/pageobjects/ide/Editor.js.map +0 -1
  137. package/dist/pageobjects/ide/Ide.js +0 -336
  138. package/dist/pageobjects/ide/Ide.js.map +0 -1
  139. package/dist/pageobjects/ide/LeftToolBar.js +0 -81
  140. package/dist/pageobjects/ide/LeftToolBar.js.map +0 -1
  141. package/dist/pageobjects/ide/NavigationBar.js +0 -57
  142. package/dist/pageobjects/ide/NavigationBar.js.map +0 -1
  143. package/dist/pageobjects/ide/NotificationCenter.js +0 -76
  144. package/dist/pageobjects/ide/NotificationCenter.js.map +0 -1
  145. package/dist/pageobjects/ide/OpenDialogWidget.js +0 -100
  146. package/dist/pageobjects/ide/OpenDialogWidget.js.map +0 -1
  147. package/dist/pageobjects/ide/OpenEditors.js +0 -73
  148. package/dist/pageobjects/ide/OpenEditors.js.map +0 -1
  149. package/dist/pageobjects/ide/OpenWorkspaceWidget.js +0 -62
  150. package/dist/pageobjects/ide/OpenWorkspaceWidget.js.map +0 -1
  151. package/dist/pageobjects/ide/PreviewWidget.js +0 -134
  152. package/dist/pageobjects/ide/PreviewWidget.js.map +0 -1
  153. package/dist/pageobjects/ide/ProjectTree.js +0 -282
  154. package/dist/pageobjects/ide/ProjectTree.js.map +0 -1
  155. package/dist/pageobjects/ide/QuickOpenContainer.js +0 -70
  156. package/dist/pageobjects/ide/QuickOpenContainer.js.map +0 -1
  157. package/dist/pageobjects/ide/RightToolBar.js +0 -51
  158. package/dist/pageobjects/ide/RightToolBar.js.map +0 -1
  159. package/dist/pageobjects/ide/Terminal.js +0 -184
  160. package/dist/pageobjects/ide/Terminal.js.map +0 -1
  161. package/dist/pageobjects/ide/TopMenu.js +0 -109
  162. package/dist/pageobjects/ide/TopMenu.js.map +0 -1
  163. package/dist/pageobjects/ide/plugins/GitHubPullRequestPlugin.js +0 -128
  164. package/dist/pageobjects/ide/plugins/GitHubPullRequestPlugin.js.map +0 -1
  165. package/dist/pageobjects/ide/plugins/GitPlugin.js +0 -120
  166. package/dist/pageobjects/ide/plugins/GitPlugin.js.map +0 -1
  167. package/dist/pageobjects/ide/plugins/KubernetesPlugin.js +0 -107
  168. package/dist/pageobjects/ide/plugins/KubernetesPlugin.js.map +0 -1
  169. package/dist/pageobjects/ide/plugins/OpenshiftPlugin.js +0 -99
  170. package/dist/pageobjects/ide/plugins/OpenshiftPlugin.js.map +0 -1
  171. package/dist/pageobjects/ide/plugins/PluginsView.js +0 -166
  172. package/dist/pageobjects/ide/plugins/PluginsView.js.map +0 -1
  173. package/dist/pageobjects/login/ICheLoginPage.js +0 -12
  174. package/dist/pageobjects/login/ICheLoginPage.js.map +0 -1
  175. package/dist/pageobjects/login/IOcpLoginPage.js +0 -12
  176. package/dist/pageobjects/login/IOcpLoginPage.js.map +0 -1
  177. package/dist/pageobjects/login/MultiUserLoginPage.js +0 -49
  178. package/dist/pageobjects/login/MultiUserLoginPage.js.map +0 -1
  179. package/dist/pageobjects/login/OcpUserLoginPage.js +0 -53
  180. package/dist/pageobjects/login/OcpUserLoginPage.js.map +0 -1
  181. package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js +0 -86
  182. package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js.map +0 -1
  183. package/dist/pageobjects/login/UpdateAccountInformationPage.js +0 -74
  184. package/dist/pageobjects/login/UpdateAccountInformationPage.js.map +0 -1
  185. package/dist/pageobjects/openshift/CheLoginPage.js +0 -88
  186. package/dist/pageobjects/openshift/CheLoginPage.js.map +0 -1
  187. package/dist/pageobjects/openshift/OcpLoginPage.js +0 -106
  188. package/dist/pageobjects/openshift/OcpLoginPage.js.map +0 -1
  189. package/dist/pageobjects/third-parties/GitLoginPage.js +0 -85
  190. package/dist/pageobjects/third-parties/GitLoginPage.js.map +0 -1
  191. package/dist/pageobjects/third-parties/GitOauthAppsSettings.js +0 -110
  192. package/dist/pageobjects/third-parties/GitOauthAppsSettings.js.map +0 -1
  193. package/dist/tests/devfiles/CSlashCPlusPlus.spec.js +0 -73
  194. package/dist/tests/devfiles/CSlashCPlusPlus.spec.js.map +0 -1
  195. package/dist/tests/devfiles/DevfileSmoke.spec.js +0 -47
  196. package/dist/tests/devfiles/DevfileSmoke.spec.js.map +0 -1
  197. package/dist/tests/devfiles/DotNetCore.spec.js +0 -81
  198. package/dist/tests/devfiles/DotNetCore.spec.js.map +0 -1
  199. package/dist/tests/devfiles/Go.spec.js +0 -72
  200. package/dist/tests/devfiles/Go.spec.js.map +0 -1
  201. package/dist/tests/devfiles/JavaMaven.spec.js +0 -60
  202. package/dist/tests/devfiles/JavaMaven.spec.js.map +0 -1
  203. package/dist/tests/devfiles/JavaSpringBoot.spec.js +0 -66
  204. package/dist/tests/devfiles/JavaSpringBoot.spec.js.map +0 -1
  205. package/dist/tests/devfiles/JavaVertx.spec.js +0 -60
  206. package/dist/tests/devfiles/JavaVertx.spec.js.map +0 -1
  207. package/dist/tests/devfiles/NodeJS.spec.js +0 -64
  208. package/dist/tests/devfiles/NodeJS.spec.js.map +0 -1
  209. package/dist/tests/devfiles/PHPSimple.spec.js +0 -74
  210. package/dist/tests/devfiles/PHPSimple.spec.js.map +0 -1
  211. package/dist/tests/devfiles/Python.spec.js +0 -58
  212. package/dist/tests/devfiles/Python.spec.js.map +0 -1
  213. package/dist/tests/devfiles/PythonDjango.spec.js +0 -61
  214. package/dist/tests/devfiles/PythonDjango.spec.js.map +0 -1
  215. package/dist/tests/devfiles/Quarkus.spec.js +0 -69
  216. package/dist/tests/devfiles/Quarkus.spec.js.map +0 -1
  217. package/dist/tests/devfiles/Scala.spec.js +0 -66
  218. package/dist/tests/devfiles/Scala.spec.js.map +0 -1
  219. package/dist/tests/e2e/FactoryUrl.spec.js +0 -40
  220. package/dist/tests/e2e/FactoryUrl.spec.js.map +0 -1
  221. package/dist/tests/e2e/GitPublishBranch.spec.js +0 -90
  222. package/dist/tests/e2e/GitPublishBranch.spec.js.map +0 -1
  223. package/dist/tests/e2e/GitSelfSignCert.spec.js +0 -90
  224. package/dist/tests/e2e/GitSelfSignCert.spec.js.map +0 -1
  225. package/dist/tests/e2e/GitSsh.spec.js +0 -120
  226. package/dist/tests/e2e/GitSsh.spec.js.map +0 -1
  227. package/dist/tests/e2e/OpenshiftConnector.spec.js +0 -124
  228. package/dist/tests/e2e/OpenshiftConnector.spec.js.map +0 -1
  229. package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js +0 -50
  230. package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +0 -1
  231. package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js +0 -48
  232. package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +0 -1
  233. package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js +0 -48
  234. package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +0 -1
  235. package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js +0 -278
  236. package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js.map +0 -1
  237. package/dist/tests/e2e_happy_path/HappyPath.spec.js +0 -314
  238. package/dist/tests/e2e_happy_path/HappyPath.spec.js.map +0 -1
  239. package/dist/tests/intelij/IntelijOpenWorkspace.spec.js +0 -39
  240. package/dist/tests/intelij/IntelijOpenWorkspace.spec.js.map +0 -1
  241. package/dist/tests/load_test/LoadTest.spec.js +0 -41
  242. package/dist/tests/load_test/LoadTest.spec.js.map +0 -1
  243. package/dist/tests/login/LinkCheAndOcpUsers.spec.js +0 -39
  244. package/dist/tests/login/LinkCheAndOcpUsers.spec.js.map +0 -1
  245. package/dist/tests/login/Login.spec.js +0 -28
  246. package/dist/tests/login/Login.spec.js.map +0 -1
  247. package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js +0 -118
  248. package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js.map +0 -1
  249. package/dist/tests/plugins/InstallPluginUsingUI.spec.js +0 -63
  250. package/dist/tests/plugins/InstallPluginUsingUI.spec.js.map +0 -1
  251. package/dist/tests/plugins/JavaPlugin.spec.js +0 -82
  252. package/dist/tests/plugins/JavaPlugin.spec.js.map +0 -1
  253. package/dist/tests/plugins/PhpPlugin.spec.js +0 -96
  254. package/dist/tests/plugins/PhpPlugin.spec.js.map +0 -1
  255. package/dist/tests/plugins/PythonPlugin.spec.js +0 -72
  256. package/dist/tests/plugins/PythonPlugin.spec.js.map +0 -1
  257. package/dist/tests/plugins/TypescriptPlugin.spec.js +0 -135
  258. package/dist/tests/plugins/TypescriptPlugin.spec.js.map +0 -1
  259. package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js +0 -69
  260. package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js.map +0 -1
  261. package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js +0 -82
  262. package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js.map +0 -1
  263. package/dist/tests/plugins/VscodeValePlugin.spec.js +0 -70
  264. package/dist/tests/plugins/VscodeValePlugin.spec.js.map +0 -1
  265. package/dist/tests/plugins/VscodeXmlPlugin.spec.js +0 -81
  266. package/dist/tests/plugins/VscodeXmlPlugin.spec.js.map +0 -1
  267. package/dist/tests/plugins/VscodeYamlPlugin.spec.js +0 -78
  268. package/dist/tests/plugins/VscodeYamlPlugin.spec.js.map +0 -1
  269. package/dist/testsLibrary/CodeExecutionTests.js +0 -248
  270. package/dist/testsLibrary/CodeExecutionTests.js.map +0 -1
  271. package/dist/testsLibrary/LanguageServerTests.js +0 -230
  272. package/dist/testsLibrary/LanguageServerTests.js.map +0 -1
  273. package/dist/testsLibrary/ProjectAndFileTests.js +0 -105
  274. package/dist/testsLibrary/ProjectAndFileTests.js.map +0 -1
  275. package/dist/testsLibrary/WorkspaceHandlingTests.js +0 -167
  276. package/dist/testsLibrary/WorkspaceHandlingTests.js.map +0 -1
  277. package/dist/utils/AnimationChecker.js +0 -45
  278. package/dist/utils/AnimationChecker.js.map +0 -1
  279. package/dist/utils/BrowserTabsUtil.js +0 -115
  280. package/dist/utils/BrowserTabsUtil.js.map +0 -1
  281. package/dist/utils/DriverHelper.js +0 -616
  282. package/dist/utils/DriverHelper.js.map +0 -1
  283. package/dist/utils/Logger.js +0 -84
  284. package/dist/utils/Logger.js.map +0 -1
  285. package/dist/utils/PreferencesHandler.js +0 -142
  286. package/dist/utils/PreferencesHandler.js.map +0 -1
  287. package/dist/utils/Sanitizer.js +0 -29
  288. package/dist/utils/Sanitizer.js.map +0 -1
  289. package/dist/utils/ScreenCatcher.js +0 -107
  290. package/dist/utils/ScreenCatcher.js.map +0 -1
  291. package/dist/utils/VCS/CheGitApi.js +0 -42
  292. package/dist/utils/VCS/CheGitApi.js.map +0 -1
  293. package/dist/utils/VCS/github/GitHubUtil.js +0 -126
  294. package/dist/utils/VCS/github/GitHubUtil.js.map +0 -1
  295. package/dist/utils/WorkspaceNameHandler.js +0 -60
  296. package/dist/utils/WorkspaceNameHandler.js.map +0 -1
  297. package/dist/utils/requestHandlers/CheApiRequestHandler.js +0 -126
  298. package/dist/utils/requestHandlers/CheApiRequestHandler.js.map +0 -1
  299. package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js +0 -49
  300. package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +0 -1
  301. package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.js +0 -12
  302. package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.js.map +0 -1
  303. package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.js +0 -50
  304. package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.js.map +0 -1
  305. package/dist/utils/requestHandlers/tokens/ITokenHandler.js +0 -12
  306. package/dist/utils/requestHandlers/tokens/ITokenHandler.js.map +0 -1
  307. package/dist/utils/workspace/ApiUrlResolver.js +0 -67
  308. package/dist/utils/workspace/ApiUrlResolver.js.map +0 -1
  309. package/dist/utils/workspace/ITestWorkspaceUtil.js +0 -12
  310. package/dist/utils/workspace/ITestWorkspaceUtil.js.map +0 -1
  311. package/dist/utils/workspace/TestWorkspaceUtil.js +0 -357
  312. package/dist/utils/workspace/TestWorkspaceUtil.js.map +0 -1
  313. package/dist/utils/workspace/WorkspaceStatus.js +0 -19
  314. package/dist/utils/workspace/WorkspaceStatus.js.map +0 -1
@@ -8,25 +8,25 @@
8
8
  * SPDX-License-Identifier: EPL-2.0
9
9
  **********************************************************************/
10
10
  import 'reflect-metadata';
11
- import { e2eContainer } from '../../inversify.config';
12
- import { CLASSES } from '../../inversify.types';
13
- import { TimeoutConstants } from '../../TimeoutConstants';
14
- import { TestConstants } from '../../TestConstants';
15
- import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
11
+ import { e2eContainer } from '../../../inversify.config';
12
+ import { CLASSES } from '../../../inversify.types';
13
+ import { TestConstants } from '../../../TestConstants';
14
+ import { ProjectTree } from '../../../pageobjects/ide/theia/ProjectTree';
16
15
  import { Key } from 'selenium-webdriver';
17
- import { Editor } from '../../pageobjects/ide/Editor';
18
- import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
19
- import { Logger } from '../../utils/Logger';
20
- import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
21
- import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
22
- import { PreferencesHandler } from '../../utils/PreferencesHandler';
16
+ import { Editor } from '../../../pageobjects/ide/theia/Editor';
17
+ import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
18
+ import { Logger } from '../../../utils/Logger';
19
+ import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
20
+ import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
21
+ import { PreferencesHandlerTheia } from '../../../utils/theia/PreferencesHandlerTheia';
22
+ import { TimeoutConstants } from '../../../TimeoutConstants';
23
23
 
24
- const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
24
+ const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
25
25
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
26
26
  const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
27
27
  const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
28
28
  const editor: Editor = e2eContainer.get(CLASSES.Editor);
29
- const preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
29
+ const preferencesHandler: PreferencesHandlerTheia = e2eContainer.get(CLASSES.PreferencesHandlerTheia);
30
30
 
31
31
  const devFileUrl: string = 'https://github.com/che-samples/python-hello-world/tree/devfilev2';
32
32
  const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devFileUrl}`;
@@ -8,25 +8,25 @@
8
8
  * SPDX-License-Identifier: EPL-2.0
9
9
  **********************************************************************/
10
10
  import 'reflect-metadata';
11
- import { DriverHelper } from '../../utils/DriverHelper';
12
- import { e2eContainer } from '../../inversify.config';
13
- import { CLASSES } from '../../inversify.types';
14
- import { Ide, LeftToolbarButton } from '../../pageobjects/ide/Ide';
15
- import { TimeoutConstants } from '../../TimeoutConstants';
16
- import { TestConstants } from '../../TestConstants';
17
- import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
11
+ import { DriverHelper } from '../../../utils/DriverHelper';
12
+ import { e2eContainer } from '../../../inversify.config';
13
+ import { CLASSES } from '../../../inversify.types';
14
+ import { Ide, LeftToolbarButton } from '../../../pageobjects/ide/theia/Ide';
15
+ import { TimeoutConstants } from '../../../TimeoutConstants';
16
+ import { TestConstants } from '../../../TestConstants';
17
+ import { ProjectTree } from '../../../pageobjects/ide/theia/ProjectTree';
18
18
  import { Key, By } from 'selenium-webdriver';
19
- import { Editor } from '../../pageobjects/ide/Editor';
20
- import { TopMenu } from '../../pageobjects/ide/TopMenu';
21
- import { DebugView } from '../../pageobjects/ide/DebugView';
22
- import { Terminal } from '../../pageobjects/ide/Terminal';
23
- import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
24
- import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
25
- import { Logger } from '../../utils/Logger';
26
- import { PreferencesHandler } from '../../utils/PreferencesHandler';
27
- import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
28
-
29
- const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
19
+ import { Editor } from '../../../pageobjects/ide/theia/Editor';
20
+ import { TopMenu } from '../../../pageobjects/ide/theia/TopMenu';
21
+ import { DebugView } from '../../../pageobjects/ide/theia/DebugView';
22
+ import { Terminal } from '../../../pageobjects/ide/theia/Terminal';
23
+ import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
24
+ import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
25
+ import { Logger } from '../../../utils/Logger';
26
+ import { PreferencesHandlerTheia } from '../../../utils/theia/PreferencesHandlerTheia';
27
+ import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
28
+
29
+ const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
30
30
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
31
31
  const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
32
32
  const ide: Ide = e2eContainer.get(CLASSES.Ide);
@@ -36,7 +36,7 @@ const topMenu: TopMenu = e2eContainer.get(CLASSES.TopMenu);
36
36
  const debugView: DebugView = e2eContainer.get(CLASSES.DebugView);
37
37
  const terminal: Terminal = e2eContainer.get(CLASSES.Terminal);
38
38
  const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
39
- const preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
39
+ const preferencesHandler: PreferencesHandlerTheia = e2eContainer.get(CLASSES.PreferencesHandlerTheia);
40
40
 
41
41
  const devfileUrl: string = 'https://github.com/che-samples/web-nodejs-sample/tree/typescript-plugin';
42
42
  const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
@@ -8,19 +8,19 @@
8
8
  * SPDX-License-Identifier: EPL-2.0
9
9
  **********************************************************************/
10
10
  import 'reflect-metadata';
11
- import { e2eContainer } from '../../inversify.config';
12
- import { CLASSES } from '../../inversify.types';
13
- import { Ide } from '../../pageobjects/ide/Ide';
14
- import { TimeoutConstants } from '../../TimeoutConstants';
15
- import { TestConstants } from '../../TestConstants';
16
- import { KubernetesPlugin } from '../../pageobjects/ide/plugins/KubernetesPlugin';
17
- import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
18
- import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
19
- import { Logger } from '../../utils/Logger';
20
- import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
21
- import { TopMenu } from '../../pageobjects/ide/TopMenu';
22
- import { QuickOpenContainer } from '../../pageobjects/ide/QuickOpenContainer';
23
- import { OpenDialogWidget, Buttons } from '../../pageobjects/ide/OpenDialogWidget';
11
+ import { e2eContainer } from '../../../inversify.config';
12
+ import { CLASSES } from '../../../inversify.types';
13
+ import { Ide } from '../../../pageobjects/ide/theia/Ide';
14
+ import { TimeoutConstants } from '../../../TimeoutConstants';
15
+ import { TestConstants } from '../../../TestConstants';
16
+ import { KubernetesPlugin } from '../../../pageobjects/ide/theia/plugins/KubernetesPlugin';
17
+ import { ProjectTree } from '../../../pageobjects/ide/theia/ProjectTree';
18
+ import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
19
+ import { Logger } from '../../../utils/Logger';
20
+ import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
21
+ import { TopMenu } from '../../../pageobjects/ide/theia/TopMenu';
22
+ import { QuickOpenContainer } from '../../../pageobjects/ide/theia/QuickOpenContainer';
23
+ import { OpenDialogWidget, Buttons } from '../../../pageobjects/ide/theia/OpenDialogWidget';
24
24
 
25
25
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
26
26
  const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
@@ -8,23 +8,23 @@
8
8
  * SPDX-License-Identifier: EPL-2.0
9
9
  **********************************************************************/
10
10
  import 'reflect-metadata';
11
- import { e2eContainer } from '../../inversify.config';
12
- import { CLASSES } from '../../inversify.types';
13
- import { Ide } from '../../pageobjects/ide/Ide';
14
- import { TimeoutConstants } from '../../TimeoutConstants';
15
- import { TestConstants } from '../../TestConstants';
16
- import { PreferencesHandler } from '../../utils/PreferencesHandler';
17
- import { Editor } from '../../pageobjects/ide/Editor';
18
- import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
11
+ import { e2eContainer } from '../../../inversify.config';
12
+ import { CLASSES } from '../../../inversify.types';
13
+ import { Ide } from '../../../pageobjects/ide/theia/Ide';
14
+ import { TimeoutConstants } from '../../../TimeoutConstants';
15
+ import { TestConstants } from '../../../TestConstants';
16
+ import { PreferencesHandlerTheia } from '../../../utils/theia/PreferencesHandlerTheia';
17
+ import { Editor } from '../../../pageobjects/ide/theia/Editor';
18
+ import { ProjectTree } from '../../../pageobjects/ide/theia/ProjectTree';
19
19
  import { Key } from 'selenium-webdriver';
20
- import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
21
- import { Logger } from '../../utils/Logger';
22
- import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
20
+ import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
21
+ import { Logger } from '../../../utils/Logger';
22
+ import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
23
23
 
24
24
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
25
25
  const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
26
26
  const ide: Ide = e2eContainer.get(CLASSES.Ide);
27
- const preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
27
+ const preferencesHandler: PreferencesHandlerTheia = e2eContainer.get(CLASSES.PreferencesHandlerTheia);
28
28
  const editor: Editor = e2eContainer.get(CLASSES.Editor);
29
29
  const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
30
30
 
@@ -8,18 +8,18 @@
8
8
  * SPDX-License-Identifier: EPL-2.0
9
9
  **********************************************************************/
10
10
 
11
+ import { e2eContainer } from '../../../inversify.config';
12
+ import { CLASSES } from '../../../inversify.types';
13
+ import { Ide } from '../../../pageobjects/ide/theia/Ide';
14
+ import { ProjectTree } from '../../../pageobjects/ide/theia/ProjectTree';
15
+ import { Editor } from '../../../pageobjects/ide/theia/Editor';
16
+ import { TestConstants } from '../../../TestConstants';
17
+ import { TimeoutConstants } from '../../../TimeoutConstants';
18
+ import { Terminal } from '../../../pageobjects/ide/theia/Terminal';
19
+ import { Logger } from '../../../utils/Logger';
20
+ import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
21
+ import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
11
22
  import { Key } from 'selenium-webdriver';
12
- import { e2eContainer } from '../../inversify.config';
13
- import { CLASSES } from '../../inversify.types';
14
- import { Ide } from '../../pageobjects/ide/Ide';
15
- import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
16
- import { Editor } from '../../pageobjects/ide/Editor';
17
- import { TestConstants } from '../../TestConstants';
18
- import { TimeoutConstants } from '../../TimeoutConstants';
19
- import { Terminal } from '../../pageobjects/ide/Terminal';
20
- import { Logger } from '../../utils/Logger';
21
- import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
22
- import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
23
23
 
24
24
  const ide: Ide = e2eContainer.get(CLASSES.Ide);
25
25
  const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
@@ -8,23 +8,23 @@
8
8
  * SPDX-License-Identifier: EPL-2.0
9
9
  **********************************************************************/
10
10
 
11
+ import { e2eContainer } from '../../../inversify.config';
12
+ import { CLASSES } from '../../../inversify.types';
13
+ import { ProjectTree } from '../../../pageobjects/ide/theia/ProjectTree';
14
+ import { Editor } from '../../../pageobjects/ide/theia/Editor';
15
+ import { TestConstants } from '../../../TestConstants';
16
+ import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
17
+ import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
18
+ import { PreferencesHandlerTheia } from '../../../utils/theia/PreferencesHandlerTheia';
19
+ import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
11
20
  import { Key } from 'selenium-webdriver';
12
- import { e2eContainer } from '../../inversify.config';
13
- import { CLASSES } from '../../inversify.types';
14
- import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
15
- import { Editor } from '../../pageobjects/ide/Editor';
16
- import { TestConstants } from '../../TestConstants';
17
- import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
18
- import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
19
- import { PreferencesHandler } from '../../utils/PreferencesHandler';
20
- import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
21
-
22
- const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
21
+
22
+ const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
23
23
  const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
24
24
  const editor: Editor = e2eContainer.get(CLASSES.Editor);
25
25
  const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
26
26
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
27
- const preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
27
+ const preferencesHandler: PreferencesHandlerTheia = e2eContainer.get(CLASSES.PreferencesHandlerTheia);
28
28
 
29
29
  const devfileUrl: string = TestConstants.TS_TEST_WORKSPACE_DEVFILE_REPO || 'https://github.com/che-samples/web-nodejs-sample/tree/xml-plugin';
30
30
  const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
@@ -8,23 +8,23 @@
8
8
  * SPDX-License-Identifier: EPL-2.0
9
9
  **********************************************************************/
10
10
 
11
+ import { e2eContainer } from '../../../inversify.config';
12
+ import { CLASSES } from '../../../inversify.types';
13
+ import { ProjectTree } from '../../../pageobjects/ide/theia/ProjectTree';
14
+ import { Editor } from '../../../pageobjects/ide/theia/Editor';
15
+ import { TestConstants } from '../../../TestConstants';
16
+ import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
17
+ import { BrowserTabsUtil } from '../../../utils/BrowserTabsUtil';
18
+ import { PreferencesHandlerTheia } from '../../../utils/theia/PreferencesHandlerTheia';
19
+ import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
11
20
  import { Key } from 'selenium-webdriver';
12
- import { e2eContainer } from '../../inversify.config';
13
- import { CLASSES } from '../../inversify.types';
14
- import { ProjectTree } from '../../pageobjects/ide/ProjectTree';
15
- import { Editor } from '../../pageobjects/ide/Editor';
16
- import { TestConstants } from '../../TestConstants';
17
- import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
18
- import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
19
- import { PreferencesHandler } from '../../utils/PreferencesHandler';
20
- import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
21
-
22
- const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
21
+
22
+ const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
23
23
  const projectTree: ProjectTree = e2eContainer.get(CLASSES.ProjectTree);
24
24
  const editor: Editor = e2eContainer.get(CLASSES.Editor);
25
25
  const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
26
26
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
27
- const preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
27
+ const preferencesHandler: PreferencesHandlerTheia = e2eContainer.get(CLASSES.PreferencesHandlerTheia);
28
28
 
29
29
  const devfileUrl: string = TestConstants.TS_TEST_WORKSPACE_DEVFILE_REPO || 'https://github.com/che-samples/web-nodejs-sample/tree/yaml-plugin';
30
30
  const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=${devfileUrl}`;
@@ -8,143 +8,118 @@
8
8
  * SPDX-License-Identifier: EPL-2.0
9
9
  **********************************************************************/
10
10
 
11
- import 'reflect-metadata';
12
- import { inject, injectable } from 'inversify';
13
- import { CLASSES } from '../inversify.types';
14
- import { Dashboard } from '../pageobjects/dashboard/Dashboard';
15
- import { CreateWorkspace } from '../pageobjects/dashboard/CreateWorkspace';
16
- import { Workspaces } from '../pageobjects/dashboard/Workspaces';
17
- import { BrowserTabsUtil } from '../utils/BrowserTabsUtil';
18
- import { Logger } from '../utils/Logger';
19
- import { ApiUrlResolver } from '../utils/workspace/ApiUrlResolver';
20
- import { TimeoutConstants } from '../TimeoutConstants';
21
- import { DriverHelper } from '../utils/DriverHelper';
22
- import { Ide } from '../pageobjects/ide/Ide';
23
- import { By, error } from 'selenium-webdriver';
24
- import { TestConstants } from '../TestConstants';
25
-
26
- @injectable()
27
- export class WorkspaceHandlingTests {
28
-
29
- private static START_WORKSPACE_PAGE_NAME_LOCATOR: By = By.xpath(`//div[@class="ui-container"]/div[@class="pf-c-page"]//div[@class="pf-c-content"]/h1`);
30
- private static READY_TO_READ_WORKSPACE_NAME_LOCATOR: By = By.xpath(`//div[@class="ui-container"]/div[@class="pf-c-page"]//div[@class="pf-c-content"]/h1[contains(.,'Starting workspace ')]`);
31
- private static workspaceName: string = 'undefined';
32
- private static parentGUID: string;
33
-
34
- public static getWorkspaceName(): string {
35
- return WorkspaceHandlingTests.workspaceName;
36
- }
37
-
38
- public static setWorkspaceName(workspaceName: string) {
39
- WorkspaceHandlingTests.workspaceName = workspaceName;
40
- }
41
-
42
- public setWindowHandle(guid: string) {
43
- WorkspaceHandlingTests.parentGUID = guid;
44
- }
45
-
46
- public getWindowHandle(): string {
47
- return WorkspaceHandlingTests.parentGUID;
48
- }
49
-
50
- constructor(
51
- @inject(CLASSES.Dashboard) private readonly dashboard: Dashboard,
52
- @inject(CLASSES.CreateWorkspace) private readonly createWorkspace: CreateWorkspace,
53
- @inject(CLASSES.Workspaces) private readonly workspaces: Workspaces,
54
- @inject(CLASSES.BrowserTabsUtil) private readonly browserTabsUtil: BrowserTabsUtil,
55
- @inject(CLASSES.ApiUrlResolver) private readonly apiUrlResolver: ApiUrlResolver,
56
- @inject(CLASSES.DriverHelper) private readonly driverHelper: DriverHelper,
57
- @inject(CLASSES.Ide) private readonly ide: Ide) {}
58
-
59
- public createAndOpenWorkspace(stack: string) {
60
- test(`Create and open new workspace, stack:${stack}`, async () => {
61
- await this.dashboard.waitPage();
62
- Logger.debug(`Fetching user kubernetes namespace, storing auth token by getting workspaces API URL.`);
63
- await this.apiUrlResolver.getWorkspacesApiUrl();
64
- await this.dashboard.clickCreateWorkspaceButton();
65
- await this.createWorkspace.waitPage();
66
- WorkspaceHandlingTests.parentGUID = await this.browserTabsUtil.getCurrentWindowHandle();
67
- await this.createWorkspace.clickOnSample(stack);
68
- await this.browserTabsUtil.waitAndSwitchToAnotherWindow(WorkspaceHandlingTests.parentGUID, TimeoutConstants.TS_IDE_LOAD_TIMEOUT);
69
- });
70
- }
71
-
72
- public openExistingWorkspace(workspaceName: string) {
73
- test('Open and start existing workspace', async () => {
74
- await this.dashboard.waitPage();
75
- Logger.debug(`Fetching user kubernetes namespace, storing auth token by getting workspaces API URL.`);
76
- await this.apiUrlResolver.getWorkspacesApiUrl();
77
- await this.dashboard.clickWorkspacesButton();
78
- await this.workspaces.waitPage();
79
- await this.workspaces.clickOpenButton(workspaceName);
80
- });
81
- }
82
-
83
- public obtainWorkspaceNameFromStartingPage() {
84
- test('Obtain workspace name from workspace loader page', async() => {
85
- try {
86
- Logger.info("Waiting for workspace name on workspace loader page");
87
- await this.driverHelper.waitVisibility(WorkspaceHandlingTests.READY_TO_READ_WORKSPACE_NAME_LOCATOR, TimeoutConstants.TS_WAIT_LOADER_PRESENCE_TIMEOUT);
88
-
89
- const timeout: number = TimeoutConstants.TS_IDE_LOAD_TIMEOUT;
90
- const polling: number = TestConstants.TS_SELENIUM_DEFAULT_POLLING;
91
- const attempts: number = Math.ceil(timeout / polling);
92
- let startingWorkspaceLineContent: string;
93
-
94
- for (let i = 0; i < attempts; i++) {
95
- startingWorkspaceLineContent = await this.driverHelper.getDriver().findElement(WorkspaceHandlingTests.START_WORKSPACE_PAGE_NAME_LOCATOR).getAttribute('innerHTML');
96
-
97
- // cutting away leading text
98
- WorkspaceHandlingTests.workspaceName = startingWorkspaceLineContent.substring('Starting workspace '.length).trim();
99
- if (WorkspaceHandlingTests.workspaceName !== '') {
100
- Logger.info(`Obtained workspace name from workspace loader page: ${WorkspaceHandlingTests.workspaceName}`);
101
- break;
102
- }
103
-
104
- this.driverHelper.sleep(polling);
105
- }
106
- } catch (err) {
107
- Logger.error(`Failed to obtain workspace name from workspace loader page: ${err}`);
108
- throw err;
109
- }
110
- });
111
- }
112
-
113
- public switchBackToFirstOpenIdeTabFromLeftToRight() {
114
- test('WorkspaceHandlingTests.switchBackToIdeTab', async () => {
115
- let tabs = await this.driverHelper.getDriver().getAllWindowHandles();
116
- Logger.trace(`WorkspaceHandlingTests.switchBackToIdeTab Found ${tabs.length} window handles, iterating...`);
117
- for (let i = 0; i < tabs.length; i++) {
118
- await this.browserTabsUtil.switchToWindow(tabs[i]);
119
- try {
120
- await this.ide.waitIde(TimeoutConstants.TS_IDE_LOAD_TIMEOUT);
121
- Logger.debug(`WorkspaceHandlingTests.switchBackToIdeTab located and switched to IDE tab`);
122
- return;
123
- } catch (err) {
124
- if (err instanceof error.TimeoutError) {
125
- Logger.warn(`WorkspaceHandlingTests.switchBackToIdeTab Locator timed out, trying with another window handle.`);
126
- continue;
127
- }
128
- Logger.error(`WorkspaceHandlingTests.switchBackToIdeTab Received unexpected exception while trying to locate IDE tab:${err}`);
129
- throw err;
130
- }
131
- }
132
- Logger.error(`WorkspaceHandlingTests.switchBackToIdeTab Failed to locate IDE tab, out of window handles.`);
133
- });
134
- }
135
-
136
- public async stopWorkspace(workspaceName: string) {
137
- await this.dashboard.openDashboard();
138
- await this.dashboard.stopWorkspaceByUI(workspaceName);
139
- }
140
-
141
- public async removeWorkspace(workspaceName: string) {
142
- await this.dashboard.openDashboard();
143
- await this.dashboard.deleteStoppedWorkspaceByUI(workspaceName);
144
- }
145
-
146
- public async stopAndRemoveWorkspace(workspaceName: string) {
147
- await this.dashboard.openDashboard();
148
- await this.dashboard.stopAndRemoveWorkspaceByUI(workspaceName);
149
- }
150
- }
11
+ import 'reflect-metadata';
12
+ import { inject, injectable } from 'inversify';
13
+ import { CLASSES } from '../inversify.types';
14
+ import { Dashboard } from '../pageobjects/dashboard/Dashboard';
15
+ import { CreateWorkspace } from '../pageobjects/dashboard/CreateWorkspace';
16
+ import { Workspaces } from '../pageobjects/dashboard/Workspaces';
17
+ import { BrowserTabsUtil } from '../utils/BrowserTabsUtil';
18
+ import { Logger } from '../utils/Logger';
19
+ import { ApiUrlResolver } from '../utils/workspace/ApiUrlResolver';
20
+ import { TimeoutConstants } from '../TimeoutConstants';
21
+ import { DriverHelper } from '../utils/DriverHelper';
22
+ import { By } from 'selenium-webdriver';
23
+ import { TestConstants } from '../TestConstants';
24
+
25
+ @injectable()
26
+ export class WorkspaceHandlingTests {
27
+
28
+ private static START_WORKSPACE_PAGE_NAME_LOCATOR: By = By.xpath(`//div[@class="ui-container"]/div[@class="pf-c-page"]//div[@class="pf-c-content"]/h1`);
29
+ private static READY_TO_READ_WORKSPACE_NAME_LOCATOR: By = By.xpath(`//div[@class="ui-container"]/div[@class="pf-c-page"]//div[@class="pf-c-content"]/h1[contains(.,'Starting workspace ')]`);
30
+ private static workspaceName: string = 'undefined';
31
+ private static parentGUID: string;
32
+
33
+ public static getWorkspaceName(): string {
34
+ return WorkspaceHandlingTests.workspaceName;
35
+ }
36
+
37
+ public static setWorkspaceName(workspaceName: string) {
38
+ WorkspaceHandlingTests.workspaceName = workspaceName;
39
+ }
40
+
41
+ public setWindowHandle(guid: string) {
42
+ WorkspaceHandlingTests.parentGUID = guid;
43
+ }
44
+
45
+ public getWindowHandle(): string {
46
+ return WorkspaceHandlingTests.parentGUID;
47
+ }
48
+
49
+ constructor(
50
+ @inject(CLASSES.Dashboard) private readonly dashboard: Dashboard,
51
+ @inject(CLASSES.CreateWorkspace) private readonly createWorkspace: CreateWorkspace,
52
+ @inject(CLASSES.Workspaces) private readonly workspaces: Workspaces,
53
+ @inject(CLASSES.BrowserTabsUtil) private readonly browserTabsUtil: BrowserTabsUtil,
54
+ @inject(CLASSES.ApiUrlResolver) private readonly apiUrlResolver: ApiUrlResolver,
55
+ @inject(CLASSES.DriverHelper) private readonly driverHelper: DriverHelper) {}
56
+
57
+ public createAndOpenWorkspace(stack: string) {
58
+ test(`Create and open new workspace, stack:${stack}`, async () => {
59
+ await this.dashboard.waitPage();
60
+ Logger.debug(`Fetching user kubernetes namespace, storing auth token by getting workspaces API URL.`);
61
+ await this.apiUrlResolver.getWorkspacesApiUrl();
62
+ await this.dashboard.clickCreateWorkspaceButton();
63
+ await this.createWorkspace.waitPage();
64
+ WorkspaceHandlingTests.parentGUID = await this.browserTabsUtil.getCurrentWindowHandle();
65
+ await this.createWorkspace.clickOnSample(stack);
66
+ await this.browserTabsUtil.waitAndSwitchToAnotherWindow(WorkspaceHandlingTests.parentGUID, TimeoutConstants.TS_IDE_LOAD_TIMEOUT);
67
+ });
68
+ }
69
+
70
+ public openExistingWorkspace(workspaceName: string) {
71
+ test('Open and start existing workspace', async () => {
72
+ await this.dashboard.waitPage();
73
+ Logger.debug(`Fetching user kubernetes namespace, storing auth token by getting workspaces API URL.`);
74
+ await this.apiUrlResolver.getWorkspacesApiUrl();
75
+ await this.dashboard.clickWorkspacesButton();
76
+ await this.workspaces.waitPage();
77
+ await this.workspaces.clickOpenButton(workspaceName);
78
+ });
79
+ }
80
+
81
+ public obtainWorkspaceNameFromStartingPage() {
82
+ test('Obtain workspace name from workspace loader page', async() => {
83
+ try {
84
+ Logger.info('Waiting for workspace name on workspace loader page');
85
+ await this.driverHelper.waitVisibility(WorkspaceHandlingTests.READY_TO_READ_WORKSPACE_NAME_LOCATOR, TimeoutConstants.TS_WAIT_LOADER_PRESENCE_TIMEOUT);
86
+
87
+ const timeout: number = TimeoutConstants.TS_IDE_LOAD_TIMEOUT;
88
+ const polling: number = TestConstants.TS_SELENIUM_DEFAULT_POLLING;
89
+ const attempts: number = Math.ceil(timeout / polling);
90
+ let startingWorkspaceLineContent: string;
91
+
92
+ for (let i = 0; i < attempts; i++) {
93
+ startingWorkspaceLineContent = await this.driverHelper.getDriver().findElement(WorkspaceHandlingTests.START_WORKSPACE_PAGE_NAME_LOCATOR).getAttribute('innerHTML');
94
+
95
+ // cutting away leading text
96
+ WorkspaceHandlingTests.workspaceName = startingWorkspaceLineContent.substring('Starting workspace '.length).trim();
97
+ if (WorkspaceHandlingTests.workspaceName !== '') {
98
+ Logger.info(`Obtained workspace name from workspace loader page: ${WorkspaceHandlingTests.workspaceName}`);
99
+ break;
100
+ }
101
+
102
+ this.driverHelper.sleep(polling);
103
+ }
104
+ } catch (err) {
105
+ Logger.error(`Failed to obtain workspace name from workspace loader page: ${err}`);
106
+ throw err;
107
+ }
108
+ });
109
+ }
110
+
111
+ public async stopWorkspace(workspaceName: string) {
112
+ await this.dashboard.openDashboard();
113
+ await this.dashboard.stopWorkspaceByUI(workspaceName);
114
+ }
115
+
116
+ public async removeWorkspace(workspaceName: string) {
117
+ await this.dashboard.openDashboard();
118
+ await this.dashboard.deleteStoppedWorkspaceByUI(workspaceName);
119
+ }
120
+
121
+ public async stopAndRemoveWorkspace(workspaceName: string) {
122
+ await this.dashboard.openDashboard();
123
+ await this.dashboard.stopAndRemoveWorkspaceByUI(workspaceName);
124
+ }
125
+ }
@@ -10,21 +10,21 @@
10
10
 
11
11
  import 'reflect-metadata';
12
12
  import Axios from 'axios';
13
- import { CLASSES } from '../inversify.types';
13
+ import { CLASSES } from '../../inversify.types';
14
14
  import { inject, injectable } from 'inversify';
15
15
  import { By, error, Key } from 'selenium-webdriver';
16
- import { Ide } from '../pageobjects/ide/Ide';
17
- import { Terminal } from '../pageobjects/ide/Terminal';
18
- import { TopMenu } from '../pageobjects/ide/TopMenu';
19
- import { DialogWindow } from '../pageobjects/ide/DialogWindow';
20
- import { DriverHelper } from '../utils/DriverHelper';
21
- import { Logger } from '../utils/Logger';
22
- import { QuickOpenContainer } from '../pageobjects/ide/QuickOpenContainer';
23
- import { WorkspaceHandlingTests } from './WorkspaceHandlingTests';
24
- import { BrowserTabsUtil } from '../utils/BrowserTabsUtil';
16
+ import { Ide } from '../../pageobjects/ide/theia/Ide';
17
+ import { Terminal } from '../../pageobjects/ide/theia/Terminal';
18
+ import { TopMenu } from '../../pageobjects/ide/theia/TopMenu';
19
+ import { DialogWindow } from '../../pageobjects/ide/theia/DialogWindow';
20
+ import { DriverHelper } from '../../utils/DriverHelper';
21
+ import { Logger } from '../../utils/Logger';
22
+ import { QuickOpenContainer } from '../../pageobjects/ide/theia/QuickOpenContainer';
23
+ import { WorkspaceHandlingTests } from '../WorkspaceHandlingTests';
24
+ import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
25
25
 
26
26
  @injectable()
27
- export class CodeExecutionTests {
27
+ export class CodeExecutionTestsTheia {
28
28
 
29
29
  private static lastApplicationUrl: string = '';
30
30
 
@@ -115,7 +115,7 @@ export class CodeExecutionTests {
115
115
  this.workspaceHandlingTests.setWindowHandle(await this.browserTabsUtil.getCurrentWindowHandle());
116
116
  await this.ide.clickOnNotificationButton(notificationText, buttonText);
117
117
  await this.driverHelper.wait(5_000);
118
- CodeExecutionTests.lastApplicationUrl = await this.driverHelper.getDriver().getCurrentUrl();
118
+ CodeExecutionTestsTheia.lastApplicationUrl = await this.driverHelper.getDriver().getCurrentUrl();
119
119
  });
120
120
  }
121
121
 
@@ -129,7 +129,7 @@ export class CodeExecutionTests {
129
129
  this.workspaceHandlingTests.setWindowHandle(await this.browserTabsUtil.getCurrentWindowHandle());
130
130
  await this.ide.clickOnNotificationButton(notificationText, 'Open In Preview');
131
131
  await this.driverHelper.wait(5_000);
132
- CodeExecutionTests.lastApplicationUrl = await this.driverHelper.getDriver().getCurrentUrl();
132
+ CodeExecutionTestsTheia.lastApplicationUrl = await this.driverHelper.getDriver().getCurrentUrl();
133
133
  });
134
134
  }
135
135
 
@@ -140,7 +140,7 @@ export class CodeExecutionTests {
140
140
  this.workspaceHandlingTests.setWindowHandle(await this.browserTabsUtil.getCurrentWindowHandle());
141
141
  await this.ide.waitNotificationAndOpenLink(portOpenText, timeout);
142
142
  await this.driverHelper.wait(5_000);
143
- CodeExecutionTests.lastApplicationUrl = await this.driverHelper.getDriver().getCurrentUrl();
143
+ CodeExecutionTestsTheia.lastApplicationUrl = await this.driverHelper.getDriver().getCurrentUrl();
144
144
  });
145
145
  }
146
146
 
@@ -169,7 +169,7 @@ export class CodeExecutionTests {
169
169
  }
170
170
 
171
171
  public getLastApplicationUrl(): string {
172
- return CodeExecutionTests.lastApplicationUrl;
172
+ return CodeExecutionTestsTheia.lastApplicationUrl;
173
173
  }
174
174
 
175
175
  /**