@eclipse-che/che-e2e 7.62.0 → 7.63.0
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/configs/inversify.config.ts +88 -0
- package/{inversify.types.ts → configs/inversify.types.ts} +6 -9
- package/configs/mocharc.ts +21 -0
- package/{generateIndex.sh → configs/sh-scripts/generateIndex.sh} +8 -10
- package/{initDevfileTests.sh → configs/sh-scripts/initDevfileTests.sh} +18 -27
- package/{TestConstants.ts → constants/TestConstants.ts} +1 -1
- package/{TimeoutConstants.ts → constants/TimeoutConstants.ts} +1 -1
- package/dist/configs/inversify.config.js +81 -0
- package/dist/configs/inversify.config.js.map +1 -0
- package/dist/{inversify.types.js → configs/inversify.types.js} +5 -8
- package/dist/configs/inversify.types.js.map +1 -0
- package/dist/configs/mocharc.js +20 -0
- package/dist/configs/mocharc.js.map +1 -0
- package/dist/{TestConstants.js → constants/TestConstants.js} +1 -1
- package/dist/constants/TestConstants.js.map +1 -0
- package/dist/{TimeoutConstants.js → constants/TimeoutConstants.js} +1 -1
- package/dist/constants/TimeoutConstants.js.map +1 -0
- package/dist/driver/ChromeDriver.js +2 -2
- package/dist/driver/ChromeDriver.js.map +1 -1
- package/dist/pageobjects/dashboard/CreateWorkspace.js +4 -4
- package/dist/pageobjects/dashboard/CreateWorkspace.js.map +1 -1
- package/dist/pageobjects/dashboard/Dashboard.js +4 -4
- package/dist/pageobjects/dashboard/Dashboard.js.map +1 -1
- package/dist/pageobjects/dashboard/Workspaces.js +3 -3
- package/dist/pageobjects/dashboard/Workspaces.js.map +1 -1
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js +10 -8
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js.map +1 -1
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js +3 -3
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js.map +1 -1
- package/dist/pageobjects/login/ICheLoginPage.js +1 -1
- package/dist/pageobjects/login/IOcpLoginPage.js +1 -1
- package/dist/pageobjects/login/MultiUserLoginPage.js +3 -3
- package/dist/pageobjects/login/MultiUserLoginPage.js.map +1 -1
- package/dist/pageobjects/login/OcpUserLoginPage.js +3 -3
- package/dist/pageobjects/login/OcpUserLoginPage.js.map +1 -1
- package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js +4 -4
- package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js.map +1 -1
- package/dist/pageobjects/login/UpdateAccountInformationPage.js +2 -2
- package/dist/pageobjects/login/UpdateAccountInformationPage.js.map +1 -1
- package/dist/pageobjects/openshift/CheLoginPage.js +3 -3
- package/dist/pageobjects/openshift/CheLoginPage.js.map +1 -1
- package/dist/pageobjects/openshift/OcpLoginPage.js +4 -4
- package/dist/pageobjects/openshift/OcpLoginPage.js.map +1 -1
- package/dist/pageobjects/third-parties/GitLoginPage.js +4 -4
- package/dist/pageobjects/third-parties/GitLoginPage.js.map +1 -1
- package/dist/pageobjects/third-parties/GitOauthAppsSettings.js +3 -3
- package/dist/pageobjects/third-parties/GitOauthAppsSettings.js.map +1 -1
- package/dist/{tests → specs}/MochaHooks.js +32 -18
- package/dist/specs/MochaHooks.js.map +1 -0
- package/dist/{tests/devfiles/che-code → specs/devfiles}/EmptyWorkspace.spec.js +10 -11
- package/dist/specs/devfiles/EmptyWorkspace.spec.js.map +1 -0
- package/dist/{tests → specs}/login/LinkCheAndOcpUsers.spec.js +13 -12
- package/dist/specs/login/LinkCheAndOcpUsers.spec.js.map +1 -0
- package/dist/{utils/AnimationChecker.js → tests-library/LoginTests.js} +26 -18
- package/dist/tests-library/LoginTests.js.map +1 -0
- package/dist/{testsLibrary/che-code/ProjectAndFileTestsCheCode.js → tests-library/ProjectAndFileTests.js} +11 -11
- package/dist/tests-library/ProjectAndFileTests.js.map +1 -0
- package/dist/{testsLibrary → tests-library}/WorkspaceHandlingTests.js +4 -4
- package/dist/tests-library/WorkspaceHandlingTests.js.map +1 -0
- package/dist/utils/BrowserTabsUtil.js +3 -3
- package/dist/utils/BrowserTabsUtil.js.map +1 -1
- package/dist/{driver → utils}/CheReporter.js +6 -10
- package/dist/utils/CheReporter.js.map +1 -0
- package/dist/utils/DriverHelper.js +3 -3
- package/dist/utils/DriverHelper.js.map +1 -1
- package/dist/utils/Logger.js +2 -2
- package/dist/utils/Logger.js.map +1 -1
- package/dist/utils/Sanitizer.js +1 -1
- package/dist/utils/ScreenCatcher.js +7 -7
- package/dist/utils/ScreenCatcher.js.map +1 -1
- package/dist/utils/WorkspaceNameHandler.js +2 -2
- package/dist/utils/WorkspaceNameHandler.js.map +1 -1
- package/dist/utils/{requestHandlers → request-handlers}/CheApiRequestHandler.js +3 -3
- package/dist/utils/request-handlers/CheApiRequestHandler.js.map +1 -0
- package/dist/utils/{requestHandlers → request-handlers}/headers/CheMultiuserAuthorizationHeaderHandler.js +1 -1
- package/dist/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +1 -0
- package/dist/utils/{requestHandlers → request-handlers}/headers/IAuthorizationHeaderHandler.js +1 -1
- package/dist/utils/request-handlers/headers/IAuthorizationHeaderHandler.js.map +1 -0
- package/dist/utils/{requestHandlers → request-handlers}/tokens/CheMultiuserTokenHandler.js +2 -2
- package/dist/utils/request-handlers/tokens/CheMultiuserTokenHandler.js.map +1 -0
- package/dist/utils/{requestHandlers → request-handlers}/tokens/ITokenHandler.js +1 -1
- package/dist/utils/request-handlers/tokens/ITokenHandler.js.map +1 -0
- package/dist/utils/{VCS → vsc}/CheGitApi.js +2 -2
- package/dist/utils/vsc/CheGitApi.js.map +1 -0
- package/dist/utils/{VCS → vsc}/github/GitHubUtil.js.map +1 -1
- package/dist/utils/workspace/ApiUrlResolver.js +3 -3
- package/dist/utils/workspace/ApiUrlResolver.js.map +1 -1
- package/dist/utils/workspace/ITestWorkspaceUtil.js +1 -1
- package/dist/utils/workspace/TestWorkspaceUtil.js +4 -4
- package/dist/utils/workspace/TestWorkspaceUtil.js.map +1 -1
- package/dist/utils/workspace/WorkspaceStatus.js +1 -1
- package/driver/ChromeDriver.ts +2 -2
- package/driver/IDriver.ts +1 -1
- package/package.json +6 -37
- package/pageobjects/dashboard/CreateWorkspace.ts +4 -4
- package/pageobjects/dashboard/Dashboard.ts +4 -4
- package/pageobjects/dashboard/Workspaces.ts +3 -3
- package/pageobjects/dashboard/workspace-details/WorkspaceDetails.ts +8 -8
- package/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.ts +3 -4
- package/pageobjects/login/ICheLoginPage.ts +1 -1
- package/pageobjects/login/IOcpLoginPage.ts +1 -1
- package/pageobjects/login/MultiUserLoginPage.ts +3 -3
- package/pageobjects/login/OcpUserLoginPage.ts +3 -3
- package/pageobjects/login/RegularUserOcpCheLoginPage.ts +4 -4
- package/pageobjects/login/UpdateAccountInformationPage.ts +2 -2
- package/pageobjects/openshift/CheLoginPage.ts +3 -3
- package/pageobjects/openshift/OcpLoginPage.ts +4 -4
- package/pageobjects/third-parties/GitLoginPage.ts +4 -4
- package/pageobjects/third-parties/GitOauthAppsSettings.ts +3 -3
- package/specs/MochaHooks.ts +72 -0
- package/{tests/devfiles/che-code → specs/devfiles}/EmptyWorkspace.spec.ts +12 -9
- package/{tests → specs}/login/LinkCheAndOcpUsers.spec.ts +5 -4
- package/tests-library/LoginTests.ts +35 -0
- package/{testsLibrary/che-code/ProjectAndFileTestsCheCode.ts → tests-library/ProjectAndFileTests.ts} +6 -6
- package/{testsLibrary → tests-library}/WorkspaceHandlingTests.ts +4 -4
- package/utils/BrowserTabsUtil.ts +3 -3
- package/{driver → utils}/CheReporter.ts +10 -15
- package/utils/DriverHelper.ts +4 -4
- package/utils/Logger.ts +2 -2
- package/utils/Sanitizer.ts +1 -1
- package/utils/ScreenCatcher.ts +3 -3
- package/utils/WorkspaceNameHandler.ts +2 -2
- package/utils/{requestHandlers → request-handlers}/CheApiRequestHandler.ts +3 -3
- package/utils/{requestHandlers → request-handlers}/headers/CheMultiuserAuthorizationHeaderHandler.ts +2 -2
- package/utils/{requestHandlers → request-handlers}/headers/IAuthorizationHeaderHandler.ts +1 -1
- package/utils/{requestHandlers → request-handlers}/tokens/CheMultiuserTokenHandler.ts +2 -2
- package/utils/{requestHandlers → request-handlers}/tokens/ITokenHandler.ts +1 -1
- package/utils/{VCS → vsc}/CheGitApi.ts +2 -6
- package/utils/workspace/ApiUrlResolver.ts +3 -3
- package/utils/workspace/ITestWorkspaceUtil.ts +1 -1
- package/utils/workspace/TestWorkspaceUtil.ts +4 -4
- package/utils/workspace/WorkspaceStatus.ts +1 -1
- package/dist/TestConstants.js.map +0 -1
- package/dist/TimeoutConstants.js.map +0 -1
- package/dist/driver/CheReporter.js.map +0 -1
- package/dist/index.js +0 -94
- package/dist/index.js.map +0 -1
- package/dist/inversify.config.js +0 -133
- package/dist/inversify.config.js.map +0 -1
- package/dist/inversify.types.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/tests/MochaHooks.js.map +0 -1
- 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.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.map +0 -1
- package/dist/testsLibrary/che-code/ProjectAndFileTestsCheCode.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.map +0 -1
- package/dist/utils/VCS/CheGitApi.js.map +0 -1
- package/dist/utils/requestHandlers/CheApiRequestHandler.js.map +0 -1
- package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +0 -1
- package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.js.map +0 -1
- package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.js.map +0 -1
- 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/index.ts +0 -69
- package/initPluginTest.sh +0 -9
- package/inversify.config.ts +0 -141
- package/mocha-all-devfiles-che-code.json +0 -12
- package/mocha-all-devfiles-theia.json +0 -15
- package/mocha-all-factories-che-code.json +0 -14
- package/mocha-all-factories-theia.json +0 -16
- package/mocha-all-plugins-che-code.json +0 -13
- package/mocha-all-plugins-theia.json +0 -15
- package/mocha-che-code.json +0 -12
- package/mocha-connector-theia.json +0 -12
- package/mocha-devworkspace-happy-path-che-code.json +0 -13
- package/mocha-devworkspace-happy-path-theia.json +0 -14
- package/mocha-empty-workspace-devworkspace-happy-path-che-code.json +0 -14
- package/mocha-factory-che-code.json +0 -13
- package/mocha-factory-theia.json +0 -14
- package/mocha-git-publish-branch-theia.json +0 -14
- package/mocha-git-self-sign-cert-theia.json +0 -14
- package/mocha-git-ssh-theia.json +0 -14
- package/mocha-happy-path-che-code.json +0 -14
- package/mocha-happy-path-theia.json +0 -15
- package/mocha-java-maven.json +0 -13
- package/mocha-java-springboot-che-code.json +0 -12
- package/mocha-java-springboot-theia.json +0 -13
- package/mocha-java-vertx-che-code.json +0 -12
- package/mocha-java-vertx-theia.json +0 -13
- package/mocha-load-theia.json +0 -12
- package/mocha-scala.json +0 -13
- package/mocha-single-devfile.json +0 -11
- package/mocha-theia.json +0 -12
- package/mocha-ws-creation-and-ls-theia.json +0 -12
- package/mocha.intelij.json +0 -13
- package/mocha.ocp.link.json +0 -11
- package/mocha.single.plugin.json +0 -8
- package/pageobjects/ide/theia/ContextMenu.ts +0 -55
- package/pageobjects/ide/theia/DebugView.ts +0 -88
- package/pageobjects/ide/theia/DialogWindow.ts +0 -101
- package/pageobjects/ide/theia/Editor.ts +0 -601
- package/pageobjects/ide/theia/Ide.ts +0 -393
- package/pageobjects/ide/theia/LeftToolBar.ts +0 -81
- package/pageobjects/ide/theia/NavigationBar.ts +0 -41
- package/pageobjects/ide/theia/NotificationCenter.ts +0 -75
- package/pageobjects/ide/theia/OpenDialogWidget.ts +0 -92
- package/pageobjects/ide/theia/OpenEditors.ts +0 -63
- package/pageobjects/ide/theia/OpenWorkspaceWidget.ts +0 -48
- package/pageobjects/ide/theia/PreviewWidget.ts +0 -142
- package/pageobjects/ide/theia/ProjectTree.ts +0 -338
- package/pageobjects/ide/theia/QuickOpenContainer.ts +0 -59
- package/pageobjects/ide/theia/RightToolBar.ts +0 -34
- package/pageobjects/ide/theia/Terminal.ts +0 -219
- package/pageobjects/ide/theia/TopMenu.ts +0 -103
- package/pageobjects/ide/theia/plugins/GitHubPullRequestPlugin.ts +0 -130
- package/pageobjects/ide/theia/plugins/GitPlugin.ts +0 -118
- package/pageobjects/ide/theia/plugins/KubernetesPlugin.ts +0 -113
- package/pageobjects/ide/theia/plugins/OpenshiftPlugin.ts +0 -87
- package/pageobjects/ide/theia/plugins/PluginsView.ts +0 -191
- package/tests/MochaHooks.ts +0 -57
- package/tests/devfiles/theia/CSlashCPlusPlus.spec.ts +0 -78
- package/tests/devfiles/theia/DevfileSmoke.spec.ts +0 -50
- package/tests/devfiles/theia/DotNetCore.spec.ts +0 -87
- package/tests/devfiles/theia/Go.spec.ts +0 -81
- package/tests/devfiles/theia/JavaMaven.spec.ts +0 -64
- package/tests/devfiles/theia/JavaSpringBoot.spec.ts +0 -71
- package/tests/devfiles/theia/JavaVertx.spec.ts +0 -65
- package/tests/devfiles/theia/NodeJS.spec.ts +0 -71
- package/tests/devfiles/theia/PHPSimple.spec.ts +0 -80
- package/tests/devfiles/theia/Python.spec.ts +0 -64
- package/tests/devfiles/theia/PythonDjango.spec.ts +0 -67
- package/tests/devfiles/theia/Quarkus.spec.ts +0 -76
- package/tests/devfiles/theia/Scala.spec.ts +0 -70
- package/tests/e2e/theia/FactoryUrl.spec.ts +0 -47
- package/tests/e2e/theia/GitPublishBranch.spec.ts +0 -109
- package/tests/e2e/theia/GitSelfSignCert.spec.ts +0 -110
- package/tests/e2e/theia/GitSsh.spec.ts +0 -144
- package/tests/e2e/theia/OpenshiftConnector.spec.ts +0 -144
- package/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +0 -60
- package/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.ts +0 -57
- package/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.ts +0 -57
- package/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.ts +0 -294
- package/tests/e2e_happy_path/theia/HappyPath.spec.ts +0 -348
- package/tests/intelij/IntelijOpenWorkspace.spec.ts +0 -47
- package/tests/load_test/theia/LoadTest.spec.ts +0 -55
- package/tests/login/Login.spec.ts +0 -31
- package/tests/plugins/theia/GitHubPullRequestPlugin.spec.ts +0 -147
- package/tests/plugins/theia/InstallPluginUsingUI.spec.ts +0 -77
- package/tests/plugins/theia/JavaPlugin.spec.ts +0 -100
- package/tests/plugins/theia/PhpPlugin.spec.ts +0 -115
- package/tests/plugins/theia/PythonPlugin.spec.ts +0 -86
- package/tests/plugins/theia/TypescriptPlugin.spec.ts +0 -168
- package/tests/plugins/theia/VscodeKubernetesPlugin.spec.ts +0 -83
- package/tests/plugins/theia/VscodeShellcheckPlugin.spec.ts +0 -100
- package/tests/plugins/theia/VscodeValePlugin.spec.ts +0 -85
- package/tests/plugins/theia/VscodeXmlPlugin.spec.ts +0 -104
- package/tests/plugins/theia/VscodeYamlPlugin.spec.ts +0 -99
- package/testsLibrary/theia/CodeExecutionTestsTheia.ts +0 -220
- package/testsLibrary/theia/LanguageServerTestsTheia.ts +0 -205
- package/testsLibrary/theia/ProjectAndFileTestsTheia.ts +0 -113
- package/utils/AnimationChecker.ts +0 -27
- package/utils/theia/PreferencesHandlerTheia.ts +0 -123
- /package/{initDefaultValues.sh → configs/sh-scripts/initDefaultValues.sh} +0 -0
- /package/dist/utils/{VCS → vsc}/github/GitHubUtil.js +0 -0
- /package/utils/{VCS → vsc}/github/GitHubUtil.ts +0 -0
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* Copyright (c) 2020 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made
|
|
5
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
-
*
|
|
8
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
-
**********************************************************************/
|
|
10
|
-
import { CLASSES } from '../../../inversify.types';
|
|
11
|
-
import { e2eContainer } from '../../../inversify.config';
|
|
12
|
-
import 'reflect-metadata';
|
|
13
|
-
import { Logger } from '../../../utils/Logger';
|
|
14
|
-
import { PreferencesHandlerTheia } from '../../../utils/theia/PreferencesHandlerTheia';
|
|
15
|
-
import { LanguageServerTestsTheia } from '../../../testsLibrary/theia/LanguageServerTestsTheia';
|
|
16
|
-
import { CodeExecutionTestsTheia } from '../../../testsLibrary/theia/CodeExecutionTestsTheia';
|
|
17
|
-
import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
|
|
18
|
-
import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
|
|
19
|
-
import CheReporter from '../../../driver/CheReporter';
|
|
20
|
-
|
|
21
|
-
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
22
|
-
const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
|
|
23
|
-
const commonLanguageServerTests: LanguageServerTestsTheia = e2eContainer.get(CLASSES.LanguageServerTestsTheia);
|
|
24
|
-
const codeExecutionTests: CodeExecutionTestsTheia = e2eContainer.get(CLASSES.CodeExecutionTestsTheia);
|
|
25
|
-
const preferencesHandler: PreferencesHandlerTheia = e2eContainer.get(CLASSES.PreferencesHandlerTheia);
|
|
26
|
-
|
|
27
|
-
const workspaceStack: string = 'Go';
|
|
28
|
-
const workspaceSampleName: string = 'golang-example';
|
|
29
|
-
const workspaceSubfolderName: string = 'template';
|
|
30
|
-
const fileFolderPath: string = `${workspaceSampleName}/${workspaceSubfolderName}`;
|
|
31
|
-
const fileName: string = `main.go`;
|
|
32
|
-
|
|
33
|
-
const taskRunServer: string = 'run-outyet';
|
|
34
|
-
const taskStopServer: string = 'stop-outyet';
|
|
35
|
-
const taskTestOutyet: string = 'test-outyet';
|
|
36
|
-
const notificationText: string = 'Process 8080-tcp is now listening on port 8080. Open it ?';
|
|
37
|
-
|
|
38
|
-
suite(`${workspaceStack} test`, async () => {
|
|
39
|
-
|
|
40
|
-
suite(`Create ${workspaceStack} workspace`, async () => {
|
|
41
|
-
workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
|
|
42
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
43
|
-
test('Register running workspace', async () => {
|
|
44
|
-
CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
45
|
-
});
|
|
46
|
-
projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceSubfolderName, false);
|
|
47
|
-
test('Workaround for issue #16113', async () => {
|
|
48
|
-
Logger.warn(`Manually setting a preference for golang devFile LS based on issue: https://github.com/eclipse/che/issues/16113`);
|
|
49
|
-
await preferencesHandler.setPreferenceUsingUI('go.useLanguageServer', true);
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
suite('Test opening file', async () => {
|
|
54
|
-
// opening file that soon should give time for LS to initialize
|
|
55
|
-
projectAndFileTests.openFile(fileFolderPath, fileName);
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
suite('Test golang example', async () => {
|
|
59
|
-
codeExecutionTests.runTask(taskTestOutyet, 80_000);
|
|
60
|
-
codeExecutionTests.closeTerminal(taskTestOutyet);
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
suite('Run golang example server', async () => {
|
|
64
|
-
codeExecutionTests.runTaskWithNotification(taskRunServer, notificationText, 40_000);
|
|
65
|
-
codeExecutionTests.runTask(taskStopServer, 8_000);
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
suite(`'Language server validation'`, async () => {
|
|
69
|
-
commonLanguageServerTests.suggestionInvoking(fileName, 41, 49, 'Parse');
|
|
70
|
-
commonLanguageServerTests.autocomplete(fileName, 41, 49, 'Parse');
|
|
71
|
-
commonLanguageServerTests.errorHighlighting(fileName, 'error;\n', 41);
|
|
72
|
-
// commonLanguageServerTests.goToImplementations(fileName, 42, 10, 'flag.go'); // codenavigation is inconsistent https://github.com/eclipse/che/issues/16929
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
suite('Stop and remove workspace', async() => {
|
|
76
|
-
test(`Stop and remove workspace`, async () => {
|
|
77
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
});
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* Copyright (c) 2020 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made
|
|
5
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
-
*
|
|
8
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
-
**********************************************************************/
|
|
10
|
-
import 'reflect-metadata';
|
|
11
|
-
import { CLASSES } from '../../../inversify.types';
|
|
12
|
-
import { LanguageServerTestsTheia } from '../../../testsLibrary/theia/LanguageServerTestsTheia';
|
|
13
|
-
import { e2eContainer } from '../../../inversify.config';
|
|
14
|
-
import { CodeExecutionTestsTheia } from '../../../testsLibrary/theia/CodeExecutionTestsTheia';
|
|
15
|
-
import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
|
|
16
|
-
import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
|
|
17
|
-
import CheReporter from '../../../driver/CheReporter';
|
|
18
|
-
|
|
19
|
-
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
20
|
-
const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
|
|
21
|
-
const commonLanguageServerTests: LanguageServerTestsTheia = e2eContainer.get(CLASSES.LanguageServerTestsTheia);
|
|
22
|
-
const codeExecutionTests: CodeExecutionTestsTheia = e2eContainer.get(CLASSES.CodeExecutionTestsTheia);
|
|
23
|
-
|
|
24
|
-
const workspaceSampleName: string = 'console-java-simple';
|
|
25
|
-
const workspaceRootFolderName: string = 'src';
|
|
26
|
-
const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/main/java/org/eclipse/che/examples`;
|
|
27
|
-
const tabTitle: string = 'HelloWorld.java';
|
|
28
|
-
const codeNavigationClassName: string = 'String.class';
|
|
29
|
-
const stack: string = 'Java Maven';
|
|
30
|
-
const taskName: string = 'maven build';
|
|
31
|
-
|
|
32
|
-
suite(`${stack} test`, async () => {
|
|
33
|
-
suite (`Create ${stack} workspace`, async () => {
|
|
34
|
-
workspaceHandlingTests.createAndOpenWorkspace(stack);
|
|
35
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
36
|
-
test('Register running workspace', async () => {
|
|
37
|
-
CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
38
|
-
});
|
|
39
|
-
projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
suite('Test opening file', async () => {
|
|
43
|
-
// opening file that soon should give time for LS to initialize
|
|
44
|
-
projectAndFileTests.openFile(fileFolderPath, tabTitle);
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
suite('Validation of workspace build and run', async () => {
|
|
48
|
-
codeExecutionTests.runTask(taskName, 120_000);
|
|
49
|
-
codeExecutionTests.closeTerminal(taskName);
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
suite('Language server validation', async () => {
|
|
53
|
-
commonLanguageServerTests.suggestionInvoking(tabTitle, 10, 20, 'append(char c) : PrintStream');
|
|
54
|
-
commonLanguageServerTests.errorHighlighting(tabTitle, 'error_text', 11);
|
|
55
|
-
commonLanguageServerTests.autocomplete(tabTitle, 10, 11, 'System - java.lang');
|
|
56
|
-
commonLanguageServerTests.goToImplementations(tabTitle, 9, 10, codeNavigationClassName, 30_000); // extended timout to give LS enough time to start
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
suite('Stopping and deleting the workspace', async () => {
|
|
60
|
-
test(`Stop and remowe workspace`, async () => {
|
|
61
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
});
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* Copyright (c) 2020 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made
|
|
5
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
-
*
|
|
8
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
-
**********************************************************************/
|
|
10
|
-
import 'reflect-metadata';
|
|
11
|
-
import { CLASSES } from '../../../inversify.types';
|
|
12
|
-
import { LanguageServerTestsTheia } from '../../../testsLibrary/theia/LanguageServerTestsTheia';
|
|
13
|
-
import { e2eContainer } from '../../../inversify.config';
|
|
14
|
-
import { CodeExecutionTestsTheia } from '../../../testsLibrary/theia/CodeExecutionTestsTheia';
|
|
15
|
-
import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
|
|
16
|
-
import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
|
|
17
|
-
import CheReporter from '../../../driver/CheReporter';
|
|
18
|
-
|
|
19
|
-
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
20
|
-
const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
|
|
21
|
-
const commonLanguageServerTests: LanguageServerTestsTheia = e2eContainer.get(CLASSES.LanguageServerTestsTheia);
|
|
22
|
-
const codeExecutionTests: CodeExecutionTestsTheia = e2eContainer.get(CLASSES.CodeExecutionTestsTheia);
|
|
23
|
-
|
|
24
|
-
const stack: string = 'Java Spring Boot';
|
|
25
|
-
const workspaceSampleName: string = 'java-web-spring';
|
|
26
|
-
const workspaceRootFolderName: string = 'src';
|
|
27
|
-
const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/main/java/org/springframework/samples/petclinic`;
|
|
28
|
-
const tabTitle: string = 'PetClinicApplication.java';
|
|
29
|
-
const codeNavigationClassName: string = 'SpringApplication.class';
|
|
30
|
-
const buildTaskName: string = 'maven build';
|
|
31
|
-
const runTaskName: string = 'run webapp';
|
|
32
|
-
const runTaskExpectedDialogue: string = 'Process 8080-tcp is now listening on port 8080. Open it ?';
|
|
33
|
-
|
|
34
|
-
suite(`${stack} test`, async () => {
|
|
35
|
-
suite(`Create ${stack} workspace`, async () => {
|
|
36
|
-
workspaceHandlingTests.createAndOpenWorkspace(stack);
|
|
37
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
38
|
-
test('Register running workspace', async () => {
|
|
39
|
-
CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
40
|
-
});
|
|
41
|
-
projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
suite('Test opening file', async () => {
|
|
45
|
-
// opening file that soon should give time for LS to initialize
|
|
46
|
-
projectAndFileTests.openFile(fileFolderPath, tabTitle);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
suite('Validation of workspace build', async () => {
|
|
50
|
-
codeExecutionTests.runTask(buildTaskName, 720_000);
|
|
51
|
-
codeExecutionTests.closeTerminal(buildTaskName);
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
suite('Validation of workspace execution', async () => {
|
|
55
|
-
codeExecutionTests.runTaskWithNotification(runTaskName, runTaskExpectedDialogue, 120_000);
|
|
56
|
-
codeExecutionTests.closeTerminal(runTaskName);
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
suite('Language server validation', async () => {
|
|
60
|
-
commonLanguageServerTests.autocomplete(tabTitle, 32, 56, 'args : String[]');
|
|
61
|
-
commonLanguageServerTests.errorHighlighting(tabTitle, 'error_text', 30);
|
|
62
|
-
commonLanguageServerTests.goToImplementations(tabTitle, 32, 23, codeNavigationClassName);
|
|
63
|
-
commonLanguageServerTests.suggestionInvoking(tabTitle, 32, 23, 'run(Class<?>');
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
suite('Stopping and deleting the workspace', async () => {
|
|
67
|
-
test(`Stop and remowe workspace`, async () => {
|
|
68
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
});
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* Copyright (c) 2020 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made
|
|
5
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
-
*
|
|
8
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
-
**********************************************************************/
|
|
10
|
-
import 'reflect-metadata';
|
|
11
|
-
import { CLASSES } from '../../../inversify.types';
|
|
12
|
-
import { LanguageServerTestsTheia } from '../../../testsLibrary/theia/LanguageServerTestsTheia';
|
|
13
|
-
import { e2eContainer } from '../../../inversify.config';
|
|
14
|
-
import { CodeExecutionTestsTheia } from '../../../testsLibrary/theia/CodeExecutionTestsTheia';
|
|
15
|
-
import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
|
|
16
|
-
import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
|
|
17
|
-
import CheReporter from '../../../driver/CheReporter';
|
|
18
|
-
|
|
19
|
-
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
20
|
-
const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
|
|
21
|
-
const commonLanguageServerTests: LanguageServerTestsTheia = e2eContainer.get(CLASSES.LanguageServerTestsTheia);
|
|
22
|
-
const codeExecutionTests: CodeExecutionTestsTheia = e2eContainer.get(CLASSES.CodeExecutionTestsTheia);
|
|
23
|
-
|
|
24
|
-
const workspaceSampleName: string = 'vertx-http-example';
|
|
25
|
-
const workspaceRootFolderName: string = 'src';
|
|
26
|
-
const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/main/java/io/openshift/example`;
|
|
27
|
-
const tabTitle: string = 'HttpApplication.java';
|
|
28
|
-
const codeNavigationClassName: string = 'RouterImpl.class';
|
|
29
|
-
const buildTaskName: string = 'maven build';
|
|
30
|
-
const stack: string = 'Java Vert.x';
|
|
31
|
-
|
|
32
|
-
suite(`${stack} test`, async () => {
|
|
33
|
-
suite (`Create ${stack} workspace`, async () => {
|
|
34
|
-
workspaceHandlingTests.createAndOpenWorkspace(stack);
|
|
35
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
36
|
-
test('Register running workspace', async () => {
|
|
37
|
-
CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
38
|
-
});
|
|
39
|
-
projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
suite('Test opening file', async () => {
|
|
43
|
-
// opening file that soon should give time for LS to initialize
|
|
44
|
-
projectAndFileTests.openFile(fileFolderPath, tabTitle);
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
suite('Validation of project build', async () => {
|
|
48
|
-
codeExecutionTests.runTask(buildTaskName, 120_000);
|
|
49
|
-
codeExecutionTests.closeTerminal(buildTaskName);
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
suite('Language server validation', async () => {
|
|
53
|
-
commonLanguageServerTests.errorHighlighting(tabTitle, 'error_text;', 20);
|
|
54
|
-
commonLanguageServerTests.suggestionInvoking(tabTitle, 19, 31, 'router(Vertx vertx) : Router');
|
|
55
|
-
commonLanguageServerTests.autocomplete(tabTitle, 19, 7, 'Router - io.vertx.ext.web');
|
|
56
|
-
commonLanguageServerTests.goToImplementations(tabTitle, 19, 7, codeNavigationClassName, 30_000); // extended timout to give LS enough time to start
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
suite ('Stopping and deleting the workspace', async () => {
|
|
60
|
-
test(`Stop and remowe workspace`, async () => {
|
|
61
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
});
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* Copyright (c) 2020 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made
|
|
5
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
-
*
|
|
8
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
-
**********************************************************************/
|
|
10
|
-
import { CLASSES } from '../../../inversify.types';
|
|
11
|
-
import 'reflect-metadata';
|
|
12
|
-
import { LanguageServerTestsTheia } from '../../../testsLibrary/theia/LanguageServerTestsTheia';
|
|
13
|
-
import { e2eContainer } from '../../../inversify.config';
|
|
14
|
-
import { CodeExecutionTestsTheia } from '../../../testsLibrary/theia/CodeExecutionTestsTheia';
|
|
15
|
-
import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
|
|
16
|
-
import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
|
|
17
|
-
import CheReporter from '../../../driver/CheReporter';
|
|
18
|
-
|
|
19
|
-
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
20
|
-
const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
|
|
21
|
-
const commonLanguageServerTests: LanguageServerTestsTheia = e2eContainer.get(CLASSES.LanguageServerTestsTheia);
|
|
22
|
-
const codeExecutionTests: CodeExecutionTestsTheia = e2eContainer.get(CLASSES.CodeExecutionTestsTheia);
|
|
23
|
-
|
|
24
|
-
const workspaceStack: string = 'NodeJS Express Web Application';
|
|
25
|
-
const workspaceSampleName: string = 'nodejs-web-app';
|
|
26
|
-
const workspaceRootFolderName: string = 'app';
|
|
27
|
-
const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}`;
|
|
28
|
-
const fileName: string = `app.js`;
|
|
29
|
-
|
|
30
|
-
const taskDownloadDependencies: string = 'download dependencies';
|
|
31
|
-
const taskRunWebApp: string = 'run the web app';
|
|
32
|
-
const taskExpectedDialogText: string = 'Process nodejs is now listening on port 3000. Open it ?';
|
|
33
|
-
|
|
34
|
-
suite(`${workspaceStack} test`, async () => {
|
|
35
|
-
|
|
36
|
-
suite(`Create ${workspaceStack}`, async () => {
|
|
37
|
-
workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
|
|
38
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
39
|
-
test('Register running workspace', async () => {
|
|
40
|
-
CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
41
|
-
});
|
|
42
|
-
projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
suite('Test opening file', async () => {
|
|
46
|
-
// opening file that soon should give time for LS to initialize
|
|
47
|
-
projectAndFileTests.openFile(fileFolderPath, fileName);
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
suite('Download dependencies', async () => {
|
|
51
|
-
codeExecutionTests.runTask(taskDownloadDependencies, 60_000);
|
|
52
|
-
codeExecutionTests.closeTerminal(taskDownloadDependencies);
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
suite('Run nodejs application', async () => {
|
|
56
|
-
codeExecutionTests.runTaskWithNotification(taskRunWebApp, taskExpectedDialogText, 30_000);
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
suite(`'Language server validation'`, async () => {
|
|
60
|
-
commonLanguageServerTests.errorHighlighting(fileName, 'error text;\n', 17);
|
|
61
|
-
commonLanguageServerTests.suggestionInvoking(fileName, 15, 20, 'require');
|
|
62
|
-
commonLanguageServerTests.autocomplete(fileName, 15, 20, 'require');
|
|
63
|
-
// commonLanguageServerTests.goToImplementations(fileName, 19, 10, 'index.d.ts'); // codenavigation is inconsistent https://github.com/eclipse/che/issues/16929
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
suite('Stop and remove workspace', async() => {
|
|
67
|
-
test(`Stop and remowe workspace`, async () => {
|
|
68
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
});
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* Copyright (c) 2020 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made
|
|
5
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
-
*
|
|
8
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
-
**********************************************************************/
|
|
10
|
-
import 'reflect-metadata';
|
|
11
|
-
import { e2eContainer } from '../../../inversify.config';
|
|
12
|
-
import { CLASSES } from '../../../inversify.types';
|
|
13
|
-
import { Editor } from '../../../pageobjects/ide/theia/Editor';
|
|
14
|
-
import { LanguageServerTestsTheia } from '../../../testsLibrary/theia/LanguageServerTestsTheia';
|
|
15
|
-
import { CodeExecutionTestsTheia } from '../../../testsLibrary/theia/CodeExecutionTestsTheia';
|
|
16
|
-
import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
|
|
17
|
-
import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
|
|
18
|
-
import CheReporter from '../../../driver/CheReporter';
|
|
19
|
-
|
|
20
|
-
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
21
|
-
const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
|
|
22
|
-
const commonLanguageServerTests: LanguageServerTestsTheia = e2eContainer.get(CLASSES.LanguageServerTestsTheia);
|
|
23
|
-
const codeExecutionTests: CodeExecutionTestsTheia = e2eContainer.get(CLASSES.CodeExecutionTestsTheia);
|
|
24
|
-
const editor: Editor = e2eContainer.get(CLASSES.Editor);
|
|
25
|
-
|
|
26
|
-
const workspaceSampleName: string = 'php-web-simple';
|
|
27
|
-
const fileFolderPath: string = `${workspaceSampleName}`;
|
|
28
|
-
const tabTitle: string = 'index.php';
|
|
29
|
-
// const codeNavigationClassName: string = 'RouterImpl.class';
|
|
30
|
-
const depTaskName: string = 'Configure Apache Web Server DocumentRoot';
|
|
31
|
-
const buildTaskName: string = 'Start Apache Web Server';
|
|
32
|
-
const stack: string = 'PHP Simple';
|
|
33
|
-
|
|
34
|
-
suite(`${stack} test`, async () => {
|
|
35
|
-
suite (`Create ${stack} workspace`, async () => {
|
|
36
|
-
workspaceHandlingTests.createAndOpenWorkspace(stack);
|
|
37
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
38
|
-
test('Register running workspace', async () => {
|
|
39
|
-
CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
40
|
-
});
|
|
41
|
-
projectAndFileTests.waitWorkspaceReadinessNoSubfolder(workspaceSampleName, false);
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
suite('Test opening file', async () => {
|
|
45
|
-
// opening file that soon should give time for LS to initialize
|
|
46
|
-
projectAndFileTests.openFile(fileFolderPath, tabTitle);
|
|
47
|
-
prepareEditorForLanguageServerTests();
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
suite('Configuration of dependencies', async () => {
|
|
51
|
-
codeExecutionTests.runTask(depTaskName, 30_000);
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
suite('Validation of project build', async () => {
|
|
55
|
-
codeExecutionTests.runTask(buildTaskName, 30_000);
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
suite('Language server validation', async () => {
|
|
59
|
-
commonLanguageServerTests.errorHighlighting(tabTitle, `error_text;`, 14);
|
|
60
|
-
commonLanguageServerTests.suggestionInvoking(tabTitle, 14, 26, '$test');
|
|
61
|
-
commonLanguageServerTests.autocomplete(tabTitle, 15, 5, 'phpinfo');
|
|
62
|
-
// commonLanguageServerTests.goToImplementations(tabTitle, 19, 7, codeNavigationClassName); // there is no codenavigation in the php simple stack (no object oriented code)
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
suite ('Stopping and deleting the workspace', async () => {
|
|
66
|
-
test(`Stop and remowe workspace`, async () => {
|
|
67
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
export function prepareEditorForLanguageServerTests() {
|
|
74
|
-
test(`Prepare file for LS tests`, async () => {
|
|
75
|
-
await editor.moveCursorToLineAndChar(tabTitle, 12, 4);
|
|
76
|
-
await editor.performKeyCombination(tabTitle, '\n$test = " test";');
|
|
77
|
-
await editor.moveCursorToLineAndChar(tabTitle, 14, 20);
|
|
78
|
-
await editor.performKeyCombination(tabTitle, ' . $test;\nphpinfo();');
|
|
79
|
-
});
|
|
80
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* Copyright (c) 2020 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made
|
|
5
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
-
*
|
|
8
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
-
**********************************************************************/
|
|
10
|
-
import { CLASSES } from '../../../inversify.types';
|
|
11
|
-
import 'reflect-metadata';
|
|
12
|
-
import { LanguageServerTestsTheia } from '../../../testsLibrary/theia/LanguageServerTestsTheia';
|
|
13
|
-
import { e2eContainer } from '../../../inversify.config';
|
|
14
|
-
import { CodeExecutionTestsTheia } from '../../../testsLibrary/theia/CodeExecutionTestsTheia';
|
|
15
|
-
import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
|
|
16
|
-
import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
|
|
17
|
-
import CheReporter from '../../../driver/CheReporter';
|
|
18
|
-
|
|
19
|
-
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
20
|
-
const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
|
|
21
|
-
const commonLanguageServerTests: LanguageServerTestsTheia = e2eContainer.get(CLASSES.LanguageServerTestsTheia);
|
|
22
|
-
const codeExecutionTests: CodeExecutionTestsTheia = e2eContainer.get(CLASSES.CodeExecutionTestsTheia);
|
|
23
|
-
|
|
24
|
-
const workspaceStack: string = 'Python';
|
|
25
|
-
const workspaceSampleName: string = 'python-hello-world';
|
|
26
|
-
|
|
27
|
-
const taskRunName: string = 'run';
|
|
28
|
-
const fileFolderPath: string = `${workspaceSampleName}`;
|
|
29
|
-
const fileName: string = `hello-world.py`;
|
|
30
|
-
|
|
31
|
-
suite(`${workspaceStack} test`, async () => {
|
|
32
|
-
|
|
33
|
-
suite(`Create ${workspaceStack} workspace`, async () => {
|
|
34
|
-
workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
|
|
35
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
36
|
-
test('Register running workspace', async () => {
|
|
37
|
-
CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
38
|
-
});
|
|
39
|
-
projectAndFileTests.waitWorkspaceReadinessNoSubfolder(workspaceSampleName, false);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
suite('Test opening file', async () => {
|
|
43
|
-
// opening file that soon should give time for LS to initialize
|
|
44
|
-
projectAndFileTests.openFile(fileFolderPath, fileName);
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
suite.skip('Run Python project', async () => {
|
|
48
|
-
codeExecutionTests.runTask(taskRunName, 30_000);
|
|
49
|
-
codeExecutionTests.closeTerminal(taskRunName);
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
suite('Language server validation', async () => {
|
|
53
|
-
commonLanguageServerTests.errorHighlighting(fileName, `error_text;`, 7);
|
|
54
|
-
commonLanguageServerTests.suggestionInvoking(fileName, 9, 22, 'str');
|
|
55
|
-
commonLanguageServerTests.autocomplete(fileName, 9, 4, 'print');
|
|
56
|
-
// commonLanguageServerTests.goToImplementations(tabTitle, 19, 7, codeNavigationClassName); // there is no codenavigation in the Python devfile
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
suite ('Stopping and deleting the workspace', async () => {
|
|
60
|
-
test(`Stop and remowe workspace`, async () => {
|
|
61
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
});
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* Copyright (c) 2020 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made
|
|
5
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
-
*
|
|
8
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
-
**********************************************************************/
|
|
10
|
-
import { CLASSES } from '../../../inversify.types';
|
|
11
|
-
import 'reflect-metadata';
|
|
12
|
-
import { CodeExecutionTestsTheia } from '../../../testsLibrary/theia/CodeExecutionTestsTheia';
|
|
13
|
-
import { e2eContainer } from '../../../inversify.config';
|
|
14
|
-
import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
|
|
15
|
-
import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
|
|
16
|
-
import CheReporter from '../../../driver/CheReporter';
|
|
17
|
-
|
|
18
|
-
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
19
|
-
const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
|
|
20
|
-
const codeExecutionTests: CodeExecutionTestsTheia = e2eContainer.get(CLASSES.CodeExecutionTestsTheia);
|
|
21
|
-
|
|
22
|
-
const workspaceStack: string = 'Python Django';
|
|
23
|
-
const workspaceSampleName: string = 'django-realworld-example-app';
|
|
24
|
-
const workspaceRootFolderName: string = 'conduit';
|
|
25
|
-
|
|
26
|
-
const taskInstallDependencies: string = 'install dependencies';
|
|
27
|
-
const taskMigrate: string = 'migrate';
|
|
28
|
-
const taskRunServer: string = 'run server';
|
|
29
|
-
const taskRunServerInDebugMode: string = 'run server in debug mode';
|
|
30
|
-
const taskExpectedDialogText: string = 'Process django is now listening on port 7000. Open it ?';
|
|
31
|
-
const taskExpectedDialogTextInDebugMode: string = 'A new process is now listening on port 5678 but this port is not a current endpoint. Would you want to add a redirect for this port so it becomes available ?';
|
|
32
|
-
|
|
33
|
-
suite(`${workspaceStack} test`, async () => {
|
|
34
|
-
|
|
35
|
-
suite(`Create ${workspaceStack} workspace`, async () => {
|
|
36
|
-
workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
|
|
37
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
38
|
-
test('Register running workspace', async () => {
|
|
39
|
-
CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
40
|
-
});
|
|
41
|
-
projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
suite('Install dependencies', async () => {
|
|
45
|
-
codeExecutionTests.runTask(taskInstallDependencies, 60_000);
|
|
46
|
-
codeExecutionTests.closeTerminal(taskInstallDependencies);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
suite('Migrate Django application project', async () => {
|
|
50
|
-
codeExecutionTests.runTask(taskMigrate, 30_000);
|
|
51
|
-
codeExecutionTests.closeTerminal(taskMigrate);
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
suite('Run django server', async () => {
|
|
55
|
-
codeExecutionTests.runTaskWithNotificationAndOpenLinkPreviewNoUrl(taskRunServer, taskExpectedDialogText, 30_000);
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
suite('Run django server in debug mode', async () => {
|
|
59
|
-
codeExecutionTests.runTaskWithNotification(taskRunServerInDebugMode, taskExpectedDialogTextInDebugMode, 30_000);
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
suite ('Stopping and deleting the workspace', async () => {
|
|
63
|
-
test(`Stop and remowe workspace`, async () => {
|
|
64
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
});
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* Copyright (c) 2020 Red Hat, Inc.
|
|
3
|
-
*
|
|
4
|
-
* This program and the accompanying materials are made
|
|
5
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
-
*
|
|
8
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
-
**********************************************************************/
|
|
10
|
-
import { CLASSES } from '../../../inversify.types';
|
|
11
|
-
import 'reflect-metadata';
|
|
12
|
-
import { LanguageServerTestsTheia } from '../../../testsLibrary/theia/LanguageServerTestsTheia';
|
|
13
|
-
import { e2eContainer } from '../../../inversify.config';
|
|
14
|
-
import { CodeExecutionTestsTheia } from '../../../testsLibrary/theia/CodeExecutionTestsTheia';
|
|
15
|
-
import { ProjectAndFileTestsTheia } from '../../../testsLibrary/theia/ProjectAndFileTestsTheia';
|
|
16
|
-
import { WorkspaceHandlingTests } from '../../../testsLibrary/WorkspaceHandlingTests';
|
|
17
|
-
import CheReporter from '../../../driver/CheReporter';
|
|
18
|
-
|
|
19
|
-
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
20
|
-
const projectAndFileTests: ProjectAndFileTestsTheia = e2eContainer.get(CLASSES.ProjectAndFileTestsTheia);
|
|
21
|
-
const commonLanguageServerTests: LanguageServerTestsTheia = e2eContainer.get(CLASSES.LanguageServerTestsTheia);
|
|
22
|
-
const codeExecutionTests: CodeExecutionTestsTheia = e2eContainer.get(CLASSES.CodeExecutionTestsTheia);
|
|
23
|
-
|
|
24
|
-
const workspaceStack: string = 'Quarkus CLI';
|
|
25
|
-
const workspaceSampleName: string = 'quarkus-quickstarts';
|
|
26
|
-
const workspaceRootFolderName: string = 'getting-started-command-mode';
|
|
27
|
-
const fileFolderPath: string = `${workspaceSampleName}/${workspaceRootFolderName}/src/main/java/org/acme/getting/started/commandmode`;
|
|
28
|
-
const fileName: string = `GreetingService.java`;
|
|
29
|
-
|
|
30
|
-
const taskPackage: string = 'Package';
|
|
31
|
-
const taskPackageNative: string = 'Package Native';
|
|
32
|
-
const taskStartNative: string = 'Start Native';
|
|
33
|
-
|
|
34
|
-
suite(`${workspaceStack} test`, async () => {
|
|
35
|
-
suite(`Create ${workspaceStack}`, async () => {
|
|
36
|
-
workspaceHandlingTests.createAndOpenWorkspace(workspaceStack);
|
|
37
|
-
workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
38
|
-
test('Register running workspace', async () => {
|
|
39
|
-
CheReporter.registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
40
|
-
});
|
|
41
|
-
projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
suite(`Test opening the file`, async () => {
|
|
45
|
-
// opening file that soon should give time for LS to initialize
|
|
46
|
-
projectAndFileTests.openFile(fileFolderPath, fileName);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
suite('Package Quarkus application', async () => {
|
|
50
|
-
codeExecutionTests.runTask(taskPackage, 180_000);
|
|
51
|
-
codeExecutionTests.closeTerminal(taskPackage);
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
suite('Package Quarkus Native bundle', async () => {
|
|
55
|
-
codeExecutionTests.runTask(taskPackageNative, 600_000);
|
|
56
|
-
codeExecutionTests.closeTerminal(taskPackageNative);
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
// test is being skipped because of broken devfile, link: https://github.com/eclipse/che/issues/18982
|
|
60
|
-
suite.skip('Start Quarkus Native application', async () => {
|
|
61
|
-
codeExecutionTests.runTaskInputText(taskStartNative, 'Enter your name', 'Test User', 90_000);
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
suite(`'Language server validation'`, async () => {
|
|
65
|
-
commonLanguageServerTests.errorHighlighting(fileName, 'error_text;', 7);
|
|
66
|
-
commonLanguageServerTests.suggestionInvoking(fileName, 8, 33, 'String');
|
|
67
|
-
commonLanguageServerTests.autocomplete(fileName, 8, 33, 'String');
|
|
68
|
-
commonLanguageServerTests.goToImplementations(fileName, 8, 33, 'String.class', 30_000); // extended timout to give LS enough time to start
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
suite('Stop and remove workspace', async() => {
|
|
72
|
-
test(`Stop and remowe workspace`, async () => {
|
|
73
|
-
await workspaceHandlingTests.stopAndRemoveWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
});
|