@eclipse-che/che-e2e 7.58.1-dev-7636b8b → 7.58.1-dev-43d35ee

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 (277) hide show
  1. package/TestConstants.ts +6 -1
  2. package/build/dockerfiles/Dockerfile +4 -3
  3. package/driver/CheReporter.ts +4 -25
  4. package/index.ts +1 -0
  5. package/inversify.config.ts +2 -0
  6. package/inversify.types.ts +1 -0
  7. package/mocha-all-devfiles-che-code.json +12 -0
  8. package/mocha-all-devfiles-theia.json +13 -10
  9. package/mocha-all-factories-che-code.json +14 -0
  10. package/mocha-all-factories-theia.json +14 -11
  11. package/mocha-all-plugins-che-code.json +13 -0
  12. package/mocha-all-plugins-theia.json +13 -10
  13. package/mocha-che-code.json +12 -0
  14. package/mocha-connector-theia.json +10 -7
  15. package/mocha-devworkspace-happy-path-che-code.json +13 -0
  16. package/mocha-devworkspace-happy-path-theia.json +12 -9
  17. package/mocha-factory-che-code.json +13 -0
  18. package/mocha-factory-theia.json +12 -9
  19. package/mocha-git-publish-branch-theia.json +12 -9
  20. package/mocha-git-self-sign-cert-theia.json +12 -9
  21. package/mocha-git-ssh-theia.json +12 -9
  22. package/mocha-happy-path-che-code.json +14 -0
  23. package/mocha-happy-path-theia.json +13 -10
  24. package/mocha-java-maven.json +11 -7
  25. package/mocha-java-springboot-che-code.json +12 -0
  26. package/mocha-java-springboot-theia.json +11 -7
  27. package/mocha-java-vertx-che-code.json +12 -0
  28. package/mocha-java-vertx-theia.json +11 -7
  29. package/mocha-load-theia.json +10 -7
  30. package/mocha-scala.json +11 -7
  31. package/mocha-single-devfile.json +9 -6
  32. package/mocha-theia.json +10 -6
  33. package/mocha-ws-creation-and-ls-theia.json +10 -7
  34. package/mocha.intelij.json +11 -7
  35. package/mocha.ocp.link.json +9 -6
  36. package/mocha.single.plugin.json +6 -5
  37. package/package.json +13 -13
  38. package/pageobjects/dashboard/Workspaces.ts +10 -4
  39. package/pageobjects/ide/theia/Ide.ts +1 -1
  40. package/pageobjects/ide/theia/OpenEditors.ts +1 -1
  41. package/tests/MochaHooks.ts +47 -0
  42. package/tests/devfiles/che-code/EmptyWorkspace.spec.ts +14 -24
  43. package/tests/devfiles/theia/DotNetCore.spec.ts +1 -1
  44. package/tests/e2e/theia/FactoryUrl.spec.ts +1 -1
  45. package/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +1 -1
  46. package/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.ts +1 -1
  47. package/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.ts +1 -1
  48. package/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.ts +1 -1
  49. package/testsLibrary/che-code/ProjectAndFileTestsCheCode.ts +34 -0
  50. package/testsLibrary/theia/LanguageServerTestsTheia.ts +2 -2
  51. package/testsLibrary/theia/ProjectAndFileTestsTheia.ts +2 -2
  52. package/tslint.json +15 -12
  53. package/utils/VCS/github/GitHubUtil.ts +2 -2
  54. package/utils/workspace/ApiUrlResolver.ts +1 -1
  55. package/utils/workspace/ITestWorkspaceUtil.ts +12 -12
  56. package/dist/TestConstants.js +0 -240
  57. package/dist/TestConstants.js.map +0 -1
  58. package/dist/TimeoutConstants.js +0 -184
  59. package/dist/TimeoutConstants.js.map +0 -1
  60. package/dist/driver/CheReporter.js +0 -191
  61. package/dist/driver/CheReporter.js.map +0 -1
  62. package/dist/driver/ChromeDriver.js +0 -77
  63. package/dist/driver/ChromeDriver.js.map +0 -1
  64. package/dist/driver/IDriver.js +0 -3
  65. package/dist/driver/IDriver.js.map +0 -1
  66. package/dist/index.js +0 -93
  67. package/dist/index.js.map +0 -1
  68. package/dist/inversify.config.js +0 -130
  69. package/dist/inversify.config.js.map +0 -1
  70. package/dist/inversify.types.js +0 -74
  71. package/dist/inversify.types.js.map +0 -1
  72. package/dist/pageobjects/dashboard/CreateWorkspace.js +0 -106
  73. package/dist/pageobjects/dashboard/CreateWorkspace.js.map +0 -1
  74. package/dist/pageobjects/dashboard/Dashboard.js +0 -115
  75. package/dist/pageobjects/dashboard/Dashboard.js.map +0 -1
  76. package/dist/pageobjects/dashboard/Workspaces.js +0 -157
  77. package/dist/pageobjects/dashboard/Workspaces.js.map +0 -1
  78. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js +0 -138
  79. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js.map +0 -1
  80. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js +0 -97
  81. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js.map +0 -1
  82. package/dist/pageobjects/ide/theia/ContextMenu.js +0 -66
  83. package/dist/pageobjects/ide/theia/ContextMenu.js.map +0 -1
  84. package/dist/pageobjects/ide/theia/DebugView.js +0 -98
  85. package/dist/pageobjects/ide/theia/DebugView.js.map +0 -1
  86. package/dist/pageobjects/ide/theia/DialogWindow.js +0 -102
  87. package/dist/pageobjects/ide/theia/DialogWindow.js.map +0 -1
  88. package/dist/pageobjects/ide/theia/Editor.js +0 -463
  89. package/dist/pageobjects/ide/theia/Editor.js.map +0 -1
  90. package/dist/pageobjects/ide/theia/Ide.js +0 -336
  91. package/dist/pageobjects/ide/theia/Ide.js.map +0 -1
  92. package/dist/pageobjects/ide/theia/LeftToolBar.js +0 -81
  93. package/dist/pageobjects/ide/theia/LeftToolBar.js.map +0 -1
  94. package/dist/pageobjects/ide/theia/NavigationBar.js +0 -57
  95. package/dist/pageobjects/ide/theia/NavigationBar.js.map +0 -1
  96. package/dist/pageobjects/ide/theia/NotificationCenter.js +0 -76
  97. package/dist/pageobjects/ide/theia/NotificationCenter.js.map +0 -1
  98. package/dist/pageobjects/ide/theia/OpenDialogWidget.js +0 -100
  99. package/dist/pageobjects/ide/theia/OpenDialogWidget.js.map +0 -1
  100. package/dist/pageobjects/ide/theia/OpenEditors.js +0 -73
  101. package/dist/pageobjects/ide/theia/OpenEditors.js.map +0 -1
  102. package/dist/pageobjects/ide/theia/OpenWorkspaceWidget.js +0 -62
  103. package/dist/pageobjects/ide/theia/OpenWorkspaceWidget.js.map +0 -1
  104. package/dist/pageobjects/ide/theia/PreviewWidget.js +0 -134
  105. package/dist/pageobjects/ide/theia/PreviewWidget.js.map +0 -1
  106. package/dist/pageobjects/ide/theia/ProjectTree.js +0 -282
  107. package/dist/pageobjects/ide/theia/ProjectTree.js.map +0 -1
  108. package/dist/pageobjects/ide/theia/QuickOpenContainer.js +0 -70
  109. package/dist/pageobjects/ide/theia/QuickOpenContainer.js.map +0 -1
  110. package/dist/pageobjects/ide/theia/RightToolBar.js +0 -51
  111. package/dist/pageobjects/ide/theia/RightToolBar.js.map +0 -1
  112. package/dist/pageobjects/ide/theia/Terminal.js +0 -184
  113. package/dist/pageobjects/ide/theia/Terminal.js.map +0 -1
  114. package/dist/pageobjects/ide/theia/TopMenu.js +0 -109
  115. package/dist/pageobjects/ide/theia/TopMenu.js.map +0 -1
  116. package/dist/pageobjects/ide/theia/plugins/GitHubPullRequestPlugin.js +0 -128
  117. package/dist/pageobjects/ide/theia/plugins/GitHubPullRequestPlugin.js.map +0 -1
  118. package/dist/pageobjects/ide/theia/plugins/GitPlugin.js +0 -120
  119. package/dist/pageobjects/ide/theia/plugins/GitPlugin.js.map +0 -1
  120. package/dist/pageobjects/ide/theia/plugins/KubernetesPlugin.js +0 -107
  121. package/dist/pageobjects/ide/theia/plugins/KubernetesPlugin.js.map +0 -1
  122. package/dist/pageobjects/ide/theia/plugins/OpenshiftPlugin.js +0 -99
  123. package/dist/pageobjects/ide/theia/plugins/OpenshiftPlugin.js.map +0 -1
  124. package/dist/pageobjects/ide/theia/plugins/PluginsView.js +0 -166
  125. package/dist/pageobjects/ide/theia/plugins/PluginsView.js.map +0 -1
  126. package/dist/pageobjects/login/ICheLoginPage.js +0 -12
  127. package/dist/pageobjects/login/ICheLoginPage.js.map +0 -1
  128. package/dist/pageobjects/login/IOcpLoginPage.js +0 -12
  129. package/dist/pageobjects/login/IOcpLoginPage.js.map +0 -1
  130. package/dist/pageobjects/login/MultiUserLoginPage.js +0 -49
  131. package/dist/pageobjects/login/MultiUserLoginPage.js.map +0 -1
  132. package/dist/pageobjects/login/OcpUserLoginPage.js +0 -53
  133. package/dist/pageobjects/login/OcpUserLoginPage.js.map +0 -1
  134. package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js +0 -86
  135. package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js.map +0 -1
  136. package/dist/pageobjects/login/UpdateAccountInformationPage.js +0 -74
  137. package/dist/pageobjects/login/UpdateAccountInformationPage.js.map +0 -1
  138. package/dist/pageobjects/openshift/CheLoginPage.js +0 -88
  139. package/dist/pageobjects/openshift/CheLoginPage.js.map +0 -1
  140. package/dist/pageobjects/openshift/OcpLoginPage.js +0 -106
  141. package/dist/pageobjects/openshift/OcpLoginPage.js.map +0 -1
  142. package/dist/pageobjects/third-parties/GitLoginPage.js +0 -85
  143. package/dist/pageobjects/third-parties/GitLoginPage.js.map +0 -1
  144. package/dist/pageobjects/third-parties/GitOauthAppsSettings.js +0 -110
  145. package/dist/pageobjects/third-parties/GitOauthAppsSettings.js.map +0 -1
  146. package/dist/tests/devfiles/che-code/EmptyWorkspace.spec.js +0 -61
  147. package/dist/tests/devfiles/che-code/EmptyWorkspace.spec.js.map +0 -1
  148. package/dist/tests/devfiles/theia/CSlashCPlusPlus.spec.js +0 -73
  149. package/dist/tests/devfiles/theia/CSlashCPlusPlus.spec.js.map +0 -1
  150. package/dist/tests/devfiles/theia/DevfileSmoke.spec.js +0 -47
  151. package/dist/tests/devfiles/theia/DevfileSmoke.spec.js.map +0 -1
  152. package/dist/tests/devfiles/theia/DotNetCore.spec.js +0 -81
  153. package/dist/tests/devfiles/theia/DotNetCore.spec.js.map +0 -1
  154. package/dist/tests/devfiles/theia/Go.spec.js +0 -72
  155. package/dist/tests/devfiles/theia/Go.spec.js.map +0 -1
  156. package/dist/tests/devfiles/theia/JavaMaven.spec.js +0 -60
  157. package/dist/tests/devfiles/theia/JavaMaven.spec.js.map +0 -1
  158. package/dist/tests/devfiles/theia/JavaSpringBoot.spec.js +0 -66
  159. package/dist/tests/devfiles/theia/JavaSpringBoot.spec.js.map +0 -1
  160. package/dist/tests/devfiles/theia/JavaVertx.spec.js +0 -60
  161. package/dist/tests/devfiles/theia/JavaVertx.spec.js.map +0 -1
  162. package/dist/tests/devfiles/theia/NodeJS.spec.js +0 -64
  163. package/dist/tests/devfiles/theia/NodeJS.spec.js.map +0 -1
  164. package/dist/tests/devfiles/theia/PHPSimple.spec.js +0 -74
  165. package/dist/tests/devfiles/theia/PHPSimple.spec.js.map +0 -1
  166. package/dist/tests/devfiles/theia/Python.spec.js +0 -58
  167. package/dist/tests/devfiles/theia/Python.spec.js.map +0 -1
  168. package/dist/tests/devfiles/theia/PythonDjango.spec.js +0 -61
  169. package/dist/tests/devfiles/theia/PythonDjango.spec.js.map +0 -1
  170. package/dist/tests/devfiles/theia/Quarkus.spec.js +0 -69
  171. package/dist/tests/devfiles/theia/Quarkus.spec.js.map +0 -1
  172. package/dist/tests/devfiles/theia/Scala.spec.js +0 -66
  173. package/dist/tests/devfiles/theia/Scala.spec.js.map +0 -1
  174. package/dist/tests/e2e/theia/FactoryUrl.spec.js +0 -40
  175. package/dist/tests/e2e/theia/FactoryUrl.spec.js.map +0 -1
  176. package/dist/tests/e2e/theia/GitPublishBranch.spec.js +0 -90
  177. package/dist/tests/e2e/theia/GitPublishBranch.spec.js.map +0 -1
  178. package/dist/tests/e2e/theia/GitSelfSignCert.spec.js +0 -90
  179. package/dist/tests/e2e/theia/GitSelfSignCert.spec.js.map +0 -1
  180. package/dist/tests/e2e/theia/GitSsh.spec.js +0 -120
  181. package/dist/tests/e2e/theia/GitSsh.spec.js.map +0 -1
  182. package/dist/tests/e2e/theia/OpenshiftConnector.spec.js +0 -124
  183. package/dist/tests/e2e/theia/OpenshiftConnector.spec.js.map +0 -1
  184. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js +0 -50
  185. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +0 -1
  186. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.js +0 -48
  187. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +0 -1
  188. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js +0 -48
  189. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +0 -1
  190. package/dist/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.js +0 -277
  191. package/dist/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.js.map +0 -1
  192. package/dist/tests/e2e_happy_path/theia/HappyPath.spec.js +0 -314
  193. package/dist/tests/e2e_happy_path/theia/HappyPath.spec.js.map +0 -1
  194. package/dist/tests/intelij/IntelijOpenWorkspace.spec.js +0 -39
  195. package/dist/tests/intelij/IntelijOpenWorkspace.spec.js.map +0 -1
  196. package/dist/tests/load_test/theia/LoadTest.spec.js +0 -41
  197. package/dist/tests/load_test/theia/LoadTest.spec.js.map +0 -1
  198. package/dist/tests/login/LinkCheAndOcpUsers.spec.js +0 -39
  199. package/dist/tests/login/LinkCheAndOcpUsers.spec.js.map +0 -1
  200. package/dist/tests/login/Login.spec.js +0 -28
  201. package/dist/tests/login/Login.spec.js.map +0 -1
  202. package/dist/tests/plugins/theia/GitHubPullRequestPlugin.spec.js +0 -117
  203. package/dist/tests/plugins/theia/GitHubPullRequestPlugin.spec.js.map +0 -1
  204. package/dist/tests/plugins/theia/InstallPluginUsingUI.spec.js +0 -62
  205. package/dist/tests/plugins/theia/InstallPluginUsingUI.spec.js.map +0 -1
  206. package/dist/tests/plugins/theia/JavaPlugin.spec.js +0 -82
  207. package/dist/tests/plugins/theia/JavaPlugin.spec.js.map +0 -1
  208. package/dist/tests/plugins/theia/PhpPlugin.spec.js +0 -96
  209. package/dist/tests/plugins/theia/PhpPlugin.spec.js.map +0 -1
  210. package/dist/tests/plugins/theia/PythonPlugin.spec.js +0 -72
  211. package/dist/tests/plugins/theia/PythonPlugin.spec.js.map +0 -1
  212. package/dist/tests/plugins/theia/TypescriptPlugin.spec.js +0 -135
  213. package/dist/tests/plugins/theia/TypescriptPlugin.spec.js.map +0 -1
  214. package/dist/tests/plugins/theia/VscodeKubernetesPlugin.spec.js +0 -69
  215. package/dist/tests/plugins/theia/VscodeKubernetesPlugin.spec.js.map +0 -1
  216. package/dist/tests/plugins/theia/VscodeShellcheckPlugin.spec.js +0 -82
  217. package/dist/tests/plugins/theia/VscodeShellcheckPlugin.spec.js.map +0 -1
  218. package/dist/tests/plugins/theia/VscodeValePlugin.spec.js +0 -70
  219. package/dist/tests/plugins/theia/VscodeValePlugin.spec.js.map +0 -1
  220. package/dist/tests/plugins/theia/VscodeXmlPlugin.spec.js +0 -81
  221. package/dist/tests/plugins/theia/VscodeXmlPlugin.spec.js.map +0 -1
  222. package/dist/tests/plugins/theia/VscodeYamlPlugin.spec.js +0 -78
  223. package/dist/tests/plugins/theia/VscodeYamlPlugin.spec.js.map +0 -1
  224. package/dist/testsLibrary/WorkspaceHandlingTests.js +0 -140
  225. package/dist/testsLibrary/WorkspaceHandlingTests.js.map +0 -1
  226. package/dist/testsLibrary/theia/CodeExecutionTestsTheia.js +0 -248
  227. package/dist/testsLibrary/theia/CodeExecutionTestsTheia.js.map +0 -1
  228. package/dist/testsLibrary/theia/LanguageServerTestsTheia.js +0 -230
  229. package/dist/testsLibrary/theia/LanguageServerTestsTheia.js.map +0 -1
  230. package/dist/testsLibrary/theia/ProjectAndFileTestsTheia.js +0 -133
  231. package/dist/testsLibrary/theia/ProjectAndFileTestsTheia.js.map +0 -1
  232. package/dist/utils/AnimationChecker.js +0 -45
  233. package/dist/utils/AnimationChecker.js.map +0 -1
  234. package/dist/utils/BrowserTabsUtil.js +0 -115
  235. package/dist/utils/BrowserTabsUtil.js.map +0 -1
  236. package/dist/utils/DriverHelper.js +0 -616
  237. package/dist/utils/DriverHelper.js.map +0 -1
  238. package/dist/utils/Logger.js +0 -84
  239. package/dist/utils/Logger.js.map +0 -1
  240. package/dist/utils/Sanitizer.js +0 -29
  241. package/dist/utils/Sanitizer.js.map +0 -1
  242. package/dist/utils/ScreenCatcher.js +0 -107
  243. package/dist/utils/ScreenCatcher.js.map +0 -1
  244. package/dist/utils/VCS/CheGitApi.js +0 -42
  245. package/dist/utils/VCS/CheGitApi.js.map +0 -1
  246. package/dist/utils/VCS/github/GitHubUtil.js +0 -126
  247. package/dist/utils/VCS/github/GitHubUtil.js.map +0 -1
  248. package/dist/utils/WorkspaceNameHandler.js +0 -60
  249. package/dist/utils/WorkspaceNameHandler.js.map +0 -1
  250. package/dist/utils/requestHandlers/CheApiRequestHandler.js +0 -126
  251. package/dist/utils/requestHandlers/CheApiRequestHandler.js.map +0 -1
  252. package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js +0 -49
  253. package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +0 -1
  254. package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.js +0 -12
  255. package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.js.map +0 -1
  256. package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.js +0 -50
  257. package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.js.map +0 -1
  258. package/dist/utils/requestHandlers/tokens/ITokenHandler.js +0 -12
  259. package/dist/utils/requestHandlers/tokens/ITokenHandler.js.map +0 -1
  260. package/dist/utils/theia/PreferencesHandlerTheia.js +0 -142
  261. package/dist/utils/theia/PreferencesHandlerTheia.js.map +0 -1
  262. package/dist/utils/workspace/ApiUrlResolver.js +0 -67
  263. package/dist/utils/workspace/ApiUrlResolver.js.map +0 -1
  264. package/dist/utils/workspace/ITestWorkspaceUtil.js +0 -12
  265. package/dist/utils/workspace/ITestWorkspaceUtil.js.map +0 -1
  266. package/dist/utils/workspace/TestWorkspaceUtil.js +0 -357
  267. package/dist/utils/workspace/TestWorkspaceUtil.js.map +0 -1
  268. package/dist/utils/workspace/WorkspaceStatus.js +0 -19
  269. package/dist/utils/workspace/WorkspaceStatus.js.map +0 -1
  270. package/mocha-all-factories-code.json +0 -11
  271. package/mocha-all-plugins-code.json +0 -10
  272. package/mocha-code.json +0 -8
  273. package/mocha-devworkspace-happy-path-code.json +0 -10
  274. package/mocha-factory-code.json +0 -10
  275. package/mocha-happy-path-code.json +0 -11
  276. package/mocha-java-springboot-code.json +0 -9
  277. package/mocha-java-vertx-code.json +0 -9
