@eclipse-che/che-e2e 7.56.0 → 7.56.1-dev-8788793
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/TestConstants.ts +23 -0
- package/driver/CheReporter.ts +16 -5
- package/driver/ChromeDriver.ts +7 -5
- package/index.ts +26 -26
- package/initDefaultValues.sh +2 -0
- package/initDevfileTests.sh +7 -3
- package/initPluginTest.sh +1 -1
- package/inversify.config.ts +30 -30
- package/inversify.types.ts +4 -4
- package/{mocha-all-devfiles.json → mocha-all-devfiles-theia.json} +2 -2
- package/{mocha-git-ssh.json → mocha-all-factories-code.json} +1 -1
- package/{mocha-all-factories.json → mocha-all-factories-theia.json} +2 -2
- package/mocha-all-plugins-code.json +10 -0
- package/{mocha-all-plugins.json → mocha-all-plugins-theia.json} +2 -2
- package/{mocha.json → mocha-code.json} +1 -1
- package/{mocha-connector.json → mocha-connector-theia.json} +1 -1
- package/mocha-devworkspace-happy-path-code.json +10 -0
- package/{mocha-devworkspace-happy-path.json → mocha-devworkspace-happy-path-theia.json} +1 -1
- package/mocha-factory-code.json +10 -0
- package/{mocha-factory.json → mocha-factory-theia.json} +1 -1
- package/mocha-git-publish-branch-theia.json +11 -0
- package/mocha-git-self-sign-cert-theia.json +11 -0
- package/{mocha-git-self-sign-cert.json → mocha-git-ssh-theia.json} +1 -1
- package/{mocha-git-publish-branch.json → mocha-happy-path-code.json} +1 -1
- package/{mocha-happy-path.json → mocha-happy-path-theia.json} +1 -1
- package/{mocha-java-vertx.json → mocha-java-maven.json} +1 -1
- package/{mocha-load.json → mocha-java-springboot-code.json} +1 -1
- package/mocha-java-springboot-theia.json +9 -0
- package/{mocha-wkspc-creation-and-ls.json → mocha-java-vertx-code.json} +1 -1
- package/mocha-java-vertx-theia.json +9 -0
- package/mocha-load-theia.json +9 -0
- package/mocha-scala.json +9 -0
- package/mocha-theia.json +8 -0
- package/mocha-ws-creation-and-ls-theia.json +9 -0
- package/package.json +37 -25
- package/pageobjects/dashboard/CreateWorkspace.ts +9 -1
- package/pageobjects/dashboard/workspace-details/WorkspaceDetails.ts +1 -1
- package/pageobjects/ide/{ContextMenu.ts → theia/ContextMenu.ts} +6 -6
- package/pageobjects/ide/{DebugView.ts → theia/DebugView.ts} +6 -6
- package/pageobjects/ide/{DialogWindow.ts → theia/DialogWindow.ts} +4 -4
- package/pageobjects/ide/{Editor.ts → theia/Editor.ts} +19 -20
- package/pageobjects/ide/{Ide.ts → theia/Ide.ts} +5 -5
- package/pageobjects/ide/{LeftToolBar.ts → theia/LeftToolBar.ts} +4 -4
- package/pageobjects/ide/{NavigationBar.ts → theia/NavigationBar.ts} +7 -7
- package/pageobjects/ide/{NotificationCenter.ts → theia/NotificationCenter.ts} +4 -4
- package/pageobjects/ide/{OpenDialogWidget.ts → theia/OpenDialogWidget.ts} +6 -6
- package/pageobjects/ide/{OpenEditors.ts → theia/OpenEditors.ts} +4 -4
- package/pageobjects/ide/{OpenWorkspaceWidget.ts → theia/OpenWorkspaceWidget.ts} +4 -4
- package/pageobjects/ide/{PreviewWidget.ts → theia/PreviewWidget.ts} +5 -5
- package/pageobjects/ide/{ProjectTree.ts → theia/ProjectTree.ts} +6 -6
- package/pageobjects/ide/{QuickOpenContainer.ts → theia/QuickOpenContainer.ts} +4 -4
- package/pageobjects/ide/{RightToolBar.ts → theia/RightToolBar.ts} +4 -4
- package/pageobjects/ide/{Terminal.ts → theia/Terminal.ts} +5 -5
- package/pageobjects/ide/{TopMenu.ts → theia/TopMenu.ts} +5 -5
- package/pageobjects/ide/{plugins → theia/plugins}/GitHubPullRequestPlugin.ts +5 -5
- package/pageobjects/ide/{plugins → theia/plugins}/GitPlugin.ts +4 -4
- package/pageobjects/ide/{plugins → theia/plugins}/KubernetesPlugin.ts +4 -4
- package/pageobjects/ide/{plugins → theia/plugins}/OpenshiftPlugin.ts +4 -4
- package/pageobjects/ide/{plugins → theia/plugins}/PluginsView.ts +4 -4
- package/tests/devfiles/code/JavaSpringBoot.spec.ts +77 -0
- package/tests/devfiles/{CSlashCPlusPlus.spec.ts → theia/CSlashCPlusPlus.spec.ts} +11 -11
- package/tests/devfiles/{DevfileSmoke.spec.ts → theia/DevfileSmoke.spec.ts} +10 -10
- package/tests/devfiles/{DotNetCore.spec.ts → theia/DotNetCore.spec.ts} +11 -11
- package/tests/devfiles/{Go.spec.ts → theia/Go.spec.ts} +13 -13
- package/tests/devfiles/{JavaMaven.spec.ts → theia/JavaMaven.spec.ts} +10 -10
- package/tests/devfiles/{JavaSpringBoot.spec.ts → theia/JavaSpringBoot.spec.ts} +10 -10
- package/tests/devfiles/{JavaVertx.spec.ts → theia/JavaVertx.spec.ts} +10 -10
- package/tests/devfiles/{NodeJS.spec.ts → theia/NodeJS.spec.ts} +10 -10
- package/tests/devfiles/{PHPSimple.spec.ts → theia/PHPSimple.spec.ts} +11 -11
- package/tests/devfiles/{Python.spec.ts → theia/Python.spec.ts} +10 -10
- package/tests/devfiles/{PythonDjango.spec.ts → theia/PythonDjango.spec.ts} +8 -8
- package/tests/devfiles/{Quarkus.spec.ts → theia/Quarkus.spec.ts} +10 -10
- package/tests/devfiles/{Scala.spec.ts → theia/Scala.spec.ts} +10 -10
- package/tests/e2e/{FactoryUrl.spec.ts → theia/FactoryUrl.spec.ts} +9 -9
- package/tests/e2e/{GitPublishBranch.spec.ts → theia/GitPublishBranch.spec.ts} +16 -16
- package/tests/e2e/{GitSelfSignCert.spec.ts → theia/GitSelfSignCert.spec.ts} +17 -17
- package/tests/e2e/{GitSsh.spec.ts → theia/GitSsh.spec.ts} +20 -20
- package/tests/e2e/{OpenshiftConnector.spec.ts → theia/OpenshiftConnector.spec.ts} +21 -21
- package/tests/e2e/{factories → theia/factories}/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +10 -10
- package/tests/e2e/{factories → theia/factories}/DirectUrlFactoryWithRootFolderTest.spec.ts +10 -10
- package/tests/e2e/{factories → theia/factories}/DirectUrlFactoryWithSpecificBranchTest.spec.ts +10 -10
- package/tests/e2e_happy_path/{DevWorkspaceHappyPath.spec.ts → theia/DevWorkspaceHappyPath.spec.ts} +17 -19
- package/tests/e2e_happy_path/{HappyPath.spec.ts → theia/HappyPath.spec.ts} +21 -20
- package/tests/intelij/IntelijOpenWorkspace.spec.ts +1 -1
- package/tests/load_test/{LoadTest.spec.ts → theia/LoadTest.spec.ts} +10 -9
- package/tests/plugins/{GitHubPullRequestPlugin.spec.ts → theia/GitHubPullRequestPlugin.spec.ts} +19 -20
- package/tests/plugins/{InstallPluginUsingUI.spec.ts → theia/InstallPluginUsingUI.spec.ts} +11 -12
- package/tests/plugins/{JavaPlugin.spec.ts → theia/JavaPlugin.spec.ts} +13 -13
- package/tests/plugins/{PhpPlugin.spec.ts → theia/PhpPlugin.spec.ts} +12 -12
- package/tests/plugins/{PythonPlugin.spec.ts → theia/PythonPlugin.spec.ts} +13 -13
- package/tests/plugins/{TypescriptPlugin.spec.ts → theia/TypescriptPlugin.spec.ts} +19 -19
- package/tests/plugins/{VscodeKubernetesPlugin.spec.ts → theia/VscodeKubernetesPlugin.spec.ts} +13 -13
- package/tests/plugins/{VscodeShellcheckPlugin.spec.ts → theia/VscodeShellcheckPlugin.spec.ts} +12 -12
- package/tests/plugins/{VscodeValePlugin.spec.ts → theia/VscodeValePlugin.spec.ts} +11 -11
- package/tests/plugins/{VscodeXmlPlugin.spec.ts → theia/VscodeXmlPlugin.spec.ts} +12 -12
- package/tests/plugins/{VscodeYamlPlugin.spec.ts → theia/VscodeYamlPlugin.spec.ts} +12 -12
- package/testsLibrary/WorkspaceHandlingTests.ts +115 -140
- package/testsLibrary/{CodeExecutionTests.ts → theia/CodeExecutionTestsTheia.ts} +15 -15
- package/testsLibrary/{LanguageServerTests.ts → theia/LanguageServerTestsTheia.ts} +9 -9
- package/testsLibrary/{ProjectAndFileTests.ts → theia/ProjectAndFileTestsTheia.ts} +36 -10
- package/utils/DriverHelper.ts +3 -3
- package/utils/{PreferencesHandler.ts → theia/PreferencesHandlerTheia.ts} +11 -11
- package/dist/TestConstants.js +0 -220
- 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 -181
- package/dist/driver/CheReporter.js.map +0 -1
- package/dist/driver/ChromeDriver.js +0 -75
- 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 -65
- 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/ContextMenu.js +0 -66
- package/dist/pageobjects/ide/ContextMenu.js.map +0 -1
- package/dist/pageobjects/ide/DebugView.js +0 -98
- package/dist/pageobjects/ide/DebugView.js.map +0 -1
- package/dist/pageobjects/ide/DialogWindow.js +0 -102
- package/dist/pageobjects/ide/DialogWindow.js.map +0 -1
- package/dist/pageobjects/ide/Editor.js +0 -464
- package/dist/pageobjects/ide/Editor.js.map +0 -1
- package/dist/pageobjects/ide/Ide.js +0 -336
- package/dist/pageobjects/ide/Ide.js.map +0 -1
- package/dist/pageobjects/ide/LeftToolBar.js +0 -81
- package/dist/pageobjects/ide/LeftToolBar.js.map +0 -1
- package/dist/pageobjects/ide/NavigationBar.js +0 -57
- package/dist/pageobjects/ide/NavigationBar.js.map +0 -1
- package/dist/pageobjects/ide/NotificationCenter.js +0 -76
- package/dist/pageobjects/ide/NotificationCenter.js.map +0 -1
- package/dist/pageobjects/ide/OpenDialogWidget.js +0 -100
- package/dist/pageobjects/ide/OpenDialogWidget.js.map +0 -1
- package/dist/pageobjects/ide/OpenEditors.js +0 -73
- package/dist/pageobjects/ide/OpenEditors.js.map +0 -1
- package/dist/pageobjects/ide/OpenWorkspaceWidget.js +0 -62
- package/dist/pageobjects/ide/OpenWorkspaceWidget.js.map +0 -1
- package/dist/pageobjects/ide/PreviewWidget.js +0 -134
- package/dist/pageobjects/ide/PreviewWidget.js.map +0 -1
- package/dist/pageobjects/ide/ProjectTree.js +0 -282
- package/dist/pageobjects/ide/ProjectTree.js.map +0 -1
- package/dist/pageobjects/ide/QuickOpenContainer.js +0 -70
- package/dist/pageobjects/ide/QuickOpenContainer.js.map +0 -1
- package/dist/pageobjects/ide/RightToolBar.js +0 -51
- package/dist/pageobjects/ide/RightToolBar.js.map +0 -1
- package/dist/pageobjects/ide/Terminal.js +0 -184
- package/dist/pageobjects/ide/Terminal.js.map +0 -1
- package/dist/pageobjects/ide/TopMenu.js +0 -109
- package/dist/pageobjects/ide/TopMenu.js.map +0 -1
- package/dist/pageobjects/ide/plugins/GitHubPullRequestPlugin.js +0 -128
- package/dist/pageobjects/ide/plugins/GitHubPullRequestPlugin.js.map +0 -1
- package/dist/pageobjects/ide/plugins/GitPlugin.js +0 -120
- package/dist/pageobjects/ide/plugins/GitPlugin.js.map +0 -1
- package/dist/pageobjects/ide/plugins/KubernetesPlugin.js +0 -107
- package/dist/pageobjects/ide/plugins/KubernetesPlugin.js.map +0 -1
- package/dist/pageobjects/ide/plugins/OpenshiftPlugin.js +0 -99
- package/dist/pageobjects/ide/plugins/OpenshiftPlugin.js.map +0 -1
- package/dist/pageobjects/ide/plugins/PluginsView.js +0 -166
- package/dist/pageobjects/ide/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/CSlashCPlusPlus.spec.js +0 -73
- package/dist/tests/devfiles/CSlashCPlusPlus.spec.js.map +0 -1
- package/dist/tests/devfiles/DevfileSmoke.spec.js +0 -47
- package/dist/tests/devfiles/DevfileSmoke.spec.js.map +0 -1
- package/dist/tests/devfiles/DotNetCore.spec.js +0 -81
- package/dist/tests/devfiles/DotNetCore.spec.js.map +0 -1
- package/dist/tests/devfiles/Go.spec.js +0 -72
- package/dist/tests/devfiles/Go.spec.js.map +0 -1
- package/dist/tests/devfiles/JavaMaven.spec.js +0 -60
- package/dist/tests/devfiles/JavaMaven.spec.js.map +0 -1
- package/dist/tests/devfiles/JavaSpringBoot.spec.js +0 -66
- package/dist/tests/devfiles/JavaSpringBoot.spec.js.map +0 -1
- package/dist/tests/devfiles/JavaVertx.spec.js +0 -60
- package/dist/tests/devfiles/JavaVertx.spec.js.map +0 -1
- package/dist/tests/devfiles/NodeJS.spec.js +0 -64
- package/dist/tests/devfiles/NodeJS.spec.js.map +0 -1
- package/dist/tests/devfiles/PHPSimple.spec.js +0 -74
- package/dist/tests/devfiles/PHPSimple.spec.js.map +0 -1
- package/dist/tests/devfiles/Python.spec.js +0 -58
- package/dist/tests/devfiles/Python.spec.js.map +0 -1
- package/dist/tests/devfiles/PythonDjango.spec.js +0 -61
- package/dist/tests/devfiles/PythonDjango.spec.js.map +0 -1
- package/dist/tests/devfiles/Quarkus.spec.js +0 -69
- package/dist/tests/devfiles/Quarkus.spec.js.map +0 -1
- package/dist/tests/devfiles/Scala.spec.js +0 -66
- package/dist/tests/devfiles/Scala.spec.js.map +0 -1
- package/dist/tests/e2e/FactoryUrl.spec.js +0 -40
- package/dist/tests/e2e/FactoryUrl.spec.js.map +0 -1
- package/dist/tests/e2e/GitPublishBranch.spec.js +0 -90
- package/dist/tests/e2e/GitPublishBranch.spec.js.map +0 -1
- package/dist/tests/e2e/GitSelfSignCert.spec.js +0 -90
- package/dist/tests/e2e/GitSelfSignCert.spec.js.map +0 -1
- package/dist/tests/e2e/GitSsh.spec.js +0 -120
- package/dist/tests/e2e/GitSsh.spec.js.map +0 -1
- package/dist/tests/e2e/OpenshiftConnector.spec.js +0 -124
- package/dist/tests/e2e/OpenshiftConnector.spec.js.map +0 -1
- package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js +0 -50
- package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +0 -1
- package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js +0 -48
- package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +0 -1
- package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js +0 -48
- package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +0 -1
- package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js +0 -278
- package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js.map +0 -1
- package/dist/tests/e2e_happy_path/HappyPath.spec.js +0 -314
- package/dist/tests/e2e_happy_path/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/LoadTest.spec.js +0 -41
- package/dist/tests/load_test/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/GitHubPullRequestPlugin.spec.js +0 -118
- package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/InstallPluginUsingUI.spec.js +0 -63
- package/dist/tests/plugins/InstallPluginUsingUI.spec.js.map +0 -1
- package/dist/tests/plugins/JavaPlugin.spec.js +0 -82
- package/dist/tests/plugins/JavaPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/PhpPlugin.spec.js +0 -96
- package/dist/tests/plugins/PhpPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/PythonPlugin.spec.js +0 -72
- package/dist/tests/plugins/PythonPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/TypescriptPlugin.spec.js +0 -135
- package/dist/tests/plugins/TypescriptPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js +0 -69
- package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js +0 -82
- package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/VscodeValePlugin.spec.js +0 -70
- package/dist/tests/plugins/VscodeValePlugin.spec.js.map +0 -1
- package/dist/tests/plugins/VscodeXmlPlugin.spec.js +0 -81
- package/dist/tests/plugins/VscodeXmlPlugin.spec.js.map +0 -1
- package/dist/tests/plugins/VscodeYamlPlugin.spec.js +0 -78
- package/dist/tests/plugins/VscodeYamlPlugin.spec.js.map +0 -1
- package/dist/testsLibrary/CodeExecutionTests.js +0 -248
- package/dist/testsLibrary/CodeExecutionTests.js.map +0 -1
- package/dist/testsLibrary/LanguageServerTests.js +0 -230
- package/dist/testsLibrary/LanguageServerTests.js.map +0 -1
- package/dist/testsLibrary/ProjectAndFileTests.js +0 -105
- package/dist/testsLibrary/ProjectAndFileTests.js.map +0 -1
- package/dist/testsLibrary/WorkspaceHandlingTests.js +0 -167
- package/dist/testsLibrary/WorkspaceHandlingTests.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/PreferencesHandler.js +0 -142
- package/dist/utils/PreferencesHandler.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/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/TestConstants.ts
CHANGED
|
@@ -17,6 +17,11 @@ function getBaseUrl(): string {
|
|
|
17
17
|
return baseUrl.replace(/\/$/, '');
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export enum EditorType {
|
|
21
|
+
THEIA = 'theia',
|
|
22
|
+
CHE_CODE = 'che-code'
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
export const TestConstants = {
|
|
21
26
|
/**
|
|
22
27
|
* Base URL of the application which should be checked
|
|
@@ -54,6 +59,24 @@ export const TestConstants = {
|
|
|
54
59
|
*/
|
|
55
60
|
TS_SELENIUM_RESOLUTION_HEIGHT: Number(process.env.TS_SELENIUM_RESOLUTION_HEIGHT) || 1080,
|
|
56
61
|
|
|
62
|
+
/**
|
|
63
|
+
* Editor the tests are running against, "code" by default.
|
|
64
|
+
* Possible values: "che-code", "theia"
|
|
65
|
+
*/
|
|
66
|
+
TS_SELENIUM_EDITOR: process.env.TS_SELENIUM_EDITOR || EditorType.CHE_CODE,
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Base version of VSCode editor for monaco-page-objects, "1.37.0" by default.
|
|
70
|
+
*/
|
|
71
|
+
TS_SELENIUM_MONACO_PAGE_OBJECTS_BASE_VERSION: process.env.TS_SELENIUM_MONACO_PAGE_OBJECTS_BASE_VERSION || '1.37.0',
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Latest compatible version to be used, based on versions available in
|
|
75
|
+
* https://github.com/redhat-developer/vscode-extension-tester/tree/master/locators/lib ,
|
|
76
|
+
* "1.73.0" by default.
|
|
77
|
+
*/
|
|
78
|
+
TS_SELENIUM_MONACO_PAGE_OBJECTS_USE_VERSION: process.env.TS_SELENIUM_MONACO_PAGE_OBJECTS_USE_VERSION || '1.73.0',
|
|
79
|
+
|
|
57
80
|
/**
|
|
58
81
|
* Default ammount of tries, "5" by default.
|
|
59
82
|
*/
|
package/driver/CheReporter.ts
CHANGED
|
@@ -13,16 +13,18 @@ import { inversifyConfig } from '..';
|
|
|
13
13
|
import { TYPES, CLASSES } from '..';
|
|
14
14
|
import * as fs from 'fs';
|
|
15
15
|
import * as rm from 'rimraf';
|
|
16
|
-
import { TestConstants } from '../TestConstants';
|
|
16
|
+
import { EditorType, TestConstants } from '../TestConstants';
|
|
17
17
|
import { logging } from 'selenium-webdriver';
|
|
18
18
|
import { DriverHelper } from '../utils/DriverHelper';
|
|
19
19
|
import { ScreenCatcher } from '../utils/ScreenCatcher';
|
|
20
20
|
import { ITestWorkspaceUtil } from '../utils/workspace/ITestWorkspaceUtil';
|
|
21
|
-
|
|
21
|
+
import { AskForConfirmationTypeTheia, PreferencesHandlerTheia, TerminalRendererTypeTheia } from '../utils/theia/PreferencesHandlerTheia';
|
|
22
22
|
import { CheApiRequestHandler } from '../utils/requestHandlers/CheApiRequestHandler';
|
|
23
23
|
import { TimeoutConstants } from '../TimeoutConstants';
|
|
24
24
|
import { Logger } from '../utils/Logger';
|
|
25
25
|
import { Sanitizer } from '../utils/Sanitizer';
|
|
26
|
+
import * as monacoPageObjects from 'monaco-page-objects';
|
|
27
|
+
import * as vscodeExtensionTesterLocators from 'vscode-extension-tester-locators';
|
|
26
28
|
|
|
27
29
|
const e2eContainer = inversifyConfig.e2eContainer;
|
|
28
30
|
const driver: IDriver = e2eContainer.get(TYPES.Driver);
|
|
@@ -32,7 +34,6 @@ const sanitizer: Sanitizer = e2eContainer.get(CLASSES.Sanitizer);
|
|
|
32
34
|
let methodIndex: number = 0;
|
|
33
35
|
let deleteScreencast: boolean = true;
|
|
34
36
|
let testWorkspaceUtil: ITestWorkspaceUtil = e2eContainer.get(TYPES.WorkspaceUtil);
|
|
35
|
-
// let preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
|
|
36
37
|
|
|
37
38
|
class CheReporter extends mocha.reporters.Spec {
|
|
38
39
|
|
|
@@ -56,6 +57,8 @@ class CheReporter extends mocha.reporters.Spec {
|
|
|
56
57
|
TS_SELENIUM_USERNAME: ${TestConstants.TS_SELENIUM_USERNAME}
|
|
57
58
|
TS_SELENIUM_PASSWORD: ${TestConstants.TS_SELENIUM_PASSWORD}
|
|
58
59
|
|
|
60
|
+
TS_SELENIUM_EDITOR: ${TestConstants.TS_SELENIUM_EDITOR}
|
|
61
|
+
|
|
59
62
|
TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME: ${TestConstants.TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME}
|
|
60
63
|
TS_SELENIUM_DELAY_BETWEEN_SCREENSHOTS: ${TestConstants.TS_SELENIUM_DELAY_BETWEEN_SCREENSHOTS}
|
|
61
64
|
TS_SELENIUM_REPORT_FOLDER: ${TestConstants.TS_SELENIUM_REPORT_FOLDER}
|
|
@@ -86,8 +89,16 @@ class CheReporter extends mocha.reporters.Spec {
|
|
|
86
89
|
if (TestConstants.TS_SELENIUM_RESPONSE_INTERCEPTOR) {
|
|
87
90
|
CheApiRequestHandler.enableResponseInterceptor();
|
|
88
91
|
}
|
|
89
|
-
|
|
90
|
-
|
|
92
|
+
|
|
93
|
+
if (TestConstants.TS_SELENIUM_EDITOR === EditorType.THEIA) {
|
|
94
|
+
let preferencesHandler: PreferencesHandlerTheia = e2eContainer.get(CLASSES.PreferencesHandlerTheia);
|
|
95
|
+
await preferencesHandler.setConfirmExit(AskForConfirmationTypeTheia.never);
|
|
96
|
+
await preferencesHandler.setTerminalType(TerminalRendererTypeTheia.dom);
|
|
97
|
+
} else if (TestConstants.TS_SELENIUM_EDITOR === EditorType.CHE_CODE) {
|
|
98
|
+
// init vscode-extension-tester monaco-page-objects
|
|
99
|
+
monacoPageObjects.initPageObjects(TestConstants.TS_SELENIUM_MONACO_PAGE_OBJECTS_USE_VERSION, TestConstants.TS_SELENIUM_MONACO_PAGE_OBJECTS_BASE_VERSION, vscodeExtensionTesterLocators.getLocatorsPath(), driver.get(), 'google-chrome');
|
|
100
|
+
}
|
|
101
|
+
|
|
91
102
|
});
|
|
92
103
|
|
|
93
104
|
runner.on('test', async function (test: mocha.Test) {
|
package/driver/ChromeDriver.ts
CHANGED
|
@@ -22,17 +22,19 @@ export class ChromeDriver implements IDriver {
|
|
|
22
22
|
constructor() {
|
|
23
23
|
const options: Options = this.getDriverOptions();
|
|
24
24
|
this.driver = this.getDriverBuilder(options).build();
|
|
25
|
-
|
|
26
|
-
this.driver
|
|
27
|
-
.manage()
|
|
28
|
-
.window()
|
|
29
|
-
.setSize(TestConstants.TS_SELENIUM_RESOLUTION_WIDTH, TestConstants.TS_SELENIUM_RESOLUTION_HEIGHT);
|
|
30
25
|
}
|
|
31
26
|
|
|
32
27
|
get(): ThenableWebDriver {
|
|
33
28
|
return this.driver;
|
|
34
29
|
}
|
|
35
30
|
|
|
31
|
+
async setWindowSize() {
|
|
32
|
+
await this.driver
|
|
33
|
+
.manage()
|
|
34
|
+
.window()
|
|
35
|
+
.setSize(TestConstants.TS_SELENIUM_RESOLUTION_WIDTH, TestConstants.TS_SELENIUM_RESOLUTION_HEIGHT);
|
|
36
|
+
}
|
|
37
|
+
|
|
36
38
|
private getDriverOptions(): Options {
|
|
37
39
|
let options: Options = new Options()
|
|
38
40
|
.addArguments('--no-sandbox')
|
package/index.ts
CHANGED
|
@@ -10,7 +10,7 @@ export * from './utils/AnimationChecker';
|
|
|
10
10
|
export * from './utils/BrowserTabsUtil';
|
|
11
11
|
export * from './utils/DriverHelper';
|
|
12
12
|
export * from './utils/Logger';
|
|
13
|
-
export * from './utils/
|
|
13
|
+
export * from './utils/theia/PreferencesHandlerTheia';
|
|
14
14
|
export * from './utils/requestHandlers/CheApiRequestHandler';
|
|
15
15
|
export * from './utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler';
|
|
16
16
|
export * from './utils/requestHandlers/headers/IAuthorizationHeaderHandler';
|
|
@@ -30,28 +30,28 @@ export * from './pageobjects/dashboard/Dashboard';
|
|
|
30
30
|
export * from './pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins';
|
|
31
31
|
export * from './pageobjects/dashboard/workspace-details/WorkspaceDetails';
|
|
32
32
|
export * from './pageobjects/dashboard/Workspaces';
|
|
33
|
-
export * from './pageobjects/ide/ContextMenu';
|
|
34
|
-
export * from './pageobjects/ide/DebugView';
|
|
35
|
-
export * from './pageobjects/ide/DialogWindow';
|
|
36
|
-
export * from './pageobjects/ide/Editor';
|
|
37
|
-
export * from './pageobjects/ide/Ide';
|
|
38
|
-
export * from './pageobjects/ide/LeftToolBar';
|
|
39
|
-
export * from './pageobjects/ide/NavigationBar';
|
|
40
|
-
export * from './pageobjects/ide/NotificationCenter';
|
|
41
|
-
export * from './pageobjects/ide/OpenDialogWidget';
|
|
42
|
-
export * from './pageobjects/ide/OpenEditors';
|
|
43
|
-
export * from './pageobjects/ide/OpenWorkspaceWidget';
|
|
44
|
-
export * from './pageobjects/ide/plugins/GitHubPullRequestPlugin';
|
|
45
|
-
export * from './pageobjects/ide/plugins/GitPlugin';
|
|
46
|
-
export * from './pageobjects/ide/plugins/KubernetesPlugin';
|
|
47
|
-
export * from './pageobjects/ide/plugins/OpenshiftPlugin';
|
|
48
|
-
export * from './pageobjects/ide/plugins/PluginsView';
|
|
49
|
-
export * from './pageobjects/ide/PreviewWidget';
|
|
50
|
-
export * from './pageobjects/ide/ProjectTree';
|
|
51
|
-
export * from './pageobjects/ide/QuickOpenContainer';
|
|
52
|
-
export * from './pageobjects/ide/RightToolBar';
|
|
53
|
-
export * from './pageobjects/ide/Terminal';
|
|
54
|
-
export * from './pageobjects/ide/TopMenu';
|
|
33
|
+
export * from './pageobjects/ide/theia/ContextMenu';
|
|
34
|
+
export * from './pageobjects/ide/theia/DebugView';
|
|
35
|
+
export * from './pageobjects/ide/theia/DialogWindow';
|
|
36
|
+
export * from './pageobjects/ide/theia/Editor';
|
|
37
|
+
export * from './pageobjects/ide/theia/Ide';
|
|
38
|
+
export * from './pageobjects/ide/theia/LeftToolBar';
|
|
39
|
+
export * from './pageobjects/ide/theia/NavigationBar';
|
|
40
|
+
export * from './pageobjects/ide/theia/NotificationCenter';
|
|
41
|
+
export * from './pageobjects/ide/theia/OpenDialogWidget';
|
|
42
|
+
export * from './pageobjects/ide/theia/OpenEditors';
|
|
43
|
+
export * from './pageobjects/ide/theia/OpenWorkspaceWidget';
|
|
44
|
+
export * from './pageobjects/ide/theia/plugins/GitHubPullRequestPlugin';
|
|
45
|
+
export * from './pageobjects/ide/theia/plugins/GitPlugin';
|
|
46
|
+
export * from './pageobjects/ide/theia/plugins/KubernetesPlugin';
|
|
47
|
+
export * from './pageobjects/ide/theia/plugins/OpenshiftPlugin';
|
|
48
|
+
export * from './pageobjects/ide/theia/plugins/PluginsView';
|
|
49
|
+
export * from './pageobjects/ide/theia/PreviewWidget';
|
|
50
|
+
export * from './pageobjects/ide/theia/ProjectTree';
|
|
51
|
+
export * from './pageobjects/ide/theia/QuickOpenContainer';
|
|
52
|
+
export * from './pageobjects/ide/theia/RightToolBar';
|
|
53
|
+
export * from './pageobjects/ide/theia/Terminal';
|
|
54
|
+
export * from './pageobjects/ide/theia/TopMenu';
|
|
55
55
|
export * from './pageobjects/login/ICheLoginPage';
|
|
56
56
|
export * from './pageobjects/login/IOcpLoginPage';
|
|
57
57
|
export * from './pageobjects/login/MultiUserLoginPage';
|
|
@@ -62,7 +62,7 @@ export * from './pageobjects/openshift/CheLoginPage';
|
|
|
62
62
|
export * from './pageobjects/openshift/OcpLoginPage';
|
|
63
63
|
export * from './pageobjects/third-parties/GitLoginPage';
|
|
64
64
|
export * from './pageobjects/third-parties/GitOauthAppsSettings';
|
|
65
|
-
export * from './testsLibrary/
|
|
66
|
-
export * from './testsLibrary/
|
|
67
|
-
export * from './testsLibrary/
|
|
65
|
+
export * from './testsLibrary/theia/CodeExecutionTestsTheia';
|
|
66
|
+
export * from './testsLibrary/theia/LanguageServerTestsTheia';
|
|
67
|
+
export * from './testsLibrary/theia/ProjectAndFileTestsTheia';
|
|
68
68
|
export * from './testsLibrary/WorkspaceHandlingTests';
|
package/initDefaultValues.sh
CHANGED
|
@@ -8,6 +8,7 @@ export TS_SELENIUM_PASSWORD=${TS_SELENIUM_PASSWORD:-"admin"}
|
|
|
8
8
|
export TS_SELENIUM_MULTIUSER=${TS_SELENIUM_MULTIUSER:-"true"}
|
|
9
9
|
export TS_SELENIUM_W3C_CHROME_OPTION=${TS_SELENIUM_W3C_CHROME_OPTION:-"true"}
|
|
10
10
|
export NODE_TLS_REJECT_UNAUTHORIZED=${NODE_TLS_REJECT_UNAUTHORIZED:-0}
|
|
11
|
+
export TS_SELENIUM_EDITOR=${TS_SELENIUM_EDITOR:-"code"}
|
|
11
12
|
|
|
12
13
|
if [ "$E2E_OCP_CLUSTER_VERSION" = "3.x" ] ; then
|
|
13
14
|
unset TS_OCP_LOGIN_PAGE_PROVIDER_TITLE
|
|
@@ -25,3 +26,4 @@ echo "TS_SELENIUM_PASSWORD = ${TS_SELENIUM_PASSWORD}"
|
|
|
25
26
|
echo "TS_SELENIUM_MULTIUSER = ${TS_SELENIUM_MULTIUSER}"
|
|
26
27
|
echo "TS_SELENIUM_W3C_CHROME_OPTION = ${TS_SELENIUM_W3C_CHROME_OPTION}"
|
|
27
28
|
echo "NODE_TLS_REJECT_UNAUTHORIZED = ${NODE_TLS_REJECT_UNAUTHORIZED}"
|
|
29
|
+
echo "TS_SELENIUM_EDITOR = ${TS_SELENIUM_EDITOR}"
|
package/initDevfileTests.sh
CHANGED
|
@@ -9,7 +9,11 @@ launchAllUserstories(){
|
|
|
9
9
|
echo "Launching all userstories";
|
|
10
10
|
echo ""
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
if [ "${TS_SELENIUM_EDITOR}" == "theia" ]; then
|
|
13
|
+
npm run lint && npm run tsc && mocha --config mocha-all-devfiles-theia.json ;
|
|
14
|
+
elif [ "${TS_SELENIUM_EDITOR}" == "code" ]; then
|
|
15
|
+
npm run lint && npm run tsc && mocha --config mocha-all-devfiles-code.json ;
|
|
16
|
+
fi
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
launchSingleUserstory(){
|
|
@@ -17,11 +21,11 @@ launchSingleUserstory(){
|
|
|
17
21
|
echo "Launching the \"${USERSTORY}\" userstory";
|
|
18
22
|
echo ""
|
|
19
23
|
|
|
20
|
-
tsc && mocha --config mocha-single-devfile.json --spec dist/tests/login/Login.spec.js --spec dist/tests/devfiles/${USERSTORY}.spec.js ;
|
|
24
|
+
tsc && mocha --config mocha-single-devfile.json --spec dist/tests/login/Login.spec.js --spec dist/tests/devfiles/${TS_SELENIUM_EDITOR}/${USERSTORY}.spec.js ;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
checkUserstoryName(){
|
|
24
|
-
local checkedName="$(ls tests/devfiles | grep ${USERSTORY}.spec.ts)";
|
|
28
|
+
local checkedName="$(ls tests/devfiles/${TS_SELENIUM_EDITOR} | grep ${USERSTORY}.spec.ts)";
|
|
25
29
|
|
|
26
30
|
if [ -z "$checkedName" ]; then
|
|
27
31
|
echo ""
|
package/initPluginTest.sh
CHANGED
package/inversify.config.ts
CHANGED
|
@@ -19,30 +19,30 @@ import { TestConstants } from './TestConstants';
|
|
|
19
19
|
import { ICheLoginPage } from './pageobjects/login/ICheLoginPage';
|
|
20
20
|
import { RegularUserOcpCheLoginPage } from './pageobjects/login/RegularUserOcpCheLoginPage';
|
|
21
21
|
import { MultiUserLoginPage } from './pageobjects/login/MultiUserLoginPage';
|
|
22
|
-
import { ContextMenu } from './pageobjects/ide/ContextMenu';
|
|
22
|
+
import { ContextMenu } from './pageobjects/ide/theia/ContextMenu';
|
|
23
23
|
import { DriverHelper } from './utils/DriverHelper';
|
|
24
24
|
import { Dashboard } from './pageobjects/dashboard/Dashboard';
|
|
25
25
|
import { Workspaces } from './pageobjects/dashboard/Workspaces';
|
|
26
26
|
import { WorkspaceDetails } from './pageobjects/dashboard/workspace-details/WorkspaceDetails';
|
|
27
27
|
import { WorkspaceDetailsPlugins } from './pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins';
|
|
28
|
-
import { Ide } from './pageobjects/ide/Ide';
|
|
29
|
-
import { ProjectTree } from './pageobjects/ide/ProjectTree';
|
|
30
|
-
import { OpenEditors } from './pageobjects/ide/OpenEditors';
|
|
31
|
-
import { Editor } from './pageobjects/ide/Editor';
|
|
32
|
-
import { TopMenu } from './pageobjects/ide/TopMenu';
|
|
33
|
-
import { QuickOpenContainer } from './pageobjects/ide/QuickOpenContainer';
|
|
34
|
-
import { PreviewWidget } from './pageobjects/ide/PreviewWidget';
|
|
35
|
-
import { GitPlugin } from './pageobjects/ide/plugins/GitPlugin';
|
|
36
|
-
import { RightToolBar } from './pageobjects/ide/RightToolBar';
|
|
37
|
-
import { Terminal } from './pageobjects/ide/Terminal';
|
|
38
|
-
import { DebugView } from './pageobjects/ide/DebugView';
|
|
39
|
-
import { DialogWindow } from './pageobjects/ide/DialogWindow';
|
|
28
|
+
import { Ide } from './pageobjects/ide/theia/Ide';
|
|
29
|
+
import { ProjectTree } from './pageobjects/ide/theia/ProjectTree';
|
|
30
|
+
import { OpenEditors } from './pageobjects/ide/theia/OpenEditors';
|
|
31
|
+
import { Editor } from './pageobjects/ide/theia/Editor';
|
|
32
|
+
import { TopMenu } from './pageobjects/ide/theia/TopMenu';
|
|
33
|
+
import { QuickOpenContainer } from './pageobjects/ide/theia/QuickOpenContainer';
|
|
34
|
+
import { PreviewWidget } from './pageobjects/ide/theia/PreviewWidget';
|
|
35
|
+
import { GitPlugin } from './pageobjects/ide/theia/plugins/GitPlugin';
|
|
36
|
+
import { RightToolBar } from './pageobjects/ide/theia/RightToolBar';
|
|
37
|
+
import { Terminal } from './pageobjects/ide/theia/Terminal';
|
|
38
|
+
import { DebugView } from './pageobjects/ide/theia/DebugView';
|
|
39
|
+
import { DialogWindow } from './pageobjects/ide/theia/DialogWindow';
|
|
40
40
|
import { ScreenCatcher } from './utils/ScreenCatcher';
|
|
41
41
|
import { OcpLoginPage } from './pageobjects/openshift/OcpLoginPage';
|
|
42
|
-
import { OpenWorkspaceWidget } from './pageobjects/ide/OpenWorkspaceWidget';
|
|
42
|
+
import { OpenWorkspaceWidget } from './pageobjects/ide/theia/OpenWorkspaceWidget';
|
|
43
43
|
import { CheLoginPage } from './pageobjects/openshift/CheLoginPage';
|
|
44
|
-
import { NotificationCenter } from './pageobjects/ide/NotificationCenter';
|
|
45
|
-
import {
|
|
44
|
+
import { NotificationCenter } from './pageobjects/ide/theia/NotificationCenter';
|
|
45
|
+
import { PreferencesHandlerTheia } from './utils/theia/PreferencesHandlerTheia';
|
|
46
46
|
import { IAuthorizationHeaderHandler } from './utils/requestHandlers/headers/IAuthorizationHeaderHandler';
|
|
47
47
|
import { CheMultiuserAuthorizationHeaderHandler } from './utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler';
|
|
48
48
|
import { CheMultiuserTokenHandler } from './utils/requestHandlers/tokens/CheMultiuserTokenHandler';
|
|
@@ -51,24 +51,24 @@ import { CheApiRequestHandler } from './utils/requestHandlers/CheApiRequestHandl
|
|
|
51
51
|
import { CheGitApi } from './utils/VCS/CheGitApi';
|
|
52
52
|
import { GitHubUtil } from './utils/VCS/github/GitHubUtil';
|
|
53
53
|
import { CreateWorkspace } from './pageobjects/dashboard/CreateWorkspace';
|
|
54
|
-
import { OpenshiftPlugin } from './pageobjects/ide/plugins/OpenshiftPlugin';
|
|
55
|
-
import { OpenDialogWidget } from './pageobjects/ide/OpenDialogWidget';
|
|
54
|
+
import { OpenshiftPlugin } from './pageobjects/ide/theia/plugins/OpenshiftPlugin';
|
|
55
|
+
import { OpenDialogWidget } from './pageobjects/ide/theia/OpenDialogWidget';
|
|
56
56
|
import { UpdateAccountInformationPage } from './pageobjects/login/UpdateAccountInformationPage';
|
|
57
|
-
import { LeftToolBar } from './pageobjects/ide/LeftToolBar';
|
|
58
|
-
import { KubernetesPlugin } from './pageobjects/ide/plugins/KubernetesPlugin';
|
|
57
|
+
import { LeftToolBar } from './pageobjects/ide/theia/LeftToolBar';
|
|
58
|
+
import { KubernetesPlugin } from './pageobjects/ide/theia/plugins/KubernetesPlugin';
|
|
59
59
|
import { BrowserTabsUtil } from './utils/BrowserTabsUtil';
|
|
60
|
-
import { PluginsView } from './pageobjects/ide/plugins/PluginsView';
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
60
|
+
import { PluginsView } from './pageobjects/ide/theia/plugins/PluginsView';
|
|
61
|
+
import { LanguageServerTestsTheia } from './testsLibrary/theia/LanguageServerTestsTheia';
|
|
62
|
+
import { CodeExecutionTestsTheia } from './testsLibrary/theia/CodeExecutionTestsTheia';
|
|
63
|
+
import { ProjectAndFileTestsTheia } from './testsLibrary/theia/ProjectAndFileTestsTheia';
|
|
64
64
|
import { WorkspaceHandlingTests } from './testsLibrary/WorkspaceHandlingTests';
|
|
65
|
-
import { GitHubPullRequestPlugin } from './pageobjects/ide/plugins/GitHubPullRequestPlugin';
|
|
65
|
+
import { GitHubPullRequestPlugin } from './pageobjects/ide/theia/plugins/GitHubPullRequestPlugin';
|
|
66
66
|
import { GitLoginPage } from './pageobjects/third-parties/GitLoginPage';
|
|
67
67
|
import { GitOauthAppsSettings } from './pageobjects/third-parties/GitOauthAppsSettings';
|
|
68
68
|
import { AnimationChecker } from './utils/AnimationChecker';
|
|
69
69
|
import { WorkspaceNameHandler } from './utils/WorkspaceNameHandler';
|
|
70
70
|
import { Sanitizer } from './utils/Sanitizer';
|
|
71
|
-
import { NavigationBar } from './pageobjects/ide/NavigationBar';
|
|
71
|
+
import { NavigationBar } from './pageobjects/ide/theia/NavigationBar';
|
|
72
72
|
import { ApiUrlResolver } from './utils/workspace/ApiUrlResolver';
|
|
73
73
|
import { ITestWorkspaceUtil } from './utils/workspace/ITestWorkspaceUtil';
|
|
74
74
|
|
|
@@ -112,7 +112,7 @@ e2eContainer.bind<OcpLoginPage>(CLASSES.OcpLoginPage).to(OcpLoginPage);
|
|
|
112
112
|
e2eContainer.bind<OpenWorkspaceWidget>(CLASSES.OpenWorkspaceWidget).to(OpenWorkspaceWidget);
|
|
113
113
|
e2eContainer.bind<CheLoginPage>(CLASSES.CheLoginPage).to(CheLoginPage);
|
|
114
114
|
e2eContainer.bind<NotificationCenter>(CLASSES.NotificationCenter).to(NotificationCenter);
|
|
115
|
-
e2eContainer.bind<
|
|
115
|
+
e2eContainer.bind<PreferencesHandlerTheia>(CLASSES.PreferencesHandlerTheia).to(PreferencesHandlerTheia);
|
|
116
116
|
e2eContainer.bind<CheApiRequestHandler>(CLASSES.CheApiRequestHandler).to(CheApiRequestHandler);
|
|
117
117
|
e2eContainer.bind<CheGitApi>(CLASSES.CheGitApi).to(CheGitApi);
|
|
118
118
|
e2eContainer.bind<GitHubUtil>(CLASSES.GitHubUtil).to(GitHubUtil);
|
|
@@ -122,9 +122,9 @@ e2eContainer.bind<OpenDialogWidget>(CLASSES.OpenDialogWidget).to(OpenDialogWidge
|
|
|
122
122
|
e2eContainer.bind<UpdateAccountInformationPage>(CLASSES.UpdateAccountInformationPage).to(UpdateAccountInformationPage);
|
|
123
123
|
e2eContainer.bind<KubernetesPlugin>(CLASSES.KubernetesPlugin).to(KubernetesPlugin);
|
|
124
124
|
e2eContainer.bind<PluginsView>(CLASSES.PluginsView).to(PluginsView);
|
|
125
|
-
e2eContainer.bind<
|
|
126
|
-
e2eContainer.bind<
|
|
127
|
-
e2eContainer.bind<
|
|
125
|
+
e2eContainer.bind<LanguageServerTestsTheia>(CLASSES.LanguageServerTestsTheia).to(LanguageServerTestsTheia);
|
|
126
|
+
e2eContainer.bind<CodeExecutionTestsTheia>(CLASSES.CodeExecutionTestsTheia).to(CodeExecutionTestsTheia);
|
|
127
|
+
e2eContainer.bind<ProjectAndFileTestsTheia>(CLASSES.ProjectAndFileTestsTheia).to(ProjectAndFileTestsTheia);
|
|
128
128
|
e2eContainer.bind<WorkspaceHandlingTests>(CLASSES.WorkspaceHandlingTests).to(WorkspaceHandlingTests);
|
|
129
129
|
e2eContainer.bind<WorkspaceNameHandler>(CLASSES.WorkspaceNameHandler).to(WorkspaceNameHandler);
|
|
130
130
|
e2eContainer.bind<GitHubPullRequestPlugin>(CLASSES.GitHubPullRequestPlugin).to(GitHubPullRequestPlugin);
|
package/inversify.types.ts
CHANGED
|
@@ -48,7 +48,7 @@ const CLASSES = {
|
|
|
48
48
|
CheGitApi: 'CheGitApi',
|
|
49
49
|
GitPlugin: 'GitPlugin',
|
|
50
50
|
NotificationCenter: 'NotificationCenter',
|
|
51
|
-
|
|
51
|
+
PreferencesHandlerTheia: 'PreferencesHandlerTheia',
|
|
52
52
|
CheApiRequestHandler: 'CheApiRequestHandler',
|
|
53
53
|
CreateWorkspace: 'CreateWorkspace',
|
|
54
54
|
OpenDialogWidget: 'OpenDialogWidget',
|
|
@@ -56,9 +56,9 @@ const CLASSES = {
|
|
|
56
56
|
KubernetesPlugin: 'KubernetesPlugin',
|
|
57
57
|
BrowserTabsUtil: 'BrowserTabsUtil',
|
|
58
58
|
PluginsView: 'PluginsView',
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
LanguageServerTestsTheia: 'LanguageServerTestsTheia',
|
|
60
|
+
CodeExecutionTestsTheia: 'CodeExecutionTestsTheia',
|
|
61
|
+
ProjectAndFileTestsTheia: 'ProjectAndFileTestsTheia',
|
|
62
62
|
WorkspaceHandlingTests: 'WorkspaceHandlingTests',
|
|
63
63
|
WorkspaceNameHandler: 'WorkspaceNameHandler',
|
|
64
64
|
GitHubPullRequestPlugin: 'GitHubPullRequestPlugin',
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"require": "source-map-support/register",
|
|
8
8
|
"spec": [
|
|
9
9
|
"dist/tests/login/Login.spec.js",
|
|
10
|
-
"dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js",
|
|
11
|
-
"dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js"
|
|
10
|
+
"dist/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.js",
|
|
11
|
+
"dist/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"require": "source-map-support/register",
|
|
7
7
|
"spec": [
|
|
8
8
|
"dist/tests/login/Login.spec.js",
|
|
9
|
-
"dist/tests/plugins/VscodeXmlPlugin.spec.js",
|
|
10
|
-
"dist/tests/plugins/VscodeYamlPlugin.spec.js"
|
|
9
|
+
"dist/tests/plugins/theia/VscodeXmlPlugin.spec.js",
|
|
10
|
+
"dist/tests/plugins/theia/VscodeYamlPlugin.spec.js"
|
|
11
11
|
]
|
|
12
12
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"timeout": "1200000",
|
|
3
|
+
"reporter": "dist/driver/CheReporter.js",
|
|
4
|
+
"ui": "tdd",
|
|
5
|
+
"bail": true,
|
|
6
|
+
"full-trace": true,
|
|
7
|
+
"support": "source-map-support/register",
|
|
8
|
+
"spec": ["dist/tests/login/Login.spec.js", "dist/tests/devfiles/theia/JavaSpringBoot.spec.js"]
|
|
9
|
+
}
|
package/mocha-scala.json
ADDED
package/mocha-theia.json
ADDED