@eclipse-che/che-e2e 7.39.0 → 7.40.1-dev-c99b14e

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 (295) hide show
  1. package/README.md +3 -1
  2. package/build/dockerfiles/Dockerfile +35 -0
  3. package/build/dockerfiles/README.md +58 -0
  4. package/build/dockerfiles/entrypoint.sh +113 -0
  5. package/build/dockerfiles/google-chrome.repo +6 -0
  6. package/dist/pageobjects/ide/Editor.js +25 -24
  7. package/dist/pageobjects/ide/Editor.js.map +1 -1
  8. package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js +3 -3
  9. package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js.map +1 -1
  10. package/dist/tests/e2e_happy_path/HappyPath.spec.js +3 -3
  11. package/dist/tests/e2e_happy_path/HappyPath.spec.js.map +1 -1
  12. package/dist/tests/plugins/JavaPlugin.spec.js +2 -2
  13. package/dist/tests/plugins/JavaPlugin.spec.js.map +1 -1
  14. package/dist/tests/plugins/PhpPlugin.spec.js +2 -2
  15. package/dist/tests/plugins/PhpPlugin.spec.js.map +1 -1
  16. package/dist/tests/plugins/PythonPlugin.spec.js +2 -2
  17. package/dist/tests/plugins/PythonPlugin.spec.js.map +1 -1
  18. package/dist/tests/plugins/TypescriptPlugin.spec.js +2 -2
  19. package/dist/tests/plugins/TypescriptPlugin.spec.js.map +1 -1
  20. package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js +4 -4
  21. package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js.map +1 -1
  22. package/dist/tests/plugins/VscodeValePlugin.spec.js +1 -1
  23. package/dist/tests/plugins/VscodeValePlugin.spec.js.map +1 -1
  24. package/dist/tests/plugins/VscodeXmlPlugin.spec.js +2 -2
  25. package/dist/tests/plugins/VscodeXmlPlugin.spec.js.map +1 -1
  26. package/dist/tests/plugins/VscodeYamlPlugin.spec.js +2 -2
  27. package/dist/tests/plugins/VscodeYamlPlugin.spec.js.map +1 -1
  28. package/dist/testsLibrary/LanguageServerTests.js +2 -2
  29. package/dist/testsLibrary/LanguageServerTests.js.map +1 -1
  30. package/dist/utils/DriverHelper.js +10 -10
  31. package/dist/utils/DriverHelper.js.map +1 -1
  32. package/dist/utils/VCS/github/GitHubUtil.js +20 -0
  33. package/dist/utils/VCS/github/GitHubUtil.js.map +1 -1
  34. package/initDevfileTests.sh +6 -6
  35. package/mocha-all-devfiles.json +12 -0
  36. package/mocha-all-factories.json +12 -0
  37. package/mocha-all-plugins.json +11 -0
  38. package/mocha-connector.json +9 -0
  39. package/mocha-devworkspace-happy-path.json +11 -0
  40. package/mocha-factory.json +11 -0
  41. package/mocha-git-publish-branch.json +11 -0
  42. package/mocha-git-self-sign-cert.json +11 -0
  43. package/mocha-git-ssh.json +11 -0
  44. package/mocha-happy-path.json +12 -0
  45. package/mocha-java-vertx.json +9 -0
  46. package/mocha-load.json +9 -0
  47. package/mocha-single-devfile.json +8 -0
  48. package/mocha-wkspc-creation-and-ls.json +9 -0
  49. package/mocha.intelij.json +9 -0
  50. package/mocha.json +8 -0
  51. package/mocha.ocp.link.json +8 -0
  52. package/mocha.single.plugin.json +7 -0
  53. package/package.json +4 -4
  54. package/pageobjects/ide/Editor.ts +25 -24
  55. package/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.ts +3 -3
  56. package/tests/e2e_happy_path/HappyPath.spec.ts +3 -3
  57. package/tests/plugins/JavaPlugin.spec.ts +2 -2
  58. package/tests/plugins/PhpPlugin.spec.ts +2 -2
  59. package/tests/plugins/PythonPlugin.spec.ts +2 -2
  60. package/tests/plugins/TypescriptPlugin.spec.ts +2 -2
  61. package/tests/plugins/VscodeShellcheckPlugin.spec.ts +4 -4
  62. package/tests/plugins/VscodeValePlugin.spec.ts +1 -1
  63. package/tests/plugins/VscodeXmlPlugin.spec.ts +2 -2
  64. package/tests/plugins/VscodeYamlPlugin.spec.ts +2 -2
  65. package/testsLibrary/LanguageServerTests.ts +2 -2
  66. package/utils/DriverHelper.ts +10 -10
  67. package/utils/VCS/github/GitHubUtil.ts +19 -0
  68. package/dist/TestConstants.d.ts +0 -206
  69. package/dist/TestConstants.d.ts.map +0 -1
  70. package/dist/TimeoutConstants.d.ts +0 -164
  71. package/dist/TimeoutConstants.d.ts.map +0 -1
  72. package/dist/driver/CheReporter.d.ts +0 -18
  73. package/dist/driver/CheReporter.d.ts.map +0 -1
  74. package/dist/driver/ChromeDriver.d.ts +0 -21
  75. package/dist/driver/ChromeDriver.d.ts.map +0 -1
  76. package/dist/driver/IDriver.d.ts +0 -14
  77. package/dist/driver/IDriver.d.ts.map +0 -1
  78. package/dist/index.d.ts +0 -67
  79. package/dist/index.d.ts.map +0 -1
  80. package/dist/inversify.config.d.ts +0 -13
  81. package/dist/inversify.config.d.ts.map +0 -1
  82. package/dist/inversify.types.d.ts +0 -68
  83. package/dist/inversify.types.d.ts.map +0 -1
  84. package/dist/pageobjects/dashboard/CreateWorkspace.d.ts +0 -20
  85. package/dist/pageobjects/dashboard/CreateWorkspace.d.ts.map +0 -1
  86. package/dist/pageobjects/dashboard/Dashboard.d.ts +0 -24
  87. package/dist/pageobjects/dashboard/Dashboard.d.ts.map +0 -1
  88. package/dist/pageobjects/dashboard/Workspaces.d.ts +0 -44
  89. package/dist/pageobjects/dashboard/Workspaces.d.ts.map +0 -1
  90. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.d.ts +0 -42
  91. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.d.ts.map +0 -1
  92. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.d.ts +0 -29
  93. package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.d.ts.map +0 -1
  94. package/dist/pageobjects/ide/ContextMenu.d.ts +0 -22
  95. package/dist/pageobjects/ide/ContextMenu.d.ts.map +0 -1
  96. package/dist/pageobjects/ide/DebugView.d.ts +0 -32
  97. package/dist/pageobjects/ide/DebugView.d.ts.map +0 -1
  98. package/dist/pageobjects/ide/DialogWindow.d.ts +0 -28
  99. package/dist/pageobjects/ide/DialogWindow.d.ts.map +0 -1
  100. package/dist/pageobjects/ide/Editor.d.ts +0 -78
  101. package/dist/pageobjects/ide/Editor.d.ts.map +0 -1
  102. package/dist/pageobjects/ide/Ide.d.ts +0 -61
  103. package/dist/pageobjects/ide/Ide.d.ts.map +0 -1
  104. package/dist/pageobjects/ide/LeftToolBar.d.ts +0 -23
  105. package/dist/pageobjects/ide/LeftToolBar.d.ts.map +0 -1
  106. package/dist/pageobjects/ide/NavigationBar.d.ts +0 -9
  107. package/dist/pageobjects/ide/NavigationBar.d.ts.map +0 -1
  108. package/dist/pageobjects/ide/NotificationCenter.d.ts +0 -22
  109. package/dist/pageobjects/ide/NotificationCenter.d.ts.map +0 -1
  110. package/dist/pageobjects/ide/OpenDialogWidget.d.ts +0 -36
  111. package/dist/pageobjects/ide/OpenDialogWidget.d.ts.map +0 -1
  112. package/dist/pageobjects/ide/OpenWorkspaceWidget.d.ts +0 -17
  113. package/dist/pageobjects/ide/OpenWorkspaceWidget.d.ts.map +0 -1
  114. package/dist/pageobjects/ide/PreviewWidget.d.ts +0 -35
  115. package/dist/pageobjects/ide/PreviewWidget.d.ts.map +0 -1
  116. package/dist/pageobjects/ide/ProjectTree.d.ts +0 -53
  117. package/dist/pageobjects/ide/ProjectTree.d.ts.map +0 -1
  118. package/dist/pageobjects/ide/QuickOpenContainer.d.ts +0 -20
  119. package/dist/pageobjects/ide/QuickOpenContainer.d.ts.map +0 -1
  120. package/dist/pageobjects/ide/RightToolBar.d.ts +0 -8
  121. package/dist/pageobjects/ide/RightToolBar.d.ts.map +0 -1
  122. package/dist/pageobjects/ide/Terminal.d.ts +0 -36
  123. package/dist/pageobjects/ide/Terminal.d.ts.map +0 -1
  124. package/dist/pageobjects/ide/TopMenu.d.ts +0 -28
  125. package/dist/pageobjects/ide/TopMenu.d.ts.map +0 -1
  126. package/dist/pageobjects/ide/plugins/GitHubPullRequestPlugin.d.ts +0 -36
  127. package/dist/pageobjects/ide/plugins/GitHubPullRequestPlugin.d.ts.map +0 -1
  128. package/dist/pageobjects/ide/plugins/GitPlugin.d.ts +0 -35
  129. package/dist/pageobjects/ide/plugins/GitPlugin.d.ts.map +0 -1
  130. package/dist/pageobjects/ide/plugins/KubernetesPlugin.d.ts +0 -32
  131. package/dist/pageobjects/ide/plugins/KubernetesPlugin.d.ts.map +0 -1
  132. package/dist/pageobjects/ide/plugins/OpenshiftPlugin.d.ts +0 -38
  133. package/dist/pageobjects/ide/plugins/OpenshiftPlugin.d.ts.map +0 -1
  134. package/dist/pageobjects/ide/plugins/PluginsView.d.ts +0 -43
  135. package/dist/pageobjects/ide/plugins/PluginsView.d.ts.map +0 -1
  136. package/dist/pageobjects/login/ICheLoginPage.d.ts +0 -13
  137. package/dist/pageobjects/login/ICheLoginPage.d.ts.map +0 -1
  138. package/dist/pageobjects/login/IOcpLoginPage.d.ts +0 -13
  139. package/dist/pageobjects/login/IOcpLoginPage.d.ts.map +0 -1
  140. package/dist/pageobjects/login/MultiUserLoginPage.d.ts +0 -18
  141. package/dist/pageobjects/login/MultiUserLoginPage.d.ts.map +0 -1
  142. package/dist/pageobjects/login/OcpUserLoginPage.d.ts +0 -18
  143. package/dist/pageobjects/login/OcpUserLoginPage.d.ts.map +0 -1
  144. package/dist/pageobjects/login/RegularUserOcpCheLoginPage.d.ts +0 -20
  145. package/dist/pageobjects/login/RegularUserOcpCheLoginPage.d.ts.map +0 -1
  146. package/dist/pageobjects/login/UpdateAccountInformationPage.d.ts +0 -24
  147. package/dist/pageobjects/login/UpdateAccountInformationPage.d.ts.map +0 -1
  148. package/dist/pageobjects/openshift/CheLoginPage.d.ts +0 -27
  149. package/dist/pageobjects/openshift/CheLoginPage.d.ts.map +0 -1
  150. package/dist/pageobjects/openshift/OcpLoginPage.d.ts +0 -30
  151. package/dist/pageobjects/openshift/OcpLoginPage.d.ts.map +0 -1
  152. package/dist/pageobjects/third-parties/GitLoginPage.d.ts +0 -27
  153. package/dist/pageobjects/third-parties/GitLoginPage.d.ts.map +0 -1
  154. package/dist/pageobjects/third-parties/GitOauthAppsSettings.d.ts +0 -33
  155. package/dist/pageobjects/third-parties/GitOauthAppsSettings.d.ts.map +0 -1
  156. package/dist/tests/devfiles/CSlashCPlusPlus.spec.d.ts +0 -12
  157. package/dist/tests/devfiles/CSlashCPlusPlus.spec.d.ts.map +0 -1
  158. package/dist/tests/devfiles/DevfileSmoke.spec.d.ts +0 -11
  159. package/dist/tests/devfiles/DevfileSmoke.spec.d.ts.map +0 -1
  160. package/dist/tests/devfiles/DotNetCore.spec.d.ts +0 -12
  161. package/dist/tests/devfiles/DotNetCore.spec.d.ts.map +0 -1
  162. package/dist/tests/devfiles/Go.spec.d.ts +0 -2
  163. package/dist/tests/devfiles/Go.spec.d.ts.map +0 -1
  164. package/dist/tests/devfiles/JavaMaven.spec.d.ts +0 -11
  165. package/dist/tests/devfiles/JavaMaven.spec.d.ts.map +0 -1
  166. package/dist/tests/devfiles/JavaSpringBoot.spec.d.ts +0 -11
  167. package/dist/tests/devfiles/JavaSpringBoot.spec.d.ts.map +0 -1
  168. package/dist/tests/devfiles/JavaVertx.spec.d.ts +0 -11
  169. package/dist/tests/devfiles/JavaVertx.spec.d.ts.map +0 -1
  170. package/dist/tests/devfiles/NodeJS.spec.d.ts +0 -2
  171. package/dist/tests/devfiles/NodeJS.spec.d.ts.map +0 -1
  172. package/dist/tests/devfiles/PHPSimple.spec.d.ts +0 -12
  173. package/dist/tests/devfiles/PHPSimple.spec.d.ts.map +0 -1
  174. package/dist/tests/devfiles/Python.spec.d.ts +0 -2
  175. package/dist/tests/devfiles/Python.spec.d.ts.map +0 -1
  176. package/dist/tests/devfiles/PythonDjango.spec.d.ts +0 -2
  177. package/dist/tests/devfiles/PythonDjango.spec.d.ts.map +0 -1
  178. package/dist/tests/devfiles/Quarkus.spec.d.ts +0 -2
  179. package/dist/tests/devfiles/Quarkus.spec.d.ts.map +0 -1
  180. package/dist/tests/devfiles/Scala.spec.d.ts +0 -11
  181. package/dist/tests/devfiles/Scala.spec.d.ts.map +0 -1
  182. package/dist/tests/e2e/FactoryUrl.spec.d.ts +0 -2
  183. package/dist/tests/e2e/FactoryUrl.spec.d.ts.map +0 -1
  184. package/dist/tests/e2e/GitPublishBranch.spec.d.ts +0 -11
  185. package/dist/tests/e2e/GitPublishBranch.spec.d.ts.map +0 -1
  186. package/dist/tests/e2e/GitSelfSignCert.spec.d.ts +0 -11
  187. package/dist/tests/e2e/GitSelfSignCert.spec.d.ts.map +0 -1
  188. package/dist/tests/e2e/GitSsh.spec.d.ts +0 -11
  189. package/dist/tests/e2e/GitSsh.spec.d.ts.map +0 -1
  190. package/dist/tests/e2e/OpenshiftConnector.spec.d.ts +0 -11
  191. package/dist/tests/e2e/OpenshiftConnector.spec.d.ts.map +0 -1
  192. package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.d.ts +0 -2
  193. package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.d.ts.map +0 -1
  194. package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.d.ts +0 -2
  195. package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.d.ts.map +0 -1
  196. package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.d.ts +0 -2
  197. package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.d.ts.map +0 -1
  198. package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.d.ts +0 -2
  199. package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.d.ts.map +0 -1
  200. package/dist/tests/e2e_happy_path/HappyPath.spec.d.ts +0 -11
  201. package/dist/tests/e2e_happy_path/HappyPath.spec.d.ts.map +0 -1
  202. package/dist/tests/intelij/IntelijOpenWorkspace.spec.d.ts +0 -11
  203. package/dist/tests/intelij/IntelijOpenWorkspace.spec.d.ts.map +0 -1
  204. package/dist/tests/load_test/LoadTest.spec.d.ts +0 -11
  205. package/dist/tests/load_test/LoadTest.spec.d.ts.map +0 -1
  206. package/dist/tests/login/LinkCheAndOcpUsers.spec.d.ts +0 -11
  207. package/dist/tests/login/LinkCheAndOcpUsers.spec.d.ts.map +0 -1
  208. package/dist/tests/login/Login.spec.d.ts +0 -11
  209. package/dist/tests/login/Login.spec.d.ts.map +0 -1
  210. package/dist/tests/plugins/GitHubPullRequestPlugin.spec.d.ts +0 -11
  211. package/dist/tests/plugins/GitHubPullRequestPlugin.spec.d.ts.map +0 -1
  212. package/dist/tests/plugins/InstallPluginUsingUI.spec.d.ts +0 -11
  213. package/dist/tests/plugins/InstallPluginUsingUI.spec.d.ts.map +0 -1
  214. package/dist/tests/plugins/JavaPlugin.spec.d.ts +0 -2
  215. package/dist/tests/plugins/JavaPlugin.spec.d.ts.map +0 -1
  216. package/dist/tests/plugins/PhpPlugin.spec.d.ts +0 -2
  217. package/dist/tests/plugins/PhpPlugin.spec.d.ts.map +0 -1
  218. package/dist/tests/plugins/PythonPlugin.spec.d.ts +0 -11
  219. package/dist/tests/plugins/PythonPlugin.spec.d.ts.map +0 -1
  220. package/dist/tests/plugins/TypescriptPlugin.spec.d.ts +0 -11
  221. package/dist/tests/plugins/TypescriptPlugin.spec.d.ts.map +0 -1
  222. package/dist/tests/plugins/VscodeKubernetesPlugin.spec.d.ts +0 -11
  223. package/dist/tests/plugins/VscodeKubernetesPlugin.spec.d.ts.map +0 -1
  224. package/dist/tests/plugins/VscodeShellcheckPlugin.spec.d.ts +0 -11
  225. package/dist/tests/plugins/VscodeShellcheckPlugin.spec.d.ts.map +0 -1
  226. package/dist/tests/plugins/VscodeValePlugin.spec.d.ts +0 -11
  227. package/dist/tests/plugins/VscodeValePlugin.spec.d.ts.map +0 -1
  228. package/dist/tests/plugins/VscodeXmlPlugin.spec.d.ts +0 -11
  229. package/dist/tests/plugins/VscodeXmlPlugin.spec.d.ts.map +0 -1
  230. package/dist/tests/plugins/VscodeYamlPlugin.spec.d.ts +0 -11
  231. package/dist/tests/plugins/VscodeYamlPlugin.spec.d.ts.map +0 -1
  232. package/dist/testsLibrary/CodeExecutionTests.d.ts +0 -49
  233. package/dist/testsLibrary/CodeExecutionTests.d.ts.map +0 -1
  234. package/dist/testsLibrary/LanguageServerTests.d.ts +0 -36
  235. package/dist/testsLibrary/LanguageServerTests.d.ts.map +0 -1
  236. package/dist/testsLibrary/ProjectAndFileTests.d.ts +0 -28
  237. package/dist/testsLibrary/ProjectAndFileTests.d.ts.map +0 -1
  238. package/dist/testsLibrary/WorkspaceHandlingTests.d.ts +0 -29
  239. package/dist/testsLibrary/WorkspaceHandlingTests.d.ts.map +0 -1
  240. package/dist/utils/AnimationChecker.d.ts +0 -16
  241. package/dist/utils/AnimationChecker.d.ts.map +0 -1
  242. package/dist/utils/BrowserTabsUtil.d.ts +0 -28
  243. package/dist/utils/BrowserTabsUtil.d.ts.map +0 -1
  244. package/dist/utils/DriverHelper.d.ts +0 -76
  245. package/dist/utils/DriverHelper.d.ts.map +0 -1
  246. package/dist/utils/KeycloackUrlHandler.d.ts +0 -15
  247. package/dist/utils/KeycloackUrlHandler.d.ts.map +0 -1
  248. package/dist/utils/Logger.d.ts +0 -39
  249. package/dist/utils/Logger.d.ts.map +0 -1
  250. package/dist/utils/PreferencesHandler.d.ts +0 -52
  251. package/dist/utils/PreferencesHandler.d.ts.map +0 -1
  252. package/dist/utils/Sanitizer.d.ts +0 -13
  253. package/dist/utils/Sanitizer.d.ts.map +0 -1
  254. package/dist/utils/ScreenCatcher.d.ts +0 -12
  255. package/dist/utils/ScreenCatcher.d.ts.map +0 -1
  256. package/dist/utils/VCS/CheGitApi.d.ts +0 -8
  257. package/dist/utils/VCS/CheGitApi.d.ts.map +0 -1
  258. package/dist/utils/VCS/github/GitHubUtil.d.ts +0 -15
  259. package/dist/utils/VCS/github/GitHubUtil.d.ts.map +0 -1
  260. package/dist/utils/WorkspaceNameHandler.d.ts +0 -17
  261. package/dist/utils/WorkspaceNameHandler.d.ts.map +0 -1
  262. package/dist/utils/requestHandlers/CheApiRequestHandler.d.ts +0 -28
  263. package/dist/utils/requestHandlers/CheApiRequestHandler.d.ts.map +0 -1
  264. package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.d.ts +0 -18
  265. package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.d.ts.map +0 -1
  266. package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.d.ts +0 -14
  267. package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.d.ts.map +0 -1
  268. package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.d.ts +0 -5
  269. package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.d.ts.map +0 -1
  270. package/dist/utils/requestHandlers/tokens/ITokenHandler.d.ts +0 -13
  271. package/dist/utils/requestHandlers/tokens/ITokenHandler.d.ts.map +0 -1
  272. package/dist/utils/workspace/ITestWorkspaceUtil.d.ts +0 -25
  273. package/dist/utils/workspace/ITestWorkspaceUtil.d.ts.map +0 -1
  274. package/dist/utils/workspace/TestWorkspaceUtil.d.ts +0 -34
  275. package/dist/utils/workspace/TestWorkspaceUtil.d.ts.map +0 -1
  276. package/dist/utils/workspace/WorkspaceStatus.d.ts +0 -15
  277. package/dist/utils/workspace/WorkspaceStatus.d.ts.map +0 -1
  278. package/mocha-all-devfiles.opts +0 -8
  279. package/mocha-all-factories.opts +0 -8
  280. package/mocha-all-plugins.opts +0 -7
  281. package/mocha-connector.opts +0 -7
  282. package/mocha-devworkspace-happy-path.opts +0 -7
  283. package/mocha-factory.opts +0 -7
  284. package/mocha-git-publish-branch.opts +0 -7
  285. package/mocha-git-self-sign-cert.opts +0 -7
  286. package/mocha-git-ssh.opts +0 -7
  287. package/mocha-happy-path.opts +0 -8
  288. package/mocha-java-vertx.opts +0 -7
  289. package/mocha-load.opts +0 -7
  290. package/mocha-single-devfile.opts +0 -6
  291. package/mocha-wkspc-creation-and-ls.opts +0 -7
  292. package/mocha.intelij.opts +0 -7
  293. package/mocha.ocp.link.opts +0 -6
  294. package/mocha.opts +0 -7
  295. package/mocha.single.plugin.opts +0 -5