@@ -1,8 +1,11 @@
1
1
  {
2
- "timeout": "2200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "bail": true,
6
- "full-trace": true,
7
- "require": "source-map-support/register"
2
+ "timeout": "2200000",
3
+ "reporter": "dist/driver/CheReporter.js",
4
+ "ui": "tdd",
5
+ "bail": true,
6
+ "full-trace": true,
7
+ "require": [
8
+ "source-map-support/register",
9
+ "./dist/tests/MochaHooks.js"
10
+ ]
8
11
  }
package/mocha-theia.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
- "timeout": "1200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "bail": true,
6
- "full-trace": true,
7
- "spec": ["dist/tests/login/Login.spec.js", "dist/tests/e2e/theia/*.spec.js"]
2
+ "timeout": "1200000",
3
+ "reporter": "dist/driver/CheReporter.js",
4
+ "ui": "tdd",
5
+ "bail": true,
6
+ "full-trace": true,
7
+ "require": "./dist/tests/MochaHooks.js",
8
+ "spec": [
9
+ "dist/tests/login/Login.spec.js",
10
+ "dist/tests/e2e/theia/*.spec.js"
11
+ ]
8
12
  }
@@ -1,9 +1,12 @@
1
1
  {
2
- "timeout": "1200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "bail": true,
6
- "full-trace": true,
7
- "support": "source-map-support/register",
8
- "spec": ["dist/tests/e2e/theia/WorkspaceCreationAndLsInitialization.spec.js"]
2
+ "timeout": "1200000",
3
+ "reporter": "dist/driver/CheReporter.js",
4
+ "require": "./dist/tests/MochaHooks.js",
5
+ "ui": "tdd",
6
+ "bail": true,
7
+ "full-trace": true,
8
+ "support": "source-map-support/register",
9
+ "spec": [
10
+ "dist/tests/e2e/theia/WorkspaceCreationAndLsInitialization.spec.js"
11
+ ]
9
12
  }
