@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.
- package/TestConstants.ts +6 -1
- package/build/dockerfiles/Dockerfile +4 -3
- package/driver/CheReporter.ts +4 -25
- package/index.ts +1 -0
- package/inversify.config.ts +2 -0
- package/inversify.types.ts +1 -0
- package/mocha-all-devfiles-che-code.json +12 -0
- package/mocha-all-devfiles-theia.json +13 -10
- package/mocha-all-factories-che-code.json +14 -0
- package/mocha-all-factories-theia.json +14 -11
- package/mocha-all-plugins-che-code.json +13 -0
- package/mocha-all-plugins-theia.json +13 -10
- package/mocha-che-code.json +12 -0
- package/mocha-connector-theia.json +10 -7
- package/mocha-devworkspace-happy-path-che-code.json +13 -0
- package/mocha-devworkspace-happy-path-theia.json +12 -9
- package/mocha-factory-che-code.json +13 -0
- package/mocha-factory-theia.json +12 -9
- package/mocha-git-publish-branch-theia.json +12 -9
- package/mocha-git-self-sign-cert-theia.json +12 -9
- package/mocha-git-ssh-theia.json +12 -9
- package/mocha-happy-path-che-code.json +14 -0
- package/mocha-happy-path-theia.json +13 -10
- package/mocha-java-maven.json +11 -7
- package/mocha-java-springboot-che-code.json +12 -0
- package/mocha-java-springboot-theia.json +11 -7
- package/mocha-java-vertx-che-code.json +12 -0
- package/mocha-java-vertx-theia.json +11 -7
- package/mocha-load-theia.json +10 -7
- package/mocha-scala.json +11 -7
- package/mocha-single-devfile.json +9 -6
- package/mocha-theia.json +10 -6
- package/mocha-ws-creation-and-ls-theia.json +10 -7
- package/mocha.intelij.json +11 -7
- package/mocha.ocp.link.json +9 -6
- package/mocha.single.plugin.json +6 -5
- package/package.json +13 -13
- package/pageobjects/dashboard/Workspaces.ts +10 -4
- package/pageobjects/ide/theia/Ide.ts +1 -1
- package/pageobjects/ide/theia/OpenEditors.ts +1 -1
- package/tests/MochaHooks.ts +47 -0
- package/tests/devfiles/che-code/EmptyWorkspace.spec.ts +14 -24
- package/tests/devfiles/theia/DotNetCore.spec.ts +1 -1
- package/tests/e2e/theia/FactoryUrl.spec.ts +1 -1
- package/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +1 -1
- package/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.ts +1 -1
- package/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.ts +1 -1
- package/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.ts +1 -1
- package/testsLibrary/che-code/ProjectAndFileTestsCheCode.ts +34 -0
- package/testsLibrary/theia/LanguageServerTestsTheia.ts +2 -2
- package/testsLibrary/theia/ProjectAndFileTestsTheia.ts +2 -2
- package/tslint.json +15 -12
- package/utils/VCS/github/GitHubUtil.ts +2 -2
- package/utils/workspace/ApiUrlResolver.ts +1 -1
- package/utils/workspace/ITestWorkspaceUtil.ts +12 -12
- package/dist/TestConstants.js +0 -240
- package/dist/TestConstants.js.map +0 -1
- package/dist/TimeoutConstants.js +0 -184
- package/dist/TimeoutConstants.js.map +0 -1
- package/dist/driver/CheReporter.js +0 -191
- package/dist/driver/CheReporter.js.map +0 -1
- package/dist/driver/ChromeDriver.js +0 -77
- package/dist/driver/ChromeDriver.js.map +0 -1
- package/dist/driver/IDriver.js +0 -3
- package/dist/driver/IDriver.js.map +0 -1
- package/dist/index.js +0 -93
- package/dist/index.js.map +0 -1
- package/dist/inversify.config.js +0 -130
- package/dist/inversify.config.js.map +0 -1
- package/dist/inversify.types.js +0 -74
- package/dist/inversify.types.js.map +0 -1
- package/dist/pageobjects/dashboard/CreateWorkspace.js +0 -106
- package/dist/pageobjects/dashboard/CreateWorkspace.js.map +0 -1
- package/dist/pageobjects/dashboard/Dashboard.js +0 -115
- package/dist/pageobjects/dashboard/Dashboard.js.map +0 -1
- package/dist/pageobjects/dashboard/Workspaces.js +0 -157
- package/dist/pageobjects/dashboard/Workspaces.js.map +0 -1
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js +0 -138
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js.map +0 -1
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js +0 -97
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js.map +0 -1
- package/dist/pageobjects/ide/theia/ContextMenu.js +0 -66
- package/dist/pageobjects/ide/theia/ContextMenu.js.map +0 -1
- package/dist/pageobjects/ide/theia/DebugView.js +0 -98
- package/dist/pageobjects/ide/theia/DebugView.js.map +0 -1
- package/dist/pageobjects/ide/theia/DialogWindow.js +0 -102
- package/dist/pageobjects/ide/theia/DialogWindow.js.map +0 -1
- package/dist/pageobjects/ide/theia/Editor.js +0 -463
- package/dist/pageobjects/ide/theia/Editor.js.map +0 -1
- package/dist/pageobjects/ide/theia/Ide.js +0 -336
- package/dist/pageobjects/ide/theia/Ide.js.map +0 -1
- package/dist/pageobjects/ide/theia/LeftToolBar.js +0 -81
- package/dist/pageobjects/ide/theia/LeftToolBar.js.map +0 -1
- package/dist/pageobjects/ide/theia/NavigationBar.js +0 -57
- package/dist/pageobjects/ide/theia/NavigationBar.js.map +0 -1
- package/dist/pageobjects/ide/theia/NotificationCenter.js +0 -76
- package/dist/pageobjects/ide/theia/NotificationCenter.js.map +0 -1
- package/dist/pageobjects/ide/theia/OpenDialogWidget.js +0 -100
- package/dist/pageobjects/ide/theia/OpenDialogWidget.js.map +0 -1
- package/dist/pageobjects/ide/theia/OpenEditors.js +0 -73
- package/dist/pageobjects/ide/theia/OpenEditors.js.map +0 -1
- package/dist/pageobjects/ide/theia/OpenWorkspaceWidget.js +0 -62
- package/dist/pageobjects/ide/theia/OpenWorkspaceWidget.js.map +0 -1
- package/dist/pageobjects/ide/theia/PreviewWidget.js +0 -134
- package/dist/pageobjects/ide/theia/PreviewWidget.js.map +0 -1
- package/dist/pageobjects/ide/theia/ProjectTree.js +0 -282
- package/dist/pageobjects/ide/theia/ProjectTree.js.map +0 -1
- package/dist/pageobjects/ide/theia/QuickOpenContainer.js +0 -70
- package/dist/pageobjects/ide/theia/QuickOpenContainer.js.map +0 -1
- package/dist/pageobjects/ide/theia/RightToolBar.js +0 -51
- package/dist/pageobjects/ide/theia/RightToolBar.js.map +0 -1
- package/dist/pageobjects/ide/theia/Terminal.js +0 -184
- package/dist/pageobjects/ide/theia/Terminal.js.map +0 -1
- package/dist/pageobjects/ide/theia/TopMenu.js +0 -109
- package/dist/pageobjects/ide/theia/TopMenu.js.map +0 -1
- package/dist/pageobjects/ide/theia/plugins/GitHubPullRequestPlugin.js +0 -128
- package/dist/pageobjects/ide/theia/plugins/GitHubPullRequestPlugin.js.map +0 -1
- package/dist/pageobjects/ide/theia/plugins/GitPlugin.js +0 -120
- package/dist/pageobjects/ide/theia/plugins/GitPlugin.js.map +0 -1
- package/dist/pageobjects/ide/theia/plugins/KubernetesPlugin.js +0 -107
- package/dist/pageobjects/ide/theia/plugins/KubernetesPlugin.js.map +0 -1
- package/dist/pageobjects/ide/theia/plugins/OpenshiftPlugin.js +0 -99
- package/dist/pageobjects/ide/theia/plugins/OpenshiftPlugin.js.map +0 -1
- package/dist/pageobjects/ide/theia/plugins/PluginsView.js +0 -166
- package/dist/pageobjects/ide/theia/plugins/PluginsView.js.map +0 -1
- package/dist/pageobjects/login/ICheLoginPage.js +0 -12
- package/dist/pageobjects/login/ICheLoginPage.js.map +0 -1
- package/dist/pageobjects/login/IOcpLoginPage.js +0 -12
- package/dist/pageobjects/login/IOcpLoginPage.js.map +0 -1
- package/dist/pageobjects/login/MultiUserLoginPage.js +0 -49
- package/dist/pageobjects/login/MultiUserLoginPage.js.map +0 -1
- package/dist/pageobjects/login/OcpUserLoginPage.js +0 -53
- package/dist/pageobjects/login/OcpUserLoginPage.js.map +0 -1
- package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js +0 -86
- package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js.map +0 -1
- package/dist/pageobjects/login/UpdateAccountInformationPage.js +0 -74
- package/dist/pageobjects/login/UpdateAccountInformationPage.js.map +0 -1
- package/dist/pageobjects/openshift/CheLoginPage.js +0 -88
- package/dist/pageobjects/openshift/CheLoginPage.js.map +0 -1
- package/dist/pageobjects/openshift/OcpLoginPage.js +0 -106
- package/dist/pageobjects/openshift/OcpLoginPage.js.map +0 -1
- package/dist/pageobjects/third-parties/GitLoginPage.js +0 -85
- package/dist/pageobjects/third-parties/GitLoginPage.js.map +0 -1
- package/dist/pageobjects/third-parties/GitOauthAppsSettings.js +0 -110
- package/dist/pageobjects/third-parties/GitOauthAppsSettings.js.map +0 -1
- package/dist/tests/devfiles/che-code/EmptyWorkspace.spec.js +0 -61
- package/dist/tests/devfiles/che-code/EmptyWorkspace.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/CSlashCPlusPlus.spec.js +0 -73
- package/dist/tests/devfiles/theia/CSlashCPlusPlus.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/DevfileSmoke.spec.js +0 -47
- package/dist/tests/devfiles/theia/DevfileSmoke.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/DotNetCore.spec.js +0 -81
- package/dist/tests/devfiles/theia/DotNetCore.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/Go.spec.js +0 -72
- package/dist/tests/devfiles/theia/Go.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/JavaMaven.spec.js +0 -60
- package/dist/tests/devfiles/theia/JavaMaven.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/JavaSpringBoot.spec.js +0 -66
- package/dist/tests/devfiles/theia/JavaSpringBoot.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/JavaVertx.spec.js +0 -60
- package/dist/tests/devfiles/theia/JavaVertx.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/NodeJS.spec.js +0 -64
- package/dist/tests/devfiles/theia/NodeJS.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/PHPSimple.spec.js +0 -74
- package/dist/tests/devfiles/theia/PHPSimple.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/Python.spec.js +0 -58
- package/dist/tests/devfiles/theia/Python.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/PythonDjango.spec.js +0 -61
- package/dist/tests/devfiles/theia/PythonDjango.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/Quarkus.spec.js +0 -69
- package/dist/tests/devfiles/theia/Quarkus.spec.js.map +0 -1
- package/dist/tests/devfiles/theia/Scala.spec.js +0 -66
- package/dist/tests/devfiles/theia/Scala.spec.js.map +0 -1
- package/dist/tests/e2e/theia/FactoryUrl.spec.js +0 -40
- package/dist/tests/e2e/theia/FactoryUrl.spec.js.map +0 -1
- package/dist/tests/e2e/theia/GitPublishBranch.spec.js +0 -90
- package/dist/tests/e2e/theia/GitPublishBranch.spec.js.map +0 -1
- package/dist/tests/e2e/theia/GitSelfSignCert.spec.js +0 -90
- package/dist/tests/e2e/theia/GitSelfSignCert.spec.js.map +0 -1
- package/dist/tests/e2e/theia/GitSsh.spec.js +0 -120
- package/dist/tests/e2e/theia/GitSsh.spec.js.map +0 -1
- package/dist/tests/e2e/theia/OpenshiftConnector.spec.js +0 -124
- package/dist/tests/e2e/theia/OpenshiftConnector.spec.js.map +0 -1
- package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js +0 -50
- package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +0 -1
- package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.js +0 -48
- package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +0 -1
- package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js +0 -48
- package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +0 -1
- package/dist/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.js +0 -277
- package/dist/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.js.map +0 -1
- package/dist/tests/e2e_happy_path/theia/HappyPath.spec.js +0 -314
- package/dist/tests/e2e_happy_path/theia/HappyPath.spec.js.map +0 -1
- package/dist/tests/intelij/IntelijOpenWorkspace.spec.js +0 -39
- package/dist/tests/intelij/IntelijOpenWorkspace.spec.js.map +0 -1
- package/dist/tests/load_test/theia/LoadTest.spec.js +0 -41
- package/dist/tests/load_test/theia/LoadTest.spec.js.map +0 -1
- package/dist/tests/login/LinkCheAndOcpUsers.spec.js +0 -39
- package/dist/tests/login/LinkCheAndOcpUsers.spec.js.map +0 -1
- package/dist/tests/login/Login.spec.js +0 -28
- package/dist/tests/login/Login.spec.js.map +0 -1
- package/dist/tests/plugins/theia/GitHubPullRequestPlugin.spec.js +0 -117
- package/dist/tests/plugins/theia/GitHubPullRequestPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/theia/InstallPluginUsingUI.spec.js +0 -62
- package/dist/tests/plugins/theia/InstallPluginUsingUI.spec.js.map +0 -1
- package/dist/tests/plugins/theia/JavaPlugin.spec.js +0 -82
- package/dist/tests/plugins/theia/JavaPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/theia/PhpPlugin.spec.js +0 -96
- package/dist/tests/plugins/theia/PhpPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/theia/PythonPlugin.spec.js +0 -72
- package/dist/tests/plugins/theia/PythonPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/theia/TypescriptPlugin.spec.js +0 -135
- package/dist/tests/plugins/theia/TypescriptPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/theia/VscodeKubernetesPlugin.spec.js +0 -69
- package/dist/tests/plugins/theia/VscodeKubernetesPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/theia/VscodeShellcheckPlugin.spec.js +0 -82
- package/dist/tests/plugins/theia/VscodeShellcheckPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/theia/VscodeValePlugin.spec.js +0 -70
- package/dist/tests/plugins/theia/VscodeValePlugin.spec.js.map +0 -1
- package/dist/tests/plugins/theia/VscodeXmlPlugin.spec.js +0 -81
- package/dist/tests/plugins/theia/VscodeXmlPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/theia/VscodeYamlPlugin.spec.js +0 -78
- package/dist/tests/plugins/theia/VscodeYamlPlugin.spec.js.map +0 -1
- package/dist/testsLibrary/WorkspaceHandlingTests.js +0 -140
- package/dist/testsLibrary/WorkspaceHandlingTests.js.map +0 -1
- package/dist/testsLibrary/theia/CodeExecutionTestsTheia.js +0 -248
- package/dist/testsLibrary/theia/CodeExecutionTestsTheia.js.map +0 -1
- package/dist/testsLibrary/theia/LanguageServerTestsTheia.js +0 -230
- package/dist/testsLibrary/theia/LanguageServerTestsTheia.js.map +0 -1
- package/dist/testsLibrary/theia/ProjectAndFileTestsTheia.js +0 -133
- package/dist/testsLibrary/theia/ProjectAndFileTestsTheia.js.map +0 -1
- package/dist/utils/AnimationChecker.js +0 -45
- package/dist/utils/AnimationChecker.js.map +0 -1
- package/dist/utils/BrowserTabsUtil.js +0 -115
- package/dist/utils/BrowserTabsUtil.js.map +0 -1
- package/dist/utils/DriverHelper.js +0 -616
- package/dist/utils/DriverHelper.js.map +0 -1
- package/dist/utils/Logger.js +0 -84
- package/dist/utils/Logger.js.map +0 -1
- package/dist/utils/Sanitizer.js +0 -29
- package/dist/utils/Sanitizer.js.map +0 -1
- package/dist/utils/ScreenCatcher.js +0 -107
- package/dist/utils/ScreenCatcher.js.map +0 -1
- package/dist/utils/VCS/CheGitApi.js +0 -42
- package/dist/utils/VCS/CheGitApi.js.map +0 -1
- package/dist/utils/VCS/github/GitHubUtil.js +0 -126
- package/dist/utils/VCS/github/GitHubUtil.js.map +0 -1
- package/dist/utils/WorkspaceNameHandler.js +0 -60
- package/dist/utils/WorkspaceNameHandler.js.map +0 -1
- package/dist/utils/requestHandlers/CheApiRequestHandler.js +0 -126
- package/dist/utils/requestHandlers/CheApiRequestHandler.js.map +0 -1
- package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js +0 -49
- package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +0 -1
- package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.js +0 -12
- package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.js.map +0 -1
- package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.js +0 -50
- package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.js.map +0 -1
- package/dist/utils/requestHandlers/tokens/ITokenHandler.js +0 -12
- package/dist/utils/requestHandlers/tokens/ITokenHandler.js.map +0 -1
- package/dist/utils/theia/PreferencesHandlerTheia.js +0 -142
- package/dist/utils/theia/PreferencesHandlerTheia.js.map +0 -1
- package/dist/utils/workspace/ApiUrlResolver.js +0 -67
- package/dist/utils/workspace/ApiUrlResolver.js.map +0 -1
- package/dist/utils/workspace/ITestWorkspaceUtil.js +0 -12
- package/dist/utils/workspace/ITestWorkspaceUtil.js.map +0 -1
- package/dist/utils/workspace/TestWorkspaceUtil.js +0 -357
- package/dist/utils/workspace/TestWorkspaceUtil.js.map +0 -1
- package/dist/utils/workspace/WorkspaceStatus.js +0 -19
- package/dist/utils/workspace/WorkspaceStatus.js.map +0 -1
- package/mocha-all-factories-code.json +0 -11
- package/mocha-all-plugins-code.json +0 -10
- package/mocha-code.json +0 -8
- package/mocha-devworkspace-happy-path-code.json +0 -10
- package/mocha-factory-code.json +0 -10
- package/mocha-happy-path-code.json +0 -11
- package/mocha-java-springboot-code.json +0 -9
- package/mocha-java-vertx-code.json +0 -9
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
}
|
package/mocha.intelij.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
}
|
package/mocha.ocp.link.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
}
|
package/mocha.single.plugin.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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-
|
|
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": "^
|
|
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":
|
|
59
|
-
"typed-rest-client": "
|
|
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(
|
|
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
|
-
|
|
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)
|
|
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
|
|
17
|
-
import {
|
|
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
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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": [
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
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()
|
|
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)
|
|
15
|
+
waitWorkspaceStatus(namespace: string, workspaceName: string, expectedWorkspaceStatus: WorkspaceStatus): void;
|
|
16
16
|
|
|
17
|
-
stopWorkspaceByName(workspaceName: string)
|
|
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)
|
|
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)
|
|
27
|
+
stopAndDeleteWorkspaceByName(workspaceName: string): void;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Stop all run workspaces in the namespace
|
|
31
31
|
*/
|
|
32
|
-
stopAllRunningWorkspaces(namespace: string)
|
|
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)
|
|
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)
|
|
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()
|
|
52
|
+
cleanUpAllWorkspaces(): void;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* @deprecated Method deprecated. Works with CHE server only
|
|
56
56
|
*/
|
|
57
|
-
cleanUpRunningWorkspace(workspaceName: string)
|
|
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)
|
|
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)
|
|
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)
|
|
72
|
+
stopWorkspaceById(id: string): void;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* @deprecated Method deprecated. Works with CHE server only
|