@@ -0,0 +1,9 @@
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",
8
+ "spec": "dist/tests/e2e/OpenshiftConnector.spec.js"
9
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "timeout": "2200000",
3
+ "reporter": "dist/driver/CheReporter.js",
4
+ "ui": "tdd",
5
+ "full-trace": true,
6
+ "require": "source-map-support/register",
7
+ "spec": [
8
+ "dist/tests/login/Login.spec.js",
9
+ "dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js"
10
+ ]
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "timeout": "2200000",
3
+ "reporter": "dist/driver/CheReporter.js",
4
+ "ui": "tdd",
5
+ "full-trace": true,
6
+ "require": "source-map-support/register",
7
+ "spec": [
8
+ "dist/tests/login/Login.spec.js",
9
+ "dist/tests/e2e/FactoryUrl.spec.js"
10
+ ]
11
+ }
@@ -0,0 +1,11 @@
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",
8
+ "spec": [
9
+ "dist/tests/e2e/GitPublishBranch.spec.js"
10
+ ]
11
+ }
@@ -0,0 +1,11 @@
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",
8
+ "spec": [
9
+ "dist/tests/e2e/GitSelfSignCert.spec.js"
10
+ ]
11
+ }
@@ -0,0 +1,11 @@
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",
8
+ "spec": [
9
+ "dist/tests/e2e/GitSsh.spec.js"
10
+ ]
11
+ }
@@ -0,0 +1,12 @@
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",
8
+ "spec": [
9
+ "dist/tests/login/Login.spec.js",
10
+ "dist/tests/e2e_happy_path/HappyPath.spec.js"
11
+ ]
12
+ }
@@ -0,0 +1,9 @@
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/devfiles/JavaVertx.spec.js"]
9
+ }
@@ -0,0 +1,9 @@
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/load_test/LoadTest.spec.js"]
9
+ }
@@ -0,0 +1,8 @@
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"
8
+ }
@@ -0,0 +1,9 @@
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/WorkspaceCreationAndLsInitialization.spec.js"]
9
+ }
@@ -0,0 +1,9 @@
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"]
9
+ }
package/mocha.json ADDED
@@ -0,0 +1,8 @@
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/*.spec.js"]
8
+ }
@@ -0,0 +1,8 @@
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"]
8
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "timeout": "1200000",
3
+ "reporter": "dist/driver/CheReporter.js",
4
+ "ui": "tdd",
5
+ "bail": true,
6
+ "full-trace": true
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-che/che-e2e",
3
- "version": "7.39.0",
3
+ "version": "7.40.1-dev-c99b14e",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -37,10 +37,10 @@
37
37
  "@types/node": "11.13.4",
38
38
  "@types/rimraf": "2.0.2",
39
39
  "@types/selenium-webdriver": "3.0.16",
40
- "axios": "0.21.1",
40
+ "axios": "0.21.2",
41
41
  "chai": "4.2.0",
42
42
  "chromedriver": "95.0.0",
43
- "mocha": "7.1.1",
43
+ "mocha": "^9.1.3",
44
44
  "rimraf": "2.6.2",
45
45
  "selenium-webdriver": "3.6.0",
46
46
  "ts-node": "8.0.3",
@@ -49,7 +49,7 @@
49
49
  "typescript": "3.9.9"
50
50
  },
51
51
  "dependencies": {
52
- "@eclipse-che/api": "7.38.1",
52
+ "@eclipse-che/api": "latest",
53
53
  "inversify": "5.0.1",
54
54
  "reflect-metadata": "0.1.13"
55
55
  },
@@ -325,38 +325,38 @@ export class Editor {
325
325
  await this.performKeyCombination(editorTabTitle, text);
326
326
  }
327
327
 
328
- async waitErrorInLine(lineNumber: number, timeout: number = TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT) {
328
+ async waitErrorInLine(lineNumber: number, fileName: string, timeout: number = TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT) {
329
329
  Logger.debug(`Editor.waitErrorInLine line: "${lineNumber}"`);
330
330
 
331
- const errorInLineLocator: By = await this.getErrorInLineLocator(lineNumber);
331
+ const errorInLineLocator: By = await this.getErrorInLineLocator(lineNumber, fileName);
332
332
  await this.driverHelper.waitVisibility(errorInLineLocator, timeout);
333
333
  }
334
334
 
335
- async waitErrorInLineDisappearance(lineNumber: number, timeout: number = TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT) {
335
+ async waitErrorInLineDisappearance(lineNumber: number, fileName: string, timeout: number = TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT) {
336
336
  Logger.debug(`Editor.waitErrorInLineDisappearance line: "${lineNumber}"`);
337
337
 
338
- const errorInLineLocator: By = await this.getErrorInLineLocator(lineNumber);
338
+ const errorInLineLocator: By = await this.getErrorInLineLocator(lineNumber, fileName);
339
339
  await this.driverHelper.waitDisappearanceWithTimeout(errorInLineLocator, timeout);
340
340
  }
341
341
 
342
- async waitWarningInLine(lineNumber: number, timeout: number = TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT) {
342
+ async waitWarningInLine(lineNumber: number, fileName: string, timeout: number = TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT) {
343
343
  Logger.debug(`Editor.waitWarningInLine line: "${lineNumber}"`);
344
344
 
345
- const warningInLineLocator: By = await this.getWarningInLineLocator(lineNumber);
345
+ const warningInLineLocator: By = await this.getWarningInLineLocator(lineNumber, fileName);
346
346
  await this.driverHelper.waitVisibility(warningInLineLocator, timeout);
347
347
  }
348
348
 
349
- async waitInfoInLine(lineNumber: number, timeout: number = TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT) {
349
+ async waitInfoInLine(lineNumber: number, fileName: string, timeout: number = TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT) {
350
350
  Logger.debug(`Editor.waitInfoInLine line: "${lineNumber}"`);
351
351
 
352
- const infoInLineLocator: By = await this.getInfoInLineLocator(lineNumber);
352
+ const infoInLineLocator: By = await this.getInfoInLineLocator(lineNumber, fileName);
353
353
  await this.driverHelper.waitVisibility(infoInLineLocator, timeout);
354
354
  }
355
355
 
356
- async waitWarningInLineDisappearance(lineNumber: number, timeout: number = TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT) {
356
+ async waitWarningInLineDisappearance(lineNumber: number, fileName: string, timeout: number = TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT) {
357
357
  Logger.debug(`Editor.waitWarningInLineDisappearance line: "${lineNumber}"`);
358
358
 
359
- const warningInLineLocator: By = await this.getWarningInLineLocator(lineNumber);
359
+ const warningInLineLocator: By = await this.getWarningInLineLocator(lineNumber, fileName);
360
360
  await this.driverHelper.waitDisappearanceWithTimeout(warningInLineLocator, timeout);
361
361
  }
362
362
 
@@ -405,10 +405,11 @@ export class Editor {
405
405
  }
406
406
  }
407
407
 
408
- async getLineYCoordinates(lineNumber: number): Promise<number> {
408
+ async getLineYCoordinates(lineNumber: number, fileName: string): Promise<number> {
409
409
  Logger.debug(`Editor.getLineYCoordinates line: "${lineNumber}"`);
410
410
 
411
- const lineNumberLocator: By = By.xpath(`//div[contains(@class, 'line-numbers') and text()='${lineNumber}']` +
411
+ const lineNumberLocator: By = By.xpath(`//div[contains(@data-uri, '${fileName}')]` +
412
+ `//div[contains(@class, 'line-numbers') and text()='${lineNumber}']` +
412
413
  `//parent::div[contains(@style, 'position')]`);
413
414
  let elementStyleValue: string = await this.driverHelper.waitAndGetElementAttribute(lineNumberLocator, 'style', TimeoutConstants.TS_SELENIUM_CLICK_ON_VISIBLE_ITEM);
414
415
 
@@ -422,10 +423,10 @@ export class Editor {
422
423
  return lineYCoordinate;
423
424
  }
424
425
 
425
- async clickOnLineAndChar(line: number, char: number) {
426
+ async clickOnLineAndChar(line: number, char: number, fileName: string) {
426
427
  Logger.debug(`Editor.clickOnLineAndChar line: "${line}" char: "${char}"`);
427
428
 
428
- const yPosition: number = await this.getLineYCoordinates(line) + Editor.ADDITIONAL_SHIFTING_TO_Y;
429
+ const yPosition: number = await this.getLineYCoordinates(line, fileName) + Editor.ADDITIONAL_SHIFTING_TO_Y;
429
430
  const xPosition: number = char + Editor.ADDITIONAL_SHIFTING_TO_X;
430
431
 
431
432
  new ActionSequence(this.driverHelper.getDriver()).
@@ -434,10 +435,10 @@ export class Editor {
434
435
  perform();
435
436
  }
436
437
 
437
- async goToDefinitionWithMouseClicking(line: number, char: number) {
438
+ async goToDefinitionWithMouseClicking(line: number, char: number, fileName: string) {
438
439
  Logger.debug(`Editor.goToDefinitionWithMouseClicking line: "${line}" char: "${char}"`);
439
440
 
440
- const yPosition: number = await this.getLineYCoordinates(line) + Editor.ADDITIONAL_SHIFTING_TO_Y;
441
+ const yPosition: number = await this.getLineYCoordinates(line, fileName) + Editor.ADDITIONAL_SHIFTING_TO_Y;
441
442
 
442
443
  new ActionSequence(this.driverHelper.getDriver()).
443
444
  keyDown(Key.CONTROL).
@@ -447,10 +448,10 @@ export class Editor {
447
448
  perform();
448
449
  }
449
450
 
450
- async mouseRightButtonClick(line: number, char: number) {
451
+ async mouseRightButtonClick(line: number, char: number, fileName: string) {
451
452
  Logger.debug(`Editor.mouseRightButtonClick line: "${line}" char: "${char}"`);
452
453
 
453
- const yPosition: number = await this.getLineYCoordinates(line) + Editor.ADDITIONAL_SHIFTING_TO_Y;
454
+ const yPosition: number = await this.getLineYCoordinates(line, fileName) + Editor.ADDITIONAL_SHIFTING_TO_Y;
454
455
 
455
456
  new ActionSequence(this.driverHelper.getDriver()).
456
457
  mouseMove({ x: char + Editor.ADDITIONAL_SHIFTING_TO_X, y: yPosition }).
@@ -503,20 +504,20 @@ export class Editor {
503
504
  return `//li[contains(@class, 'p-TabBar-tab')]//div[text()='${tabTitle}']`;
504
505
  }
505
506
 
506
- private async getErrorInLineLocator(lineNumber: number): Promise<By> {
507
- const lineYCoordinates: number = await this.getLineYCoordinates(lineNumber);
507
+ private async getErrorInLineLocator(lineNumber: number, fileName: string): Promise<By> {
508
+ const lineYCoordinates: number = await this.getLineYCoordinates(lineNumber, fileName);
508
509
 
509
510
  return By.xpath(`//div[contains(@style, 'top:${lineYCoordinates}px')]//div[contains(@class, 'squiggly-error')]`);
510
511
  }
511
512
 
512
- private async getWarningInLineLocator(lineNumber: number): Promise<By> {
513
- const lineYCoordinates: number = await this.getLineYCoordinates(lineNumber);
513
+ private async getWarningInLineLocator(lineNumber: number, fileName: string): Promise<By> {
514
+ const lineYCoordinates: number = await this.getLineYCoordinates(lineNumber, fileName);
514
515
 
515
516
  return By.xpath(`//div[contains(@style, 'top:${lineYCoordinates}px')]//div[contains(@class, 'squiggly-warning')]`);
516
517
  }
517
518
 
518
- private async getInfoInLineLocator(lineNumber: number): Promise<By> {
519
- const lineYCoordinates: number = await this.getLineYCoordinates(lineNumber);
519
+ private async getInfoInLineLocator(lineNumber: number, fileName: string): Promise<By> {
520
+ const lineYCoordinates: number = await this.getLineYCoordinates(lineNumber, fileName);
520
521
 
521
522
  return By.xpath(`//div[contains(@style, 'top:${lineYCoordinates}px')]//div[contains(@class, 'squiggly-info')]`);
522
523
  }
@@ -109,16 +109,16 @@ suite('Workspace creation via factory url', async () => {
109
109
  await editor.type(javaFileName, textForErrorDisplaying, 30);
110
110
 
111
111
  try {
112
- await editor.waitErrorInLine(30, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT);
112
+ await editor.waitErrorInLine(30, javaFileName, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT);
113
113
  } catch (err) {
114
114
  Logger.debug('Workaround for the https://github.com/eclipse/che/issues/18974.');
115
115
  await browserTabsUtil.refreshPage();
116
116
  await ide.waitAndSwitchToIdeFrame();
117
117
  await ide.waitIde();
118
- await editor.waitErrorInLine(30, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT * 2);
118
+ await editor.waitErrorInLine(30, javaFileName, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT * 2);
119
119
  }
120
120
  await editor.performKeyCombination(javaFileName, Key.chord(Key.BACK_SPACE));
121
- await editor.waitErrorInLineDisappearance(30);
121
+ await editor.waitErrorInLineDisappearance(30, javaFileName);
122
122
  });
123
123
 
124
124
  test('Suggestion', async () => {
@@ -122,17 +122,17 @@ suite('Language server validation', async () => {
122
122
  await editor.type(javaFileName, textForErrorDisplaying, 30);
123
123
 
124
124
  try {
125
- await editor.waitErrorInLine(30, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT);
125
+ await editor.waitErrorInLine(30, javaFileName, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT);
126
126
  } catch (err) {
127
127
  Logger.debug('Workaround for the https://github.com/eclipse/che/issues/18974.');
128
128
  await browserTabsUtil.refreshPage();
129
129
  await ide.waitAndSwitchToIdeFrame();
130
130
  await ide.waitIde();
131
- await editor.waitErrorInLine(30, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT * 2);
131
+ await editor.waitErrorInLine(30, javaFileName, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT * 2);
132
132
  }
133
133
 
134
134
  await editor.performKeyCombination(javaFileName, Key.chord(Key.BACK_SPACE));
135
- await editor.waitErrorInLineDisappearance(30);
135
+ await editor.waitErrorInLineDisappearance(30, javaFileName);
136
136
  });
137
137
 
138
138
  test('Suggestion', async () => {
@@ -81,9 +81,9 @@ suite(`The 'JavaPlugin' test`, async () => {
81
81
  test('Error highlighting', async () => {
82
82
  const textForErrorDisplaying: string = '$';
83
83
  await editor.type(tabTitle, textForErrorDisplaying, 10);
84
- await editor.waitErrorInLine(10, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT);
84
+ await editor.waitErrorInLine(10, tabTitle, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT);
85
85
  await editor.performKeyCombination(tabTitle, Key.chord(Key.BACK_SPACE));
86
- await editor.waitErrorInLineDisappearance(10);
86
+ await editor.waitErrorInLineDisappearance(10, tabTitle);
87
87
  });
88
88
 
89
89
  test('Codenavigation', async () => {
@@ -77,9 +77,9 @@ suite(`The 'PhpPlugin' tests`, async () => {
77
77
  test('Error highlighting', async () => {
78
78
  const textForErrorDisplaying: string = '*';
79
79
  await editor.type(tabTitle, textForErrorDisplaying, 13);
80
- await editor.waitErrorInLine(13, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT);
80
+ await editor.waitErrorInLine(13, tabTitle, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT);
81
81
  await editor.type(tabTitle, Key.chord(Key.DELETE), 13);
82
- await editor.waitErrorInLineDisappearance(13);
82
+ await editor.waitErrorInLineDisappearance(13, tabTitle);
83
83
  });
84
84
  });
85
85
 
@@ -73,9 +73,9 @@ suite(`The 'PythonPlugin' test`, async () => {
73
73
  test('Error highlighting', async () => {
74
74
  const textForErrorDisplaying: string = 'err';
75
75
  await editor.type(tabTitle, textForErrorDisplaying, 7);
76
- await editor.waitErrorInLine(7, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT);
76
+ await editor.waitErrorInLine(7, tabTitle, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT);
77
77
  await editor.performKeyCombination(tabTitle, Key.chord(Key.BACK_SPACE, Key.BACK_SPACE, Key.BACK_SPACE));
78
- await editor.waitErrorInLineDisappearance(7);
78
+ await editor.waitErrorInLineDisappearance(7, tabTitle);
79
79
  });
80
80
  });
81
81
 
@@ -90,9 +90,9 @@ suite(`The 'TypescriptPlugin and Node-debug' tests`, async () => {
90
90
  test('Error highlighting', async () => {
91
91
  const textForErrorDisplaying: string = '//';
92
92
  await editor.type(tabTitle, textForErrorDisplaying, 5);
93
- await editor.waitErrorInLine(4, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT);
93
+ await editor.waitErrorInLine(4, tabTitle, TimeoutConstants.TS_ERROR_HIGHLIGHTING_TIMEOUT);
94
94
  await editor.type(tabTitle, Key.chord(Key.DELETE, Key.DELETE), 5);
95
- await editor.waitErrorInLineDisappearance(4);
95
+ await editor.waitErrorInLineDisappearance(4, tabTitle);
96
96
  });
97
97
 
98
98
  test('Codenavigation', async () => {
@@ -72,16 +72,16 @@ suite(`The 'VscodeShellcheckPlugin' test`, async () => {
72
72
 
73
73
  await projectTree.expandPathAndOpenFile(pathToFile, fileName);
74
74
  await editor.type(fileName, errorText, 4);
75
- await editor.waitErrorInLine(4);
75
+ await editor.waitErrorInLine(4, fileName);
76
76
  });
77
77
 
78
78
  test('Check errors highlighting disappearance', async () => {
79
79
  await editor.type(fileName, Key.DELETE, 4);
80
- await editor.waitErrorInLineDisappearance(4);
80
+ await editor.waitErrorInLineDisappearance(4, fileName);
81
81
  });
82
82
 
83
83
  test('Check warning highlighting', async () => {
84
- await editor.waitWarningInLine(5);
84
+ await editor.waitWarningInLine(5, fileName);
85
85
  });
86
86
 
87
87
  test('Uncomment the 4-th row', async () => {
@@ -89,7 +89,7 @@ suite(`The 'VscodeShellcheckPlugin' test`, async () => {
89
89
  });
90
90
 
91
91
  test('Check warning highlighting disappearance', async () => {
92
- await editor.waitWarningInLineDisappearance(5);
92
+ await editor.waitWarningInLineDisappearance(5, fileName);
93
93
  });
94
94
  });
95
95
 
@@ -64,7 +64,7 @@ suite('The "VscodeValePlugin" userstory', async () => {
64
64
  suite('Check the "vale" plugin', async () => {
65
65
  test('Check warning in the editor appearance', async () => {
66
66
  await projectTree.expandPathAndOpenFile(pathToFile, docFileName);
67
- await editor.waitInfoInLine(16);
67
+ await editor.waitInfoInLine(16,docFileName);
68
68
  });
69
69
 
70
70
  test('Open the "Problems" terminal tab', async () => {
@@ -69,12 +69,12 @@ suite('The "VscodeXmlPlugin" userstory', async () => {
69
69
  await projectTree.expandPathAndOpenFile(pathToFile, xmlFileName);
70
70
 
71
71
  await editor.type(xmlFileName, '\$\%\^\#', 16);
72
- await editor.waitErrorInLine(16);
72
+ await editor.waitErrorInLine(16, xmlFileName);
73
73
  });
74
74
 
75
75
  test('Check error disappearance', async () => {
76
76
  await editor.performKeyCombination(xmlFileName, Key.chord(Key.BACK_SPACE, Key.BACK_SPACE, Key.BACK_SPACE, Key.BACK_SPACE));
77
- await editor.waitErrorInLineDisappearance(16);
77
+ await editor.waitErrorInLineDisappearance(16, xmlFileName);
78
78
  });
79
79
 
80
80
  test('Check auto-close tags', async () => {
@@ -77,12 +77,12 @@ suite('The "VscodeYamlPlugin" userstory', async () => {
77
77
  await projectTree.expandPathAndOpenFile(pathToFile, yamlFileName);
78
78
 
79
79
  await editor.type(yamlFileName, Key.SPACE, 19);
80
- await editor.waitErrorInLine(19);
80
+ await editor.waitErrorInLine(19, yamlFileName);
81
81
  });
82
82
 
83
83
  test('Check error disappearance', async () => {
84
84
  await editor.performKeyCombination(yamlFileName, Key.BACK_SPACE);
85
- await editor.waitErrorInLineDisappearance(19);
85
+ await editor.waitErrorInLineDisappearance(19, yamlFileName);
86
86
  });
87
87
 
88
88
  test('To unformat the "yaml" file', async () => {
@@ -36,7 +36,7 @@ export class LanguageServerTests {
36
36
  test('Error highlighting', async () => {
37
37
  await this.editor.type(openedTab, textToWrite, line);
38
38
  try {
39
- await this.editor.waitErrorInLine(line);
39
+ await this.editor.waitErrorInLine(line, openedTab);
40
40
  } catch (err) {
41
41
  if (!(err instanceof error.TimeoutError)) {
42
42
  throw err;
@@ -45,7 +45,7 @@ export class LanguageServerTests {
45
45
  for (let i = 0; i < textToWrite.length; i++) {
46
46
  await this.editor.performKeyCombination(openedTab, Key.BACK_SPACE);
47
47
  }
48
- await this.editor.waitErrorInLineDisappearance(line);
48
+ await this.editor.waitErrorInLineDisappearance(line, openedTab);
49
49
  });
50
50
  }
51
51
 
@@ -109,7 +109,7 @@ export class DriverHelper {
109
109
  try {
110
110
  element = await this.driver.wait(until.elementLocated(elementLocator), polling);
111
111
  } catch (err) {
112
- if (i >= attempts) {
112
+ if (i >= attempts - 1) {
113
113
  Logger.error(`DriverHelper.waitVisibility - failed with exception, out of attempts - ${err}`);
114
114
  throw err;
115
115
  }
@@ -269,7 +269,7 @@ export class DriverHelper {
269
269
  try {
270
270
  element = await this.waitVisibility(elementLocator, polling);
271
271
  } catch (err) {
272
- if (i >= attempts) {
272
+ if (i >= attempts - 1) {
273
273
  Logger.error(`DriverHelper.waitAndClick - failed with exception, out of attempts - ${err}`);
274
274
  throw err;
275
275
  }
@@ -314,7 +314,7 @@ export class DriverHelper {
314
314
  try {
315
315
  element = await this.waitVisibility(elementLocator, polling);
316
316
  } catch (err) {
317
- if (i >= attempts) {
317
+ if (i >= attempts - 1) {
318
318
  Logger.error(`DriverHelper.waitAndGetElementAttribute - failed with exception, out of attempts - ${err}`);
319
319
  throw err;
320
320
  }
@@ -357,7 +357,7 @@ export class DriverHelper {
357
357
  try {
358
358
  element = await this.waitVisibility(elementLocator, polling);
359
359
  } catch (err) {
360
- if (i >= attempts) {
360
+ if (i >= attempts - 1) {
361
361
  Logger.error(`DriverHelper.waitAndGetCssValue - failed with exception, out of attempts - ${err}`);
362
362
  throw err;
363
363
  }
@@ -415,7 +415,7 @@ export class DriverHelper {
415
415
  try {
416
416
  element = await this.waitVisibility(elementLocator, polling);
417
417
  } catch (err) {
418
- if (i >= attempts) {
418
+ if (i >= attempts - 1) {
419
419
  Logger.error(`DriverHelper.type - failed with exception, out of attempts - ${err}`);
420
420
  throw err;
421
421
  }
@@ -457,7 +457,7 @@ export class DriverHelper {
457
457
  try {
458
458
  element = await this.waitPresence(elementLocator, polling);
459
459
  } catch (err) {
460
- if (i >= attempts) {
460
+ if (i >= attempts - 1) {
461
461
  Logger.error(`DriverHelper.typeToInvisible - failed with exception, out of attempts - ${err}`);
462
462
  throw err;
463
463
  }
@@ -499,7 +499,7 @@ export class DriverHelper {
499
499
  try {
500
500
  element = await this.waitVisibility(elementLocator, polling);
501
501
  } catch (err) {
502
- if (i >= attempts) {
502
+ if (i >= attempts - 1) {
503
503
  Logger.error(`DriverHelper.clear - failed with exception, out of attempts - ${err}`);
504
504
  throw err;
505
505
  }
@@ -541,7 +541,7 @@ export class DriverHelper {
541
541
  try {
542
542
  element = await this.waitPresence(elementLocator, polling);
543
543
  } catch (err) {
544
- if (i >= attempts) {
544
+ if (i >= attempts - 1) {
545
545
  Logger.error(`DriverHelper.clearInvisible - failed with exception, out of attempts - ${err}`);
546
546
  throw err;
547
547
  }
@@ -599,7 +599,7 @@ export class DriverHelper {
599
599
  try {
600
600
  element = await this.waitVisibility(elementLocator, polling);
601
601
  } catch (err) {
602
- if (i >= attempts) {
602
+ if (i >= attempts - 1) {
603
603
  Logger.error(`DriverHelper.waitAndGetText - failed with exception, out of attempts - ${err}`);
604
604
  throw err;
605
605
  }
@@ -702,7 +702,7 @@ export class DriverHelper {
702
702
  try {
703
703
  element = await this.waitPresence(elementLocator, polling);
704
704
  } catch (err) {
705
- if (i >= attempts) {
705
+ if (i >= attempts - 1) {
706
706
  Logger.error(`DriverHelper.scrollTo - failed with exception, out of attempts - ${err}`);
707
707
  throw err;
708
708
  }
@@ -73,6 +73,25 @@ export class GitHubUtil {
73
73
  }
74
74
  }
75
75
 
76
+ async deletePublicSshKeyByName(authToken: string, keyName: string) {
77
+ const gitHubApiSshURL: string = GitHubUtil.GITHUB_API_ENTRIPOINT_URL + 'user/keys';
78
+ const authHeader = { headers: { 'Authorization': 'token ' + authToken, 'Content-Type': 'application/json' } };
79
+ try {
80
+ const response = await axios.get(gitHubApiSshURL, authHeader);
81
+ const stringified = JSON.stringify(response.data);
82
+ const arrayOfPublicKeys = JSON.parse(stringified);
83
+ for (let entry of arrayOfPublicKeys) {
84
+ if (entry.title === keyName) {
85
+ this.removePublicSshKey(authToken, entry.id);
86
+ break;
87
+ }
88
+ }
89
+ } catch (error) {
90
+ console.error('Cannot delete the ' + keyName + ' public key from the GitHub account');
91
+ console.error(error);
92
+ throw error;
93
+ }
94
+ }
76
95
 
77
96
  async removeAllPublicSshKeys(authToken: string) {
78
97
  try {