@@ -1,9 +1,13 @@
1
1
  {
2
- "timeout": "1200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "bail": true,
6
- "full-trace": true,
7
- "support": "source-map-support/register",
8
- "spec": ["./dist/tests/login/Login.spec.js", "./dist/tests/intelij/IntelijOpenWorkspace.spec.js"]
2
+ "timeout": "1200000",
3
+ "reporter": "dist/driver/CheReporter.js",
4
+ "require": "./dist/tests/MochaHooks.js",
5
+ "ui": "tdd",
6
+ "bail": true,
7
+ "full-trace": true,
8
+ "support": "source-map-support/register",
9
+ "spec": [
10
+ "./dist/tests/login/Login.spec.js",
11
+ "./dist/tests/intelij/IntelijOpenWorkspace.spec.js"
12
+ ]
9
13
  }
@@ -1,8 +1,11 @@
1
1
  {
2
- "timeout": "1200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "bail": true,
6
- "full-trace": true,
7
- "spec": ["./dist/tests/login/LinkCheAndOcpUsers.spec.js"]
2
+ "timeout": "1200000",
3
+ "reporter": "dist/driver/CheReporter.js",
4
+ "require": "./dist/tests/MochaHooks.js",
5
+ "ui": "tdd",
6
+ "bail": true,
7
+ "full-trace": true,
8
+ "spec": [
9
+ "./dist/tests/login/LinkCheAndOcpUsers.spec.js"
10
+ ]
8
11
  }
@@ -1,7 +1,8 @@
1
1
  {
2
- "timeout": "1200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "bail": true,
6
- "full-trace": true
2
+ "timeout": "1200000",
3
+ "reporter": "dist/driver/CheReporter.js",
4
+ "require": "./dist/tests/MochaHooks.js",
5
+ "ui": "tdd",
6
+ "bail": true,
7
+ "full-trace": true
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-che/che-e2e",
3
- "version": "7.58.1-dev-7636b8b",
3
+ "version": "7.58.1-dev-43d35ee",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -29,15 +29,15 @@
29
29
  "test-all-factories-theia": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-all-factories-theia.json",
30
30
  "test-plugin-ci-theia": "export TS_DELETE_PLUGINS_TEST_WORKSPACE=true && npm run init-mocha-opts -- --spec dist/tests/plugins/theia/${USERSTORY}.spec.js",
31
31
  "test-all-plugins-theia": "tsc && mocha --config mocha-all-plugins-theia.json",
32
- "test-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-code.json",
33
- "test-happy-path-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-happy-path-code.json",
34
- "test-devworkspace-happy-path-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-devworkspace-happy-path-code.json",
35
- "test-java-vertx-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-java-vertx-code.json",
36
- "test-java-springboot-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-java-springboot-code.json",
37
- "test-factory-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-factory-code.json",
38
- "test-all-factories-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-all-factories-code.json",
32
+ "test-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-che-code.json",
33
+ "test-happy-path-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-happy-path-che-code.json",
34
+ "test-devworkspace-happy-path-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-devworkspace-happy-path-che-code.json",
35
+ "test-java-vertx-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-java-vertx-che-code.json",
36
+ "test-java-springboot-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-java-springboot-che-code.json",
37
+ "test-factory-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-factory-che-code.json",
38
+ "test-all-factories-code": "./generateIndex.sh && npm run lint && npm run tsc && mocha --config mocha-all-factories-che-code.json",
39
39
  "test-plugin-ci-code": "export TS_DELETE_PLUGINS_TEST_WORKSPACE=true && npm run init-mocha-opts -- --spec dist/tests/plugins/code/${USERSTORY}.spec.js",
40
- "test-all-plugins-code": "tsc && mocha --config mocha-all-plugins-code.json"
40
+ "test-all-plugins-code": "tsc && mocha --config mocha-all-plugins-che-code.json"
41
41
  },
42
42
  "author": "Ihor Okhrimenko (iokhrime@redhat.com)",
43
43
  "license": "ISC",
@@ -49,15 +49,15 @@
49
49
  "@types/selenium-webdriver": "4.1.3",
50
50
  "axios": "^0.25.0",
51
51
  "chai": "4.2.0",
52
- "chromedriver": "^103.0.0",
52
+ "chromedriver": "^107.0.0",
53
53
  "mocha": "^9.1.3",
54
- "monaco-page-objects": "3.1.0",
55
54
  "rimraf": "2.6.2",
56
55
  "selenium-webdriver": "4.4.0",
57
56
  "ts-node": "8.0.3",
58
- "tslint": "5.10.0",
59
- "typed-rest-client": "^1.8.9",
57
+ "tslint": "^6.1.3",
58
+ "typed-rest-client": "1.8.5",
60
59
  "typescript": "3.9.9",
60
+ "monaco-page-objects": "3.1.0",
61
61
  "vscode-extension-tester-locators": "3.1.0"
62
62
  },
63
63
  "dependencies": {
@@ -86,12 +86,11 @@ export class Workspaces {
86
86
  Logger.debug(`Workspaces.waitActionsPopup of the '${workspaceName}' list item`);
87
87
 
88
88
  await this.driverHelper.waitVisibility(this.getExpandedActionsLocator(workspaceName), timeout);
89
- await this.driverHelper.wait(5000);
89
+ await this.driverHelper.wait(2000);
90
90
  }
91
91
 
92
92
  async openActionsPopup(workspaceName: string, timeout: number = TimeoutConstants.TS_CONTEXT_MENU_TIMEOUT) {
93
93
  Logger.debug(`Workspaces.openActionsPopup for the '${workspaceName}' list item`);
94
-
95
94
  await this.clickActionsButton(workspaceName);
96
95
  await this.waitActionsPopup(workspaceName, timeout);
97
96
  }
@@ -104,8 +103,15 @@ export class Workspaces {
104
103
 
105
104
  async clickActionsStopWorkspaceButton(workspaceName: string) {
106
105
  Logger.debug(`Workspaces.clickActionsStopWorkspaceButton for the '${workspaceName}' list item`);
107
-
108
- await this.driverHelper.waitAndClick(this.getActionsPopupButtonLocator(workspaceName, 'Stop Workspace'));
106
+ // workaround because of issue CRW-3649
107
+ try {
108
+ await this.driverHelper.waitAndClick(this.getActionsPopupButtonLocator(workspaceName, 'Stop Workspace'));
109
+ } catch (e) {
110
+ Logger.warn(`Workspaces.clickActionsStopWorkspaceButton for the '${workspaceName}' list item - popup was missed, try to click one more time (issue CRW-3649).`);
111
+
112
+ await this.driverHelper.waitAndClick(this.getActionsLocator(workspaceName));
113
+ await this.driverHelper.waitAndClick(this.getActionsPopupButtonLocator(workspaceName, 'Stop Workspace'));
114
+ }
109
115
  }
110
116
 
111
117
  async waitDeleteWorkspaceConfirmationWindow(timeout: number = TimeoutConstants.TS_DASHBOARD_WORKSPACE_STOP_TIMEOUT) {
@@ -52,7 +52,7 @@ export class Ide {
52
52
  } catch (err) {
53
53
  if (err instanceof error.StaleElementReferenceError) {
54
54
  Logger.warn('StaleElementException occurred during waiting for IDE. Sleeping for 2 secs and retrying.');
55
- this.driverHelper.wait(2000);
55
+ await this.driverHelper.wait(2000);
56
56
  try {
57
57
  await this.driverHelper.waitAndSwitchToFrame(By.css(Ide.IDE_IFRAME_CSS), timeout);
58
58
  } catch (err) {
@@ -56,7 +56,7 @@ export class OpenEditors {
56
56
  Logger.trace('OpenEditors.waitAndClickExpansionToggle expansion toggle clicked.');
57
57
  }
58
58
 
59
- async isExpansionToggleCollapsed(timeout: number = TimeoutConstants.TS_OPEN_EDITORS_CLICK_ON_ITEM_TIMEOUT) : Promise<boolean> {
59
+ async isExpansionToggleCollapsed(timeout: number = TimeoutConstants.TS_OPEN_EDITORS_CLICK_ON_ITEM_TIMEOUT): Promise<boolean> {
60
60
  Logger.debug('OpenEditors.isExpansionToggleCollapsed');
61
61
  return await this.driverHelper.waitVisibilityBoolean(OpenEditors.OPEN_EDITORS_EXPANSION_TOGGLE_COLLAPSED_LOCATOR, 1, timeout);
62
62
  }
@@ -0,0 +1,47 @@
1
+
2
+ import { IDriver } from '..';
3
+ import { TYPES, CLASSES } from '..';
4
+ import { EditorType, TestConstants } from '../TestConstants';
5
+ import { AskForConfirmationTypeTheia, PreferencesHandlerTheia, TerminalRendererTypeTheia } from '../utils/theia/PreferencesHandlerTheia';
6
+ import { CheApiRequestHandler } from '../utils/requestHandlers/CheApiRequestHandler';
7
+ import { TimeoutConstants } from '../TimeoutConstants';
8
+ import * as monacoPageObjects from 'monaco-page-objects';
9
+ import * as vscodeExtensionTesterLocators from 'vscode-extension-tester-locators';
10
+ import { e2eContainer } from '../inversify.config';
11
+
12
+ const driver: IDriver = e2eContainer.get(TYPES.Driver);
13
+ const preferencesHandler: PreferencesHandlerTheia = e2eContainer.get(CLASSES.PreferencesHandlerTheia);
14
+
15
+ exports.mochaHooks = {
16
+ beforeAll: [
17
+ async function enableRequestInterceptor() {
18
+ if (TestConstants.TS_SELENIUM_REQUEST_INTERCEPTOR) {
19
+ CheApiRequestHandler.enableRequestInteceptor();
20
+ }
21
+ },
22
+ async function enableResponseInterceptor() {
23
+ if (TestConstants.TS_SELENIUM_RESPONSE_INTERCEPTOR) {
24
+ CheApiRequestHandler.enableResponseInterceptor();
25
+ }
26
+ },
27
+ async function setTheiaSpecificPreferences() {
28
+ if (TestConstants.TS_SELENIUM_EDITOR === EditorType.THEIA) {
29
+ await preferencesHandler.setConfirmExit(AskForConfirmationTypeTheia.never);
30
+ await preferencesHandler.setTerminalType(TerminalRendererTypeTheia.dom);
31
+ }
32
+ },
33
+ async function initMonacoPageObjects() {
34
+ if (TestConstants.TS_SELENIUM_EDITOR === EditorType.CHE_CODE) {
35
+ // init vscode-extension-tester monaco-page-objects
36
+ monacoPageObjects.initPageObjects(TestConstants.TS_SELENIUM_MONACO_PAGE_OBJECTS_USE_VERSION, TestConstants.TS_SELENIUM_MONACO_PAGE_OBJECTS_BASE_VERSION, vscodeExtensionTesterLocators.getLocatorsPath(), driver.get(), 'google-chrome');
37
+ }
38
+ },
39
+ async function prolongTimeoutConstantsInDebugMode() {
40
+ if (TestConstants.TS_DEBUG_MODE === true) {
41
+ for (let [timeout, seconds] of Object.entries(TimeoutConstants)) {
42
+ Object.defineProperty(TimeoutConstants, timeout, {value: seconds * 100});
43
+ }
44
+ }
45
+ },
46
+ ]
47
+ };
@@ -7,19 +7,16 @@
7
7
  *
8
8
  * SPDX-License-Identifier: EPL-2.0
9
9
  **********************************************************************/
10
- import 'reflect-metadata';
11
- import { CLASSES } from '../../../inversify.types';
12
10
  import { e2eContainer } from '../../../inversify.config';
11
+ import { ActivityBar, ViewControl, Workbench } from 'monaco-page-objects';
12
+ import { CLASSES } from '../../../inversify.types';
13
13
  import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
14
- import CheReporter from '../../../driver/CheReporter';
15
14
  import { Logger } from '../../../utils/Logger';
16
- import { DriverHelper } from '../../../utils/DriverHelper';
17
- import { By, until } from 'selenium-webdriver';
18
- import { Workbench } from 'monaco-page-objects';
15
+ import CheReporter from '../../../driver/CheReporter';
16
+ import { ProjectAndFileTestsCheCode } from '../../../testsLibrary/che-code/ProjectAndFileTestsCheCode';
19
17
 
20
18
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
21
- const driverHelper: DriverHelper = e2eContainer.get(CLASSES.DriverHelper);
22
-
19
+ const projectAndFileTests: ProjectAndFileTestsCheCode = e2eContainer.get(CLASSES.ProjectAndFileTestsCheCode);
23
20
  const stackName: string = 'Empty Workspace';
24
21
 
25
22
  suite(`${stackName} test`, async () => {
@@ -30,28 +27,21 @@ suite(`${stackName} test`, async () => {
30
27
  CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
31
28
  });
32
29
  test('Wait workspace readiness', async() => {
33
- try {
34
- await driverHelper.getDriver().wait(until.elementLocated(By.className('monaco-workbench')));
35
- } catch (err) {
36
- if ((err as Error).name === 'WebDriverError') {
37
- await new Promise(res => setTimeout(res, 3000));
38
- } else {
39
- throw err;
40
- }
41
- }
42
- let workbench = new Workbench();
43
- let activityBar = workbench.getActivityBar();
44
- let activityBarControls = await activityBar.getViewControls();
30
+ await projectAndFileTests.waitWorkspaceReadinessForCheCodeEditor();
31
+
32
+ const workbench: Workbench = new Workbench();
33
+ const activityBar: ActivityBar = workbench.getActivityBar();
34
+ const activityBarControls: ViewControl[] = await activityBar.getViewControls();
35
+
45
36
  Logger.debug(`Editor sections:`);
46
- activityBarControls.forEach(async control => {
37
+ for (const control of activityBarControls) {
47
38
  Logger.debug(`${await control.getTitle()}`);
48
- });
39
+ }
49
40
  });
50
- // projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
51
41
  });
52
42
 
53
43
  suite('Stopping and deleting the workspace', async () => {
54
- test(`Stop and remowe workspace`, async () => {
44
+ test(`Stop and remove workspace`, async () => {
55
45
  await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
56
46
  });
57
47
  });
@@ -27,7 +27,7 @@ const workspaceSampleName: string = 'dotnet-web-simple';
27
27
  const fileFolderPath: string = `${workspaceSampleName}`;
28
28
  const tabTitle: string = 'Program.cs';
29
29
  // const codeNavigationClassName: string = '[metadata] Console.cs';
30
- const stack : string = 'ASP.NET Core Web Application';
30
+ const stack: string = 'ASP.NET Core Web Application';
31
31
  const updateDependenciesTaskName: string = 'update dependencies';
32
32
  const buildTaskName: string = 'build';
33
33
  const runTaskName: string = 'run';
@@ -21,7 +21,7 @@ const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUti
21
21
  const testWorkspaceUtils: ITestWorkspaceUtil = e2eContainer.get<ITestWorkspaceUtil>(TYPES.WorkspaceUtil);
22
22
  const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
23
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`;
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
25
  const workspaceSampleName: string = 'console-java-simple';
26
26
  const workspaceRootFolderName: string = 'src';
27
27
 
@@ -21,7 +21,7 @@ const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.
21
21
  const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
22
22
  const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
23
23
 
24
- const factoryUrl : string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=https://github.com/che-samples/console-java-simple/tree/master/src`;
24
+ const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=https://github.com/che-samples/console-java-simple/tree/master/src`;
25
25
  const workspaceSampleName: string = 'console-java-simple';
26
26
  const workspaceRootFolderName: string = 'src';
27
27
  const fileName: string = 'pom.xml';
@@ -21,7 +21,7 @@ const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.
21
21
  const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
22
22
  const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
23
23
 
24
- const factoryUrl : string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=https://github.com/che-samples/console-java-simple`;
24
+ const factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=https://github.com/che-samples/console-java-simple`;
25
25
  const workspaceSampleName: string = 'console-java-simple';
26
26
  const workspaceRootFolderName: string = 'src';
27
27
  const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/main/java/org/eclipse/che/examples`;
@@ -21,7 +21,7 @@ const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.
21
21
  const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
22
22
  const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUtil);
23
23
 
24
- let factoryUrl : string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=https://github.com/che-samples/console-java-simple/tree/java1.11`;
24
+ let factoryUrl: string = `${TestConstants.TS_SELENIUM_BASE_URL}/f?url=https://github.com/che-samples/console-java-simple/tree/java1.11`;
25
25
  const workspaceSampleName: string = 'console-java-simple';
26
26
  const workspaceRootFolderName: string = 'src';
27
27
  const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/main/java/org/eclipse/che/examples`;
@@ -55,7 +55,7 @@ const SpringAppLocators = {
55
55
 
56
56
  // this test checks only workspace created from "web-nodejs-sample" https://github.com/devfile/devworkspace-operator/blob/main/samples/flattened_theia-next.yaml.
57
57
  suite('Workspace creation via factory url', async () => {
58
- let factoryUrl : string = `${TestConstants.TS_SELENIUM_DEVWORKSPACE_URL}`;
58
+ let factoryUrl: string = `${TestConstants.TS_SELENIUM_DEVWORKSPACE_URL}`;
59
59
 
60
60
  suite('Open factory URL', async () => {
61
61
  // this is DevWorkspace test specific - we create the test ws. using factory instead of chectl
@@ -0,0 +1,34 @@
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 'reflect-metadata';
12
+ import { inject, injectable } from 'inversify';
13
+ import { By, until } from 'selenium-webdriver';
14
+ import { DriverHelper } from '../../utils/DriverHelper';
15
+ import { CLASSES } from '../../inversify.types';
16
+
17
+ @injectable()
18
+ export class ProjectAndFileTestsCheCode {
19
+
20
+ constructor(
21
+ @inject(CLASSES.DriverHelper) private readonly driverHelper: DriverHelper) {}
22
+
23
+ public async waitWorkspaceReadinessForCheCodeEditor(): Promise<void> {
24
+ try {
25
+ await this.driverHelper.getDriver().wait(until.elementLocated(By.className('monaco-workbench')));
26
+ } catch (err) {
27
+ if ((err as Error).name === 'WebDriverError') {
28
+ await new Promise(res => setTimeout(res, 3000));
29
+ } else {
30
+ throw err;
31
+ }
32
+ }
33
+ }
34
+ }
@@ -97,7 +97,7 @@ export class LanguageServerTestsTheia {
97
97
  });
98
98
  }
99
99
 
100
- public goToDefinition(openedFile: string, line: number, char: number, codeNavigationClassName: string, timeout : number = TimeoutConstants.TS_EDITOR_TAB_INTERACTION_TIMEOUT) {
100
+ public goToDefinition(openedFile: string, line: number, char: number, codeNavigationClassName: string, timeout: number = TimeoutConstants.TS_EDITOR_TAB_INTERACTION_TIMEOUT) {
101
101
  test('Go to Definition', async () => {
102
102
  try {
103
103
  await this.editor.moveCursorToLineAndChar(openedFile, line, char);
@@ -123,7 +123,7 @@ export class LanguageServerTestsTheia {
123
123
  });
124
124
  }
125
125
 
126
- public goToImplementations(openedFile: string, line: number, char: number, codeNavigationClassName: string, timeout : number = TimeoutConstants.TS_EDITOR_TAB_INTERACTION_TIMEOUT) {
126
+ public goToImplementations(openedFile: string, line: number, char: number, codeNavigationClassName: string, timeout: number = TimeoutConstants.TS_EDITOR_TAB_INTERACTION_TIMEOUT) {
127
127
  test('Go to Implementations', async () => {
128
128
  try {
129
129
  await this.editor.moveCursorToLineAndChar(openedFile, line, char);
@@ -55,7 +55,7 @@ export class ProjectAndFileTestsTheia {
55
55
  });
56
56
  }
57
57
 
58
- public waitWorkspaceReadiness(sampleName : string, folder: string, checkNotification: boolean = true, restartWorkspaceDialogIsExpected: boolean = false) {
58
+ public waitWorkspaceReadiness(sampleName: string, folder: string, checkNotification: boolean = true, restartWorkspaceDialogIsExpected: boolean = false) {
59
59
  test('Wait for workspace readiness', async () => {
60
60
  await this.ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
61
61
 
@@ -72,7 +72,7 @@ export class ProjectAndFileTestsTheia {
72
72
  });
73
73
  }
74
74
 
75
- public waitWorkspaceReadinessNoSubfolder(sampleName : string, checkNotification: boolean = true) {
75
+ public waitWorkspaceReadinessNoSubfolder(sampleName: string, checkNotification: boolean = true) {
76
76
  test('Wait for workspace readiness', async () => {
77
77
  await this.ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
78
78
  if (checkNotification) {
package/tslint.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "forin": true,
27
27
  "indent": [
28
28
  true,
29
- "spaces"
29
+ "spaces"
30
30
  ],
31
31
  "interface-name": true,
32
32
  "jsdoc-format": true,
@@ -59,15 +59,18 @@
59
59
  "no-eval": true,
60
60
  "no-string-literal": true,
61
61
  "no-switch-case-fall-through": true,
62
- "trailing-comma": [true, {
63
- "singleline": "never",
64
- "multiline": {
65
- "objects": "ignore",
66
- "arrays": "always",
67
- "functions": "never",
68
- "typeLiterals": "ignore"
62
+ "trailing-comma": [
63
+ true,
64
+ {
65
+ "singleline": "never",
66
+ "multiline": {
67
+ "objects": "ignore",
68
+ "arrays": "always",
69
+ "functions": "never",
70
+ "typeLiterals": "ignore"
71
+ }
69
72
  }
70
- }],
73
+ ],
71
74
  "no-trailing-whitespace": true,
72
75
  "no-unused-expression": true,
73
76
  "no-unused-variable": true,
@@ -92,11 +95,11 @@
92
95
  ],
93
96
  "typedef": [
94
97
  true,
95
- "call-signature",
96
- "member-variable-declaration",
98
+ // "call-signature",
99
+ // "member-variable-declaration",
97
100
  "parameter",
98
101
  "property-declaration",
99
- "variable-declaration"
102
+ // "variable-declaration"
100
103
  ],
101
104
  "typedef-whitespace": [
102
105
  true,
@@ -82,7 +82,7 @@ export class GitHubUtil {
82
82
  const arrayOfPublicKeys = JSON.parse(stringified);
83
83
  for (let entry of arrayOfPublicKeys) {
84
84
  if (entry.title === keyName) {
85
- this.removePublicSshKey(authToken, entry.id);
85
+ await this.removePublicSshKey(authToken, entry.id);
86
86
  break;
87
87
  }
88
88
  }
@@ -97,7 +97,7 @@ export class GitHubUtil {
97
97
  try {
98
98
  const idList: string[] = await this.getPublicSshKeys(authToken);
99
99
  for (let id of idList) {
100
- this.removePublicSshKey(authToken, id);
100
+ await this.removePublicSshKey(authToken, id);
101
101
  }
102
102
 
103
103
  } catch (error) {
@@ -34,7 +34,7 @@ export class ApiUrlResolver {
34
34
  return ApiUrlResolver.KUBERNETES_API_URL;
35
35
  }
36
36
 
37
- private async obtainUserNamespace() : Promise<string> {
37
+ private async obtainUserNamespace(): Promise<string> {
38
38
  Logger.debug(`ApiUrlResolver.obtainUserNamespace ${this.userNamespace}`);
39
39
  if (this.userNamespace.length === 0) {
40
40
  Logger.trace(`ApiUrlResolver.obtainUserNamespace USER_NAMESPACE.length = 0, calling kubernetes API`);
@@ -12,35 +12,35 @@ import { WorkspaceStatus } from './WorkspaceStatus';
12
12
  import { che } from '@eclipse-che/api';
13
13
 
14
14
  export interface ITestWorkspaceUtil {
15
- waitWorkspaceStatus(namespace: string, workspaceName: string, expectedWorkspaceStatus: WorkspaceStatus) : void;
15
+ waitWorkspaceStatus(namespace: string, workspaceName: string, expectedWorkspaceStatus: WorkspaceStatus): void;
16
16
 
17
- stopWorkspaceByName(workspaceName: string) : void;
17
+ stopWorkspaceByName(workspaceName: string): void;
18
18
 
19
19
  /**
20
20
  * Delete a worksapce without stopping phase (similar with force deleting)
21
21
  */
22
- deleteWorkspaceByName(workspaceName: string) : void;
22
+ deleteWorkspaceByName(workspaceName: string): void;
23
23
 
24
24
  /**
25
25
  * Stop workspace before deleting with checking stopping phase
26
26
  */
27
- stopAndDeleteWorkspaceByName(workspaceName: string) : void;
27
+ stopAndDeleteWorkspaceByName(workspaceName: string): void;
28
28
 
29
29
  /**
30
30
  * Stop all run workspaces in the namespace
31
31
  */
32
- stopAllRunningWorkspaces(namespace: string) : void;
32
+ stopAllRunningWorkspaces(namespace: string): void;
33
33
 
34
34
  /**
35
35
  * Stop all run workspaces, check statused and remove the workspaces
36
36
  */
37
- stopAndDeleteAllRunningWorkspaces(namespace: string) : void;
37
+ stopAndDeleteAllRunningWorkspaces(namespace: string): void;
38
38
 
39
39
  /**
40
40
  * Stop all run workspaces without stopping and waiting for of 'Stopped' phase
41
41
  * Similar with 'force' deleting
42
42
  */
43
- deleteAllWorkspaces(namespace: string) : void;
43
+ deleteAllWorkspaces(namespace: string): void;
44
44
 
45
45
  /*=====================
46
46
  * DEPRECATED METHODS *
@@ -49,27 +49,27 @@ export interface ITestWorkspaceUtil {
49
49
  /**
50
50
  * @deprecated Method deprecated. Works with CHE server only
51
51
  */
52
- cleanUpAllWorkspaces() : void;
52
+ cleanUpAllWorkspaces(): void;
53
53
 
54
54
  /**
55
55
  * @deprecated Method deprecated. Works with CHE server only
56
56
  */
57
- cleanUpRunningWorkspace(workspaceName: string) : void;
57
+ cleanUpRunningWorkspace(workspaceName: string): void;
58
58
 
59
59
  /**
60
60
  * @deprecated Method deprecated. Works with CHE server only
61
61
  */
62
- waitPluginAdding(namespace: string, workspaceName: string, pluginId: string) : void;
62
+ waitPluginAdding(namespace: string, workspaceName: string, pluginId: string): void;
63
63
 
64
64
  /**
65
65
  * @deprecated Method deprecated. Works with CHE server only
66
66
  */
67
- removeWorkspaceById(id: string) : void;
67
+ removeWorkspaceById(id: string): void;
68
68
 
69
69
  /**
70
70
  * @deprecated Method deprecated. Works with CHE server only
71
71
  */
72
- stopWorkspaceById(id: string) : void;
72
+ stopWorkspaceById(id: string): void;
73
73
 
74
74
  /**
75
75
  * @deprecated Method deprecated. Works with CHE server only