@eclipse-che/che-e2e 7.39.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/README.md +86 -0
- package/TestConstants.ts +263 -0
- package/TimeoutConstants.ts +220 -0
- package/dist/TestConstants.d.ts +206 -0
- package/dist/TestConstants.d.ts.map +1 -0
- package/dist/TestConstants.js +216 -0
- package/dist/TestConstants.js.map +1 -0
- package/dist/TimeoutConstants.d.ts +164 -0
- package/dist/TimeoutConstants.d.ts.map +1 -0
- package/dist/TimeoutConstants.js +175 -0
- package/dist/TimeoutConstants.js.map +1 -0
- package/dist/driver/CheReporter.d.ts +18 -0
- package/dist/driver/CheReporter.d.ts.map +1 -0
- package/dist/driver/CheReporter.js +180 -0
- package/dist/driver/CheReporter.js.map +1 -0
- package/dist/driver/ChromeDriver.d.ts +21 -0
- package/dist/driver/ChromeDriver.d.ts.map +1 -0
- package/dist/driver/ChromeDriver.js +75 -0
- package/dist/driver/ChromeDriver.js.map +1 -0
- package/dist/driver/IDriver.d.ts +14 -0
- package/dist/driver/IDriver.d.ts.map +1 -0
- package/dist/driver/IDriver.js +3 -0
- package/dist/driver/IDriver.js.map +1 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +92 -0
- package/dist/index.js.map +1 -0
- package/dist/inversify.config.d.ts +13 -0
- package/dist/inversify.config.d.ts.map +1 -0
- package/dist/inversify.config.js +126 -0
- package/dist/inversify.config.js.map +1 -0
- package/dist/inversify.types.d.ts +68 -0
- package/dist/inversify.types.d.ts.map +1 -0
- package/dist/inversify.types.js +72 -0
- package/dist/inversify.types.js.map +1 -0
- package/dist/pageobjects/dashboard/CreateWorkspace.d.ts +20 -0
- package/dist/pageobjects/dashboard/CreateWorkspace.d.ts.map +1 -0
- package/dist/pageobjects/dashboard/CreateWorkspace.js +65 -0
- package/dist/pageobjects/dashboard/CreateWorkspace.js.map +1 -0
- package/dist/pageobjects/dashboard/Dashboard.d.ts +24 -0
- package/dist/pageobjects/dashboard/Dashboard.d.ts.map +1 -0
- package/dist/pageobjects/dashboard/Dashboard.js +111 -0
- package/dist/pageobjects/dashboard/Dashboard.js.map +1 -0
- package/dist/pageobjects/dashboard/Workspaces.d.ts +44 -0
- package/dist/pageobjects/dashboard/Workspaces.d.ts.map +1 -0
- package/dist/pageobjects/dashboard/Workspaces.js +157 -0
- package/dist/pageobjects/dashboard/Workspaces.js.map +1 -0
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.d.ts +42 -0
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.d.ts.map +1 -0
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js +138 -0
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js.map +1 -0
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.d.ts +29 -0
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.d.ts.map +1 -0
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js +97 -0
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.js.map +1 -0
- package/dist/pageobjects/ide/ContextMenu.d.ts +22 -0
- package/dist/pageobjects/ide/ContextMenu.d.ts.map +1 -0
- package/dist/pageobjects/ide/ContextMenu.js +66 -0
- package/dist/pageobjects/ide/ContextMenu.js.map +1 -0
- package/dist/pageobjects/ide/DebugView.d.ts +32 -0
- package/dist/pageobjects/ide/DebugView.d.ts.map +1 -0
- package/dist/pageobjects/ide/DebugView.js +98 -0
- package/dist/pageobjects/ide/DebugView.js.map +1 -0
- package/dist/pageobjects/ide/DialogWindow.d.ts +28 -0
- package/dist/pageobjects/ide/DialogWindow.d.ts.map +1 -0
- package/dist/pageobjects/ide/DialogWindow.js +102 -0
- package/dist/pageobjects/ide/DialogWindow.js.map +1 -0
- package/dist/pageobjects/ide/Editor.d.ts +78 -0
- package/dist/pageobjects/ide/Editor.d.ts.map +1 -0
- package/dist/pageobjects/ide/Editor.js +463 -0
- package/dist/pageobjects/ide/Editor.js.map +1 -0
- package/dist/pageobjects/ide/Ide.d.ts +61 -0
- package/dist/pageobjects/ide/Ide.d.ts.map +1 -0
- package/dist/pageobjects/ide/Ide.js +312 -0
- package/dist/pageobjects/ide/Ide.js.map +1 -0
- package/dist/pageobjects/ide/LeftToolBar.d.ts +23 -0
- package/dist/pageobjects/ide/LeftToolBar.d.ts.map +1 -0
- package/dist/pageobjects/ide/LeftToolBar.js +81 -0
- package/dist/pageobjects/ide/LeftToolBar.js.map +1 -0
- package/dist/pageobjects/ide/NavigationBar.d.ts +9 -0
- package/dist/pageobjects/ide/NavigationBar.d.ts.map +1 -0
- package/dist/pageobjects/ide/NavigationBar.js +57 -0
- package/dist/pageobjects/ide/NavigationBar.js.map +1 -0
- package/dist/pageobjects/ide/NotificationCenter.d.ts +22 -0
- package/dist/pageobjects/ide/NotificationCenter.d.ts.map +1 -0
- package/dist/pageobjects/ide/NotificationCenter.js +76 -0
- package/dist/pageobjects/ide/NotificationCenter.js.map +1 -0
- package/dist/pageobjects/ide/OpenDialogWidget.d.ts +36 -0
- package/dist/pageobjects/ide/OpenDialogWidget.d.ts.map +1 -0
- package/dist/pageobjects/ide/OpenDialogWidget.js +100 -0
- package/dist/pageobjects/ide/OpenDialogWidget.js.map +1 -0
- package/dist/pageobjects/ide/OpenWorkspaceWidget.d.ts +17 -0
- package/dist/pageobjects/ide/OpenWorkspaceWidget.d.ts.map +1 -0
- package/dist/pageobjects/ide/OpenWorkspaceWidget.js +62 -0
- package/dist/pageobjects/ide/OpenWorkspaceWidget.js.map +1 -0
- package/dist/pageobjects/ide/PreviewWidget.d.ts +35 -0
- package/dist/pageobjects/ide/PreviewWidget.d.ts.map +1 -0
- package/dist/pageobjects/ide/PreviewWidget.js +127 -0
- package/dist/pageobjects/ide/PreviewWidget.js.map +1 -0
- package/dist/pageobjects/ide/ProjectTree.d.ts +53 -0
- package/dist/pageobjects/ide/ProjectTree.d.ts.map +1 -0
- package/dist/pageobjects/ide/ProjectTree.js +275 -0
- package/dist/pageobjects/ide/ProjectTree.js.map +1 -0
- package/dist/pageobjects/ide/QuickOpenContainer.d.ts +20 -0
- package/dist/pageobjects/ide/QuickOpenContainer.d.ts.map +1 -0
- package/dist/pageobjects/ide/QuickOpenContainer.js +70 -0
- package/dist/pageobjects/ide/QuickOpenContainer.js.map +1 -0
- package/dist/pageobjects/ide/RightToolBar.d.ts +8 -0
- package/dist/pageobjects/ide/RightToolBar.d.ts.map +1 -0
- package/dist/pageobjects/ide/RightToolBar.js +51 -0
- package/dist/pageobjects/ide/RightToolBar.js.map +1 -0
- package/dist/pageobjects/ide/Terminal.d.ts +36 -0
- package/dist/pageobjects/ide/Terminal.d.ts.map +1 -0
- package/dist/pageobjects/ide/Terminal.js +204 -0
- package/dist/pageobjects/ide/Terminal.js.map +1 -0
- package/dist/pageobjects/ide/TopMenu.d.ts +28 -0
- package/dist/pageobjects/ide/TopMenu.d.ts.map +1 -0
- package/dist/pageobjects/ide/TopMenu.js +109 -0
- package/dist/pageobjects/ide/TopMenu.js.map +1 -0
- package/dist/pageobjects/ide/plugins/GitHubPullRequestPlugin.d.ts +36 -0
- package/dist/pageobjects/ide/plugins/GitHubPullRequestPlugin.d.ts.map +1 -0
- package/dist/pageobjects/ide/plugins/GitHubPullRequestPlugin.js +128 -0
- package/dist/pageobjects/ide/plugins/GitHubPullRequestPlugin.js.map +1 -0
- package/dist/pageobjects/ide/plugins/GitPlugin.d.ts +35 -0
- package/dist/pageobjects/ide/plugins/GitPlugin.d.ts.map +1 -0
- package/dist/pageobjects/ide/plugins/GitPlugin.js +120 -0
- package/dist/pageobjects/ide/plugins/GitPlugin.js.map +1 -0
- package/dist/pageobjects/ide/plugins/KubernetesPlugin.d.ts +32 -0
- package/dist/pageobjects/ide/plugins/KubernetesPlugin.d.ts.map +1 -0
- package/dist/pageobjects/ide/plugins/KubernetesPlugin.js +107 -0
- package/dist/pageobjects/ide/plugins/KubernetesPlugin.js.map +1 -0
- package/dist/pageobjects/ide/plugins/OpenshiftPlugin.d.ts +38 -0
- package/dist/pageobjects/ide/plugins/OpenshiftPlugin.d.ts.map +1 -0
- package/dist/pageobjects/ide/plugins/OpenshiftPlugin.js +99 -0
- package/dist/pageobjects/ide/plugins/OpenshiftPlugin.js.map +1 -0
- package/dist/pageobjects/ide/plugins/PluginsView.d.ts +43 -0
- package/dist/pageobjects/ide/plugins/PluginsView.d.ts.map +1 -0
- package/dist/pageobjects/ide/plugins/PluginsView.js +166 -0
- package/dist/pageobjects/ide/plugins/PluginsView.js.map +1 -0
- package/dist/pageobjects/login/ICheLoginPage.d.ts +13 -0
- package/dist/pageobjects/login/ICheLoginPage.d.ts.map +1 -0
- package/dist/pageobjects/login/ICheLoginPage.js +12 -0
- package/dist/pageobjects/login/ICheLoginPage.js.map +1 -0
- package/dist/pageobjects/login/IOcpLoginPage.d.ts +13 -0
- package/dist/pageobjects/login/IOcpLoginPage.d.ts.map +1 -0
- package/dist/pageobjects/login/IOcpLoginPage.js +12 -0
- package/dist/pageobjects/login/IOcpLoginPage.js.map +1 -0
- package/dist/pageobjects/login/MultiUserLoginPage.d.ts +18 -0
- package/dist/pageobjects/login/MultiUserLoginPage.d.ts.map +1 -0
- package/dist/pageobjects/login/MultiUserLoginPage.js +49 -0
- package/dist/pageobjects/login/MultiUserLoginPage.js.map +1 -0
- package/dist/pageobjects/login/OcpUserLoginPage.d.ts +18 -0
- package/dist/pageobjects/login/OcpUserLoginPage.d.ts.map +1 -0
- package/dist/pageobjects/login/OcpUserLoginPage.js +53 -0
- package/dist/pageobjects/login/OcpUserLoginPage.js.map +1 -0
- package/dist/pageobjects/login/RegularUserOcpCheLoginPage.d.ts +20 -0
- package/dist/pageobjects/login/RegularUserOcpCheLoginPage.d.ts.map +1 -0
- package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js +75 -0
- package/dist/pageobjects/login/RegularUserOcpCheLoginPage.js.map +1 -0
- package/dist/pageobjects/login/UpdateAccountInformationPage.d.ts +24 -0
- package/dist/pageobjects/login/UpdateAccountInformationPage.d.ts.map +1 -0
- package/dist/pageobjects/login/UpdateAccountInformationPage.js +74 -0
- package/dist/pageobjects/login/UpdateAccountInformationPage.js.map +1 -0
- package/dist/pageobjects/openshift/CheLoginPage.d.ts +27 -0
- package/dist/pageobjects/openshift/CheLoginPage.d.ts.map +1 -0
- package/dist/pageobjects/openshift/CheLoginPage.js +88 -0
- package/dist/pageobjects/openshift/CheLoginPage.js.map +1 -0
- package/dist/pageobjects/openshift/OcpLoginPage.d.ts +30 -0
- package/dist/pageobjects/openshift/OcpLoginPage.d.ts.map +1 -0
- package/dist/pageobjects/openshift/OcpLoginPage.js +106 -0
- package/dist/pageobjects/openshift/OcpLoginPage.js.map +1 -0
- package/dist/pageobjects/third-parties/GitLoginPage.d.ts +27 -0
- package/dist/pageobjects/third-parties/GitLoginPage.d.ts.map +1 -0
- package/dist/pageobjects/third-parties/GitLoginPage.js +85 -0
- package/dist/pageobjects/third-parties/GitLoginPage.js.map +1 -0
- package/dist/pageobjects/third-parties/GitOauthAppsSettings.d.ts +33 -0
- package/dist/pageobjects/third-parties/GitOauthAppsSettings.d.ts.map +1 -0
- package/dist/pageobjects/third-parties/GitOauthAppsSettings.js +110 -0
- package/dist/pageobjects/third-parties/GitOauthAppsSettings.js.map +1 -0
- package/dist/tests/devfiles/CSlashCPlusPlus.spec.d.ts +12 -0
- package/dist/tests/devfiles/CSlashCPlusPlus.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/CSlashCPlusPlus.spec.js +74 -0
- package/dist/tests/devfiles/CSlashCPlusPlus.spec.js.map +1 -0
- package/dist/tests/devfiles/DevfileSmoke.spec.d.ts +11 -0
- package/dist/tests/devfiles/DevfileSmoke.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/DevfileSmoke.spec.js +48 -0
- package/dist/tests/devfiles/DevfileSmoke.spec.js.map +1 -0
- package/dist/tests/devfiles/DotNetCore.spec.d.ts +12 -0
- package/dist/tests/devfiles/DotNetCore.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/DotNetCore.spec.js +82 -0
- package/dist/tests/devfiles/DotNetCore.spec.js.map +1 -0
- package/dist/tests/devfiles/Go.spec.d.ts +2 -0
- package/dist/tests/devfiles/Go.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/Go.spec.js +73 -0
- package/dist/tests/devfiles/Go.spec.js.map +1 -0
- package/dist/tests/devfiles/JavaMaven.spec.d.ts +11 -0
- package/dist/tests/devfiles/JavaMaven.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/JavaMaven.spec.js +61 -0
- package/dist/tests/devfiles/JavaMaven.spec.js.map +1 -0
- package/dist/tests/devfiles/JavaSpringBoot.spec.d.ts +11 -0
- package/dist/tests/devfiles/JavaSpringBoot.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/JavaSpringBoot.spec.js +67 -0
- package/dist/tests/devfiles/JavaSpringBoot.spec.js.map +1 -0
- package/dist/tests/devfiles/JavaVertx.spec.d.ts +11 -0
- package/dist/tests/devfiles/JavaVertx.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/JavaVertx.spec.js +61 -0
- package/dist/tests/devfiles/JavaVertx.spec.js.map +1 -0
- package/dist/tests/devfiles/NodeJS.spec.d.ts +2 -0
- package/dist/tests/devfiles/NodeJS.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/NodeJS.spec.js +65 -0
- package/dist/tests/devfiles/NodeJS.spec.js.map +1 -0
- package/dist/tests/devfiles/PHPSimple.spec.d.ts +12 -0
- package/dist/tests/devfiles/PHPSimple.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/PHPSimple.spec.js +75 -0
- package/dist/tests/devfiles/PHPSimple.spec.js.map +1 -0
- package/dist/tests/devfiles/Python.spec.d.ts +2 -0
- package/dist/tests/devfiles/Python.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/Python.spec.js +59 -0
- package/dist/tests/devfiles/Python.spec.js.map +1 -0
- package/dist/tests/devfiles/PythonDjango.spec.d.ts +2 -0
- package/dist/tests/devfiles/PythonDjango.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/PythonDjango.spec.js +62 -0
- package/dist/tests/devfiles/PythonDjango.spec.js.map +1 -0
- package/dist/tests/devfiles/Quarkus.spec.d.ts +2 -0
- package/dist/tests/devfiles/Quarkus.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/Quarkus.spec.js +70 -0
- package/dist/tests/devfiles/Quarkus.spec.js.map +1 -0
- package/dist/tests/devfiles/Scala.spec.d.ts +11 -0
- package/dist/tests/devfiles/Scala.spec.d.ts.map +1 -0
- package/dist/tests/devfiles/Scala.spec.js +67 -0
- package/dist/tests/devfiles/Scala.spec.js.map +1 -0
- package/dist/tests/e2e/FactoryUrl.spec.d.ts +2 -0
- package/dist/tests/e2e/FactoryUrl.spec.d.ts.map +1 -0
- package/dist/tests/e2e/FactoryUrl.spec.js +45 -0
- package/dist/tests/e2e/FactoryUrl.spec.js.map +1 -0
- package/dist/tests/e2e/GitPublishBranch.spec.d.ts +11 -0
- package/dist/tests/e2e/GitPublishBranch.spec.d.ts.map +1 -0
- package/dist/tests/e2e/GitPublishBranch.spec.js +88 -0
- package/dist/tests/e2e/GitPublishBranch.spec.js.map +1 -0
- package/dist/tests/e2e/GitSelfSignCert.spec.d.ts +11 -0
- package/dist/tests/e2e/GitSelfSignCert.spec.d.ts.map +1 -0
- package/dist/tests/e2e/GitSelfSignCert.spec.js +83 -0
- package/dist/tests/e2e/GitSelfSignCert.spec.js.map +1 -0
- package/dist/tests/e2e/GitSsh.spec.d.ts +11 -0
- package/dist/tests/e2e/GitSsh.spec.d.ts.map +1 -0
- package/dist/tests/e2e/GitSsh.spec.js +118 -0
- package/dist/tests/e2e/GitSsh.spec.js.map +1 -0
- package/dist/tests/e2e/OpenshiftConnector.spec.d.ts +11 -0
- package/dist/tests/e2e/OpenshiftConnector.spec.d.ts.map +1 -0
- package/dist/tests/e2e/OpenshiftConnector.spec.js +122 -0
- package/dist/tests/e2e/OpenshiftConnector.spec.js.map +1 -0
- package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.d.ts +2 -0
- package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.d.ts.map +1 -0
- package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js +53 -0
- package/dist/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +1 -0
- package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.d.ts +2 -0
- package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.d.ts.map +1 -0
- package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js +51 -0
- package/dist/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +1 -0
- package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.d.ts +2 -0
- package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.d.ts.map +1 -0
- package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js +51 -0
- package/dist/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +1 -0
- package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.d.ts +2 -0
- package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.d.ts.map +1 -0
- package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js +200 -0
- package/dist/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.js.map +1 -0
- package/dist/tests/e2e_happy_path/HappyPath.spec.d.ts +11 -0
- package/dist/tests/e2e_happy_path/HappyPath.spec.d.ts.map +1 -0
- package/dist/tests/e2e_happy_path/HappyPath.spec.js +309 -0
- package/dist/tests/e2e_happy_path/HappyPath.spec.js.map +1 -0
- package/dist/tests/intelij/IntelijOpenWorkspace.spec.d.ts +11 -0
- package/dist/tests/intelij/IntelijOpenWorkspace.spec.d.ts.map +1 -0
- package/dist/tests/intelij/IntelijOpenWorkspace.spec.js +43 -0
- package/dist/tests/intelij/IntelijOpenWorkspace.spec.js.map +1 -0
- package/dist/tests/load_test/LoadTest.spec.d.ts +11 -0
- package/dist/tests/load_test/LoadTest.spec.d.ts.map +1 -0
- package/dist/tests/load_test/LoadTest.spec.js +44 -0
- package/dist/tests/load_test/LoadTest.spec.js.map +1 -0
- package/dist/tests/login/LinkCheAndOcpUsers.spec.d.ts +11 -0
- package/dist/tests/login/LinkCheAndOcpUsers.spec.d.ts.map +1 -0
- package/dist/tests/login/LinkCheAndOcpUsers.spec.js +39 -0
- package/dist/tests/login/LinkCheAndOcpUsers.spec.js.map +1 -0
- package/dist/tests/login/Login.spec.d.ts +11 -0
- package/dist/tests/login/Login.spec.d.ts.map +1 -0
- package/dist/tests/login/Login.spec.js +26 -0
- package/dist/tests/login/Login.spec.js.map +1 -0
- package/dist/tests/plugins/GitHubPullRequestPlugin.spec.d.ts +11 -0
- package/dist/tests/plugins/GitHubPullRequestPlugin.spec.d.ts.map +1 -0
- package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js +122 -0
- package/dist/tests/plugins/GitHubPullRequestPlugin.spec.js.map +1 -0
- package/dist/tests/plugins/InstallPluginUsingUI.spec.d.ts +11 -0
- package/dist/tests/plugins/InstallPluginUsingUI.spec.d.ts.map +1 -0
- package/dist/tests/plugins/InstallPluginUsingUI.spec.js +69 -0
- package/dist/tests/plugins/InstallPluginUsingUI.spec.js.map +1 -0
- package/dist/tests/plugins/JavaPlugin.spec.d.ts +2 -0
- package/dist/tests/plugins/JavaPlugin.spec.d.ts.map +1 -0
- package/dist/tests/plugins/JavaPlugin.spec.js +82 -0
- package/dist/tests/plugins/JavaPlugin.spec.js.map +1 -0
- package/dist/tests/plugins/PhpPlugin.spec.d.ts +2 -0
- package/dist/tests/plugins/PhpPlugin.spec.d.ts.map +1 -0
- package/dist/tests/plugins/PhpPlugin.spec.js +94 -0
- package/dist/tests/plugins/PhpPlugin.spec.js.map +1 -0
- package/dist/tests/plugins/PythonPlugin.spec.d.ts +11 -0
- package/dist/tests/plugins/PythonPlugin.spec.d.ts.map +1 -0
- package/dist/tests/plugins/PythonPlugin.spec.js +80 -0
- package/dist/tests/plugins/PythonPlugin.spec.js.map +1 -0
- package/dist/tests/plugins/TypescriptPlugin.spec.d.ts +11 -0
- package/dist/tests/plugins/TypescriptPlugin.spec.d.ts.map +1 -0
- package/dist/tests/plugins/TypescriptPlugin.spec.js +147 -0
- package/dist/tests/plugins/TypescriptPlugin.spec.js.map +1 -0
- package/dist/tests/plugins/VscodeKubernetesPlugin.spec.d.ts +11 -0
- package/dist/tests/plugins/VscodeKubernetesPlugin.spec.d.ts.map +1 -0
- package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js +76 -0
- package/dist/tests/plugins/VscodeKubernetesPlugin.spec.js.map +1 -0
- package/dist/tests/plugins/VscodeShellcheckPlugin.spec.d.ts +11 -0
- package/dist/tests/plugins/VscodeShellcheckPlugin.spec.d.ts.map +1 -0
- package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js +89 -0
- package/dist/tests/plugins/VscodeShellcheckPlugin.spec.js.map +1 -0
- package/dist/tests/plugins/VscodeValePlugin.spec.d.ts +11 -0
- package/dist/tests/plugins/VscodeValePlugin.spec.d.ts.map +1 -0
- package/dist/tests/plugins/VscodeValePlugin.spec.js +77 -0
- package/dist/tests/plugins/VscodeValePlugin.spec.js.map +1 -0
- package/dist/tests/plugins/VscodeXmlPlugin.spec.d.ts +11 -0
- package/dist/tests/plugins/VscodeXmlPlugin.spec.d.ts.map +1 -0
- package/dist/tests/plugins/VscodeXmlPlugin.spec.js +98 -0
- package/dist/tests/plugins/VscodeXmlPlugin.spec.js.map +1 -0
- package/dist/tests/plugins/VscodeYamlPlugin.spec.d.ts +11 -0
- package/dist/tests/plugins/VscodeYamlPlugin.spec.d.ts.map +1 -0
- package/dist/tests/plugins/VscodeYamlPlugin.spec.js +96 -0
- package/dist/tests/plugins/VscodeYamlPlugin.spec.js.map +1 -0
- package/dist/testsLibrary/CodeExecutionTests.d.ts +49 -0
- package/dist/testsLibrary/CodeExecutionTests.d.ts.map +1 -0
- package/dist/testsLibrary/CodeExecutionTests.js +222 -0
- package/dist/testsLibrary/CodeExecutionTests.js.map +1 -0
- package/dist/testsLibrary/LanguageServerTests.d.ts +36 -0
- package/dist/testsLibrary/LanguageServerTests.d.ts.map +1 -0
- package/dist/testsLibrary/LanguageServerTests.js +237 -0
- package/dist/testsLibrary/LanguageServerTests.js.map +1 -0
- package/dist/testsLibrary/ProjectAndFileTests.d.ts +28 -0
- package/dist/testsLibrary/ProjectAndFileTests.d.ts.map +1 -0
- package/dist/testsLibrary/ProjectAndFileTests.js +100 -0
- package/dist/testsLibrary/ProjectAndFileTests.js.map +1 -0
- package/dist/testsLibrary/WorkspaceHandlingTests.d.ts +29 -0
- package/dist/testsLibrary/WorkspaceHandlingTests.d.ts.map +1 -0
- package/dist/testsLibrary/WorkspaceHandlingTests.js +87 -0
- package/dist/testsLibrary/WorkspaceHandlingTests.js.map +1 -0
- package/dist/utils/AnimationChecker.d.ts +16 -0
- package/dist/utils/AnimationChecker.d.ts.map +1 -0
- package/dist/utils/AnimationChecker.js +45 -0
- package/dist/utils/AnimationChecker.js.map +1 -0
- package/dist/utils/BrowserTabsUtil.d.ts +28 -0
- package/dist/utils/BrowserTabsUtil.d.ts.map +1 -0
- package/dist/utils/BrowserTabsUtil.js +115 -0
- package/dist/utils/BrowserTabsUtil.js.map +1 -0
- package/dist/utils/DriverHelper.d.ts +76 -0
- package/dist/utils/DriverHelper.d.ts.map +1 -0
- package/dist/utils/DriverHelper.js +616 -0
- package/dist/utils/DriverHelper.js.map +1 -0
- package/dist/utils/KeycloackUrlHandler.d.ts +15 -0
- package/dist/utils/KeycloackUrlHandler.d.ts.map +1 -0
- package/dist/utils/KeycloackUrlHandler.js +30 -0
- package/dist/utils/KeycloackUrlHandler.js.map +1 -0
- package/dist/utils/Logger.d.ts +39 -0
- package/dist/utils/Logger.d.ts.map +1 -0
- package/dist/utils/Logger.js +84 -0
- package/dist/utils/Logger.js.map +1 -0
- package/dist/utils/PreferencesHandler.d.ts +52 -0
- package/dist/utils/PreferencesHandler.d.ts.map +1 -0
- package/dist/utils/PreferencesHandler.js +139 -0
- package/dist/utils/PreferencesHandler.js.map +1 -0
- package/dist/utils/Sanitizer.d.ts +13 -0
- package/dist/utils/Sanitizer.d.ts.map +1 -0
- package/dist/utils/Sanitizer.js +29 -0
- package/dist/utils/Sanitizer.js.map +1 -0
- package/dist/utils/ScreenCatcher.d.ts +12 -0
- package/dist/utils/ScreenCatcher.d.ts.map +1 -0
- package/dist/utils/ScreenCatcher.js +107 -0
- package/dist/utils/ScreenCatcher.js.map +1 -0
- package/dist/utils/VCS/CheGitApi.d.ts +8 -0
- package/dist/utils/VCS/CheGitApi.d.ts.map +1 -0
- package/dist/utils/VCS/CheGitApi.js +42 -0
- package/dist/utils/VCS/CheGitApi.js.map +1 -0
- package/dist/utils/VCS/github/GitHubUtil.d.ts +15 -0
- package/dist/utils/VCS/github/GitHubUtil.d.ts.map +1 -0
- package/dist/utils/VCS/github/GitHubUtil.js +106 -0
- package/dist/utils/VCS/github/GitHubUtil.js.map +1 -0
- package/dist/utils/WorkspaceNameHandler.d.ts +17 -0
- package/dist/utils/WorkspaceNameHandler.d.ts.map +1 -0
- package/dist/utils/WorkspaceNameHandler.js +60 -0
- package/dist/utils/WorkspaceNameHandler.js.map +1 -0
- package/dist/utils/requestHandlers/CheApiRequestHandler.d.ts +28 -0
- package/dist/utils/requestHandlers/CheApiRequestHandler.d.ts.map +1 -0
- package/dist/utils/requestHandlers/CheApiRequestHandler.js +100 -0
- package/dist/utils/requestHandlers/CheApiRequestHandler.js.map +1 -0
- package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.d.ts +18 -0
- package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.d.ts.map +1 -0
- package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js +33 -0
- package/dist/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +1 -0
- package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.d.ts +14 -0
- package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.d.ts.map +1 -0
- package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.js +12 -0
- package/dist/utils/requestHandlers/headers/IAuthorizationHeaderHandler.js.map +1 -0
- package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.d.ts +5 -0
- package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.d.ts.map +1 -0
- package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.js +50 -0
- package/dist/utils/requestHandlers/tokens/CheMultiuserTokenHandler.js.map +1 -0
- package/dist/utils/requestHandlers/tokens/ITokenHandler.d.ts +13 -0
- package/dist/utils/requestHandlers/tokens/ITokenHandler.d.ts.map +1 -0
- package/dist/utils/requestHandlers/tokens/ITokenHandler.js +12 -0
- package/dist/utils/requestHandlers/tokens/ITokenHandler.js.map +1 -0
- package/dist/utils/workspace/ITestWorkspaceUtil.d.ts +25 -0
- package/dist/utils/workspace/ITestWorkspaceUtil.d.ts.map +1 -0
- package/dist/utils/workspace/ITestWorkspaceUtil.js +12 -0
- package/dist/utils/workspace/ITestWorkspaceUtil.js.map +1 -0
- package/dist/utils/workspace/TestWorkspaceUtil.d.ts +34 -0
- package/dist/utils/workspace/TestWorkspaceUtil.d.ts.map +1 -0
- package/dist/utils/workspace/TestWorkspaceUtil.js +233 -0
- package/dist/utils/workspace/TestWorkspaceUtil.js.map +1 -0
- package/dist/utils/workspace/WorkspaceStatus.d.ts +15 -0
- package/dist/utils/workspace/WorkspaceStatus.d.ts.map +1 -0
- package/dist/utils/workspace/WorkspaceStatus.js +19 -0
- package/dist/utils/workspace/WorkspaceStatus.js.map +1 -0
- package/driver/CheReporter.ts +202 -0
- package/driver/ChromeDriver.ts +71 -0
- package/driver/IDriver.ts +14 -0
- package/files/devfiles/plugins/GitHubPullRequestPlugin.yaml +11 -0
- package/files/devfiles/plugins/InstallPluginUsingUI.yaml +3 -0
- package/files/devfiles/plugins/Java11PluginTest.yaml +17 -0
- package/files/devfiles/plugins/PhpPluginTest.yaml +47 -0
- package/files/devfiles/plugins/PythonPluginTest.yaml +14 -0
- package/files/devfiles/plugins/TypescriptNodeDebug2PluginTest.yaml +49 -0
- package/files/devfiles/plugins/VscodeKubernetesPlugin.yaml +12 -0
- package/files/devfiles/plugins/VscodeShellcheckPlugin.yaml +12 -0
- package/files/devfiles/plugins/VscodeValePlugin.yaml +42 -0
- package/files/devfiles/plugins/VscodeXmlPlugin.yaml +12 -0
- package/files/devfiles/plugins/VscodeYamlPlugin.yaml +12 -0
- package/files/happy-path/containers-happy-path.yaml +127 -0
- package/files/happy-path/happy-path-workspace.yaml +95 -0
- package/files/happy-path/petclinic-classpath.txt +49 -0
- package/generateIndex.sh +35 -0
- package/index.ts +67 -0
- package/initDefaultValues.sh +27 -0
- package/initDevfileTests.sh +48 -0
- package/initPluginTest.sh +9 -0
- package/inversify.config.ts +134 -0
- package/inversify.types.ts +71 -0
- package/mocha-all-devfiles.opts +8 -0
- package/mocha-all-factories.opts +8 -0
- package/mocha-all-plugins.opts +7 -0
- package/mocha-connector.opts +7 -0
- package/mocha-devworkspace-happy-path.opts +7 -0
- package/mocha-factory.opts +7 -0
- package/mocha-git-publish-branch.opts +7 -0
- package/mocha-git-self-sign-cert.opts +7 -0
- package/mocha-git-ssh.opts +7 -0
- package/mocha-happy-path.opts +8 -0
- package/mocha-java-vertx.opts +7 -0
- package/mocha-load.opts +7 -0
- package/mocha-single-devfile.opts +6 -0
- package/mocha-wkspc-creation-and-ls.opts +7 -0
- package/mocha.intelij.opts +7 -0
- package/mocha.ocp.link.opts +6 -0
- package/mocha.opts +7 -0
- package/mocha.single.plugin.opts +5 -0
- package/package.json +59 -0
- package/pageobjects/dashboard/CreateWorkspace.ts +58 -0
- package/pageobjects/dashboard/Dashboard.ts +112 -0
- package/pageobjects/dashboard/Workspaces.ts +189 -0
- package/pageobjects/dashboard/workspace-details/WorkspaceDetails.ts +153 -0
- package/pageobjects/dashboard/workspace-details/WorkspaceDetailsPlugins.ts +96 -0
- package/pageobjects/ide/ContextMenu.ts +55 -0
- package/pageobjects/ide/DebugView.ts +88 -0
- package/pageobjects/ide/DialogWindow.ts +101 -0
- package/pageobjects/ide/Editor.ts +601 -0
- package/pageobjects/ide/Ide.ts +370 -0
- package/pageobjects/ide/LeftToolBar.ts +81 -0
- package/pageobjects/ide/NavigationBar.ts +41 -0
- package/pageobjects/ide/NotificationCenter.ts +75 -0
- package/pageobjects/ide/OpenDialogWidget.ts +92 -0
- package/pageobjects/ide/OpenWorkspaceWidget.ts +48 -0
- package/pageobjects/ide/PreviewWidget.ts +135 -0
- package/pageobjects/ide/ProjectTree.ts +335 -0
- package/pageobjects/ide/QuickOpenContainer.ts +59 -0
- package/pageobjects/ide/RightToolBar.ts +34 -0
- package/pageobjects/ide/Terminal.ts +245 -0
- package/pageobjects/ide/TopMenu.ts +103 -0
- package/pageobjects/ide/plugins/GitHubPullRequestPlugin.ts +130 -0
- package/pageobjects/ide/plugins/GitPlugin.ts +118 -0
- package/pageobjects/ide/plugins/KubernetesPlugin.ts +113 -0
- package/pageobjects/ide/plugins/OpenshiftPlugin.ts +87 -0
- package/pageobjects/ide/plugins/PluginsView.ts +191 -0
- package/pageobjects/login/ICheLoginPage.ts +13 -0
- package/pageobjects/login/IOcpLoginPage.ts +13 -0
- package/pageobjects/login/MultiUserLoginPage.ts +33 -0
- package/pageobjects/login/OcpUserLoginPage.ts +38 -0
- package/pageobjects/login/RegularUserOcpCheLoginPage.ts +61 -0
- package/pageobjects/login/UpdateAccountInformationPage.ts +70 -0
- package/pageobjects/openshift/CheLoginPage.ts +91 -0
- package/pageobjects/openshift/OcpLoginPage.ts +113 -0
- package/pageobjects/third-parties/GitLoginPage.ts +81 -0
- package/pageobjects/third-parties/GitOauthAppsSettings.ts +110 -0
- package/tests/devfiles/CSlashCPlusPlus.spec.ts +81 -0
- package/tests/devfiles/DevfileSmoke.spec.ts +53 -0
- package/tests/devfiles/DotNetCore.spec.ts +90 -0
- package/tests/devfiles/Go.spec.ts +84 -0
- package/tests/devfiles/JavaMaven.spec.ts +67 -0
- package/tests/devfiles/JavaSpringBoot.spec.ts +74 -0
- package/tests/devfiles/JavaVertx.spec.ts +68 -0
- package/tests/devfiles/NodeJS.spec.ts +74 -0
- package/tests/devfiles/PHPSimple.spec.ts +83 -0
- package/tests/devfiles/Python.spec.ts +67 -0
- package/tests/devfiles/PythonDjango.spec.ts +70 -0
- package/tests/devfiles/Quarkus.spec.ts +79 -0
- package/tests/devfiles/Scala.spec.ts +74 -0
- package/tests/e2e/FactoryUrl.spec.ts +51 -0
- package/tests/e2e/GitPublishBranch.spec.ts +107 -0
- package/tests/e2e/GitSelfSignCert.spec.ts +107 -0
- package/tests/e2e/GitSsh.spec.ts +143 -0
- package/tests/e2e/OpenshiftConnector.spec.ts +142 -0
- package/tests/e2e/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +61 -0
- package/tests/e2e/factories/DirectUrlFactoryWithRootFolderTest.spec.ts +59 -0
- package/tests/e2e/factories/DirectUrlFactoryWithSpecificBranchTest.spec.ts +61 -0
- package/tests/e2e_happy_path/DevWorkspaceHappyPath.spec.ts +204 -0
- package/tests/e2e_happy_path/HappyPath.spec.ts +342 -0
- package/tests/intelij/IntelijOpenWorkspace.spec.ts +49 -0
- package/tests/load_test/LoadTest.spec.ts +54 -0
- package/tests/login/LinkCheAndOcpUsers.spec.ts +47 -0
- package/tests/login/Login.spec.ts +27 -0
- package/tests/plugins/GitHubPullRequestPlugin.spec.ts +150 -0
- package/tests/plugins/InstallPluginUsingUI.spec.ts +83 -0
- package/tests/plugins/JavaPlugin.spec.ts +108 -0
- package/tests/plugins/PhpPlugin.spec.ts +121 -0
- package/tests/plugins/PythonPlugin.spec.ts +92 -0
- package/tests/plugins/TypescriptPlugin.spec.ts +179 -0
- package/tests/plugins/VscodeKubernetesPlugin.spec.ts +89 -0
- package/tests/plugins/VscodeShellcheckPlugin.spec.ts +106 -0
- package/tests/plugins/VscodeValePlugin.spec.ts +91 -0
- package/tests/plugins/VscodeXmlPlugin.spec.ts +120 -0
- package/tests/plugins/VscodeYamlPlugin.spec.ts +117 -0
- package/testsLibrary/CodeExecutionTests.ts +196 -0
- package/testsLibrary/LanguageServerTests.ts +210 -0
- package/testsLibrary/ProjectAndFileTests.ts +82 -0
- package/testsLibrary/WorkspaceHandlingTests.ts +68 -0
- package/tsconfig.json +16 -0
- package/tslint.json +123 -0
- package/utils/AnimationChecker.ts +27 -0
- package/utils/BrowserTabsUtil.ts +120 -0
- package/utils/DriverHelper.ts +753 -0
- package/utils/KeycloackUrlHandler.ts +32 -0
- package/utils/Logger.ts +87 -0
- package/utils/PreferencesHandler.ts +120 -0
- package/utils/Sanitizer.ts +20 -0
- package/utils/ScreenCatcher.ts +74 -0
- package/utils/VCS/CheGitApi.ts +26 -0
- package/utils/VCS/github/GitHubUtil.ts +91 -0
- package/utils/WorkspaceNameHandler.ts +48 -0
- package/utils/requestHandlers/CheApiRequestHandler.ts +83 -0
- package/utils/requestHandlers/headers/CheMultiuserAuthorizationHeaderHandler.ts +27 -0
- package/utils/requestHandlers/headers/IAuthorizationHeaderHandler.ts +15 -0
- package/utils/requestHandlers/tokens/CheMultiuserTokenHandler.ts +39 -0
- package/utils/requestHandlers/tokens/ITokenHandler.ts +14 -0
- package/utils/workspace/ITestWorkspaceUtil.ts +26 -0
- package/utils/workspace/TestWorkspaceUtil.ts +275 -0
- package/utils/workspace/WorkspaceStatus.ts +15 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) 2019 Red Hat, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
**********************************************************************/
|
|
10
|
+
import 'reflect-metadata';
|
|
11
|
+
import { injectable, inject } from 'inversify';
|
|
12
|
+
import { DriverHelper } from '../../utils/DriverHelper';
|
|
13
|
+
import { CLASSES } from '../../inversify.types';
|
|
14
|
+
import { By } from 'selenium-webdriver';
|
|
15
|
+
import { Logger } from '../../utils/Logger';
|
|
16
|
+
import { TimeoutConstants } from '../../TimeoutConstants';
|
|
17
|
+
|
|
18
|
+
@injectable()
|
|
19
|
+
export class CheLoginPage {
|
|
20
|
+
|
|
21
|
+
constructor(
|
|
22
|
+
@inject(CLASSES.DriverHelper) private readonly driverHelper: DriverHelper) { }
|
|
23
|
+
|
|
24
|
+
async waitEclipseCheLoginFormPage() {
|
|
25
|
+
Logger.debug('CheLoginPage.waitEclipseCheLoginFormPage');
|
|
26
|
+
|
|
27
|
+
await this.driverHelper.waitVisibility(By.id('kc-form-login'), TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async inputUserNameEclipseCheLoginPage(userName: string) {
|
|
31
|
+
Logger.debug(`CheLoginPage.inputUserNameEclipseCheLoginPage username: "${userName}"`);
|
|
32
|
+
|
|
33
|
+
await this.driverHelper.enterValue(By.id('username'), userName);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async inputPaswordEclipseCheLoginPage(passw: string) {
|
|
37
|
+
Logger.debug(`CheLoginPage.inputPaswordEclipseCheLoginPage password: "${passw}"`);
|
|
38
|
+
|
|
39
|
+
await this.driverHelper.enterValue(By.id('password'), passw);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
async clickEclipseCheLoginButton() {
|
|
43
|
+
Logger.debug('CheLoginPage.clickEclipseCheLoginButton');
|
|
44
|
+
|
|
45
|
+
await this.driverHelper.waitAndClick(By.id('kc-login'));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async isFirstBrokerLoginPageVisible(): Promise<boolean> {
|
|
49
|
+
Logger.debug('CheLoginPage.waitFirstBrokerLoginPage');
|
|
50
|
+
|
|
51
|
+
return await this.driverHelper.isVisible(By.id('kc-update-profile-form'));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async waitFirstBrokerLoginPage() {
|
|
55
|
+
Logger.debug('CheLoginPage.waitFirstBrokerLoginPage');
|
|
56
|
+
|
|
57
|
+
await this.driverHelper.waitVisibility(By.id('kc-update-profile-form'), TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async enterEmailFirstBrokerLoginPage(email: string) {
|
|
61
|
+
Logger.debug(`CheLoginPage.enterEmailFirstBrokerLoginPage "${email}"`);
|
|
62
|
+
|
|
63
|
+
await this.driverHelper.enterValue(By.id('email'), email);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
async enterFirstNameBrokerLoginPage(firstName: string) {
|
|
67
|
+
Logger.debug(`CheLoginPage.enterFirstNameBrokerLoginPage "${firstName}"`);
|
|
68
|
+
|
|
69
|
+
await this.driverHelper.enterValue(By.id('firstName'), firstName);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
async enterLastNameBrokerLoginPage(lastName: string) {
|
|
73
|
+
Logger.debug(`CheLoginPage.enterLastNameBrokerLoginPage "${lastName}"`);
|
|
74
|
+
|
|
75
|
+
await this.driverHelper.enterValue(By.id('lastName'), lastName);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
async clickOnSubmitButton() {
|
|
79
|
+
Logger.debug('CheLoginPage.clickOnSubmitButton');
|
|
80
|
+
|
|
81
|
+
const submitButtonlocator: By = By.css('input[type=submit]');
|
|
82
|
+
await this.driverHelper.waitAndClick(submitButtonlocator);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
async waitDisappearanceBrokerLoginPage() {
|
|
86
|
+
Logger.debug('CheLoginPage.waitDisappearanceBrokerLoginPage');
|
|
87
|
+
|
|
88
|
+
await this.driverHelper.waitDisappearance(By.id('kc-update-profile-form'));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) 2019 Red Hat, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
**********************************************************************/
|
|
10
|
+
import 'reflect-metadata';
|
|
11
|
+
import { injectable, inject } from 'inversify';
|
|
12
|
+
import { DriverHelper } from '../../utils/DriverHelper';
|
|
13
|
+
import { CLASSES } from '../../inversify.types';
|
|
14
|
+
import { By } from 'selenium-webdriver';
|
|
15
|
+
import { Logger } from '../../utils/Logger';
|
|
16
|
+
import { TestConstants } from '../../TestConstants';
|
|
17
|
+
import { TimeoutConstants } from '../../TimeoutConstants';
|
|
18
|
+
|
|
19
|
+
@injectable()
|
|
20
|
+
export class OcpLoginPage {
|
|
21
|
+
|
|
22
|
+
private static readonly LOGIN_PAGE_OPENSHIFT_XPATH: string = '//*[contains(text(), \'Welcome\')]';
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
@inject(CLASSES.DriverHelper) private readonly driverHelper: DriverHelper) { }
|
|
26
|
+
|
|
27
|
+
async openLoginPageOpenShift(url: string) {
|
|
28
|
+
Logger.debug('OcpLoginPage.openLoginPageOpenShift');
|
|
29
|
+
|
|
30
|
+
await this.driverHelper.navigateToUrl(url);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
async waitOpenShiftLoginWelcomePage() {
|
|
34
|
+
Logger.debug('OcpLoginPage.waitOpenShiftLoginWelcomePage');
|
|
35
|
+
|
|
36
|
+
await this.driverHelper.waitVisibility(By.xpath(OcpLoginPage.LOGIN_PAGE_OPENSHIFT_XPATH), TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
async clickOnLoginProviderTitle() {
|
|
40
|
+
Logger.debug('OcpLoginPage.clickOnLoginProviderTitle');
|
|
41
|
+
|
|
42
|
+
const loginProviderTitleLocator: By = By.xpath(`//a[text()=\'${TestConstants.TS_OCP_LOGIN_PAGE_PROVIDER_TITLE}\']`);
|
|
43
|
+
await this.driverHelper.waitAndClick(loginProviderTitleLocator);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async isIdentityProviderLinkVisible(): Promise<boolean> {
|
|
47
|
+
Logger.debug('OcpLoginPage.isIdentityProviderLinkVisible');
|
|
48
|
+
|
|
49
|
+
const loginWithHtpaswdLocator: By = By.xpath(`//a[text()=\'${TestConstants.TS_OCP_LOGIN_PAGE_PROVIDER_TITLE}\']`);
|
|
50
|
+
return await this.driverHelper.waitVisibilityBoolean(loginWithHtpaswdLocator, 3, 5000);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async isAuthorizeOpenShiftIdentityProviderPageVisible(): Promise<boolean> {
|
|
54
|
+
Logger.debug('OcpLoginPage.isAuthorizeOpenShiftIdentityProviderPageVisible');
|
|
55
|
+
|
|
56
|
+
const authorizeOpenshiftIdentityProviderPageLocator: By = By.xpath('//h1[text()=\'Authorize Access\']');
|
|
57
|
+
return await this.driverHelper.isVisible(authorizeOpenshiftIdentityProviderPageLocator);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async waitAuthorizeOpenShiftIdentityProviderPage() {
|
|
61
|
+
Logger.debug('OcpLoginPage.waitAuthorizeOpenShiftIdentityProviderPage');
|
|
62
|
+
|
|
63
|
+
const authorizeOpenshiftIdentityProviderPageLocator: By = By.xpath('//h1[text()=\'Authorize Access\']');
|
|
64
|
+
await this.driverHelper.waitVisibility(authorizeOpenshiftIdentityProviderPageLocator, TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
async clickOnApproveAuthorizeAccessButton() {
|
|
68
|
+
Logger.debug('OcpLoginPage.clickOnApproveAuthorizeAccessOpenshift');
|
|
69
|
+
|
|
70
|
+
const approveAuthorizeAccessOcpLocator: By = By.css('input[name=\'approve\']');
|
|
71
|
+
await this.driverHelper.waitAndClick(approveAuthorizeAccessOcpLocator);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
async enterUserNameOpenShift(userName: string) {
|
|
75
|
+
Logger.debug(`OcpLoginPage.enterUserNameOpenShift "${userName}"`);
|
|
76
|
+
|
|
77
|
+
await this.driverHelper.enterValue(By.id('inputUsername'), userName);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
async enterPasswordOpenShift(passw: string) {
|
|
81
|
+
Logger.debug(`OcpLoginPage.enterPasswordOpenShift "${passw}"`);
|
|
82
|
+
|
|
83
|
+
await this.driverHelper.enterValue(By.id('inputPassword'), passw);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
async clickOnLoginButton() {
|
|
87
|
+
Logger.debug('OcpLoginPage.clickOnLoginButton');
|
|
88
|
+
|
|
89
|
+
const loginButtonlocator: By = By.css('button[type=submit]');
|
|
90
|
+
await this.driverHelper.waitAndClick(loginButtonlocator);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
async waitDisappearanceOpenShiftLoginWelcomePage() {
|
|
94
|
+
Logger.debug('OcpLoginPage.waitDisappearanceOpenShiftLoginWelcomePage');
|
|
95
|
+
|
|
96
|
+
await this.driverHelper.waitDisappearance(By.xpath(OcpLoginPage.LOGIN_PAGE_OPENSHIFT_XPATH));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
async isLinkAccountPageVisible(): Promise<boolean> {
|
|
100
|
+
Logger.debug('OcpLoginPage.isLinkAccountPageVisible');
|
|
101
|
+
|
|
102
|
+
const linkAccountLocator: By = By.id(`linkAccount`);
|
|
103
|
+
return await this.driverHelper.waitVisibilityBoolean(linkAccountLocator, 3, 5000);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
async clickOnLinkAccountButton() {
|
|
107
|
+
Logger.debug('OcpLoginPage.clickOnLinkAccountButton');
|
|
108
|
+
|
|
109
|
+
const linkAccountLocator: By = By.id(`linkAccount`);
|
|
110
|
+
this.driverHelper.waitAndClick(linkAccountLocator);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) 2021 Red Hat, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
**********************************************************************/
|
|
10
|
+
|
|
11
|
+
import 'reflect-metadata';
|
|
12
|
+
import { injectable, inject } from 'inversify';
|
|
13
|
+
import { CLASSES } from '../../inversify.types';
|
|
14
|
+
import { DriverHelper } from '../../utils/DriverHelper';
|
|
15
|
+
import { TimeoutConstants } from '../../TimeoutConstants';
|
|
16
|
+
import { Logger } from '../../utils/Logger';
|
|
17
|
+
import { By } from 'selenium-webdriver';
|
|
18
|
+
import { TestConstants } from '../../TestConstants';
|
|
19
|
+
|
|
20
|
+
@injectable()
|
|
21
|
+
export class GitLoginPage {
|
|
22
|
+
private static readonly USERNAME_FIELD_LOCATOR = By.xpath(`//input[@id='login_field']`);
|
|
23
|
+
private static readonly PASSWORD_FIELD_LOCATOR = By.xpath(`//input[@id='password']`);
|
|
24
|
+
private static readonly SIGN_IN_BUTTON_LOCATOR = By.xpath(`//input[@value='Sign in']`);
|
|
25
|
+
|
|
26
|
+
constructor(@inject(CLASSES.DriverHelper) private readonly driverHelper: DriverHelper) { }
|
|
27
|
+
|
|
28
|
+
async login(timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
29
|
+
Logger.debug('GitLoginPage.login');
|
|
30
|
+
|
|
31
|
+
await this.waitPage(timeout);
|
|
32
|
+
await this.typeUsername(TestConstants.TS_GITHUB_USERNAME, timeout);
|
|
33
|
+
await this.typePassword(TestConstants.TS_GITHUB_PASSWORD, timeout);
|
|
34
|
+
await this.clickSignInButton(timeout);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async waitPage(timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
38
|
+
Logger.debug('GitLoginPage.waitPage');
|
|
39
|
+
|
|
40
|
+
await this.waitUsernameField(timeout);
|
|
41
|
+
await this.waitPasswordField(timeout);
|
|
42
|
+
await this.waitSignInButton(timeout);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async waitUsernameField(timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
46
|
+
Logger.debug('GitLoginPage.waitUsernameField');
|
|
47
|
+
|
|
48
|
+
await this.driverHelper.waitVisibility(GitLoginPage.USERNAME_FIELD_LOCATOR, timeout);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
async waitPasswordField(timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
52
|
+
Logger.debug('GitLoginPage.waitPasswordField');
|
|
53
|
+
|
|
54
|
+
await this.driverHelper.waitVisibility(GitLoginPage.PASSWORD_FIELD_LOCATOR, timeout);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async waitSignInButton(timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
58
|
+
Logger.debug('GitLoginPage.waitSignInbutton');
|
|
59
|
+
|
|
60
|
+
await this.driverHelper.waitVisibility(GitLoginPage.SIGN_IN_BUTTON_LOCATOR, timeout);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
async typeUsername(username: string, timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
64
|
+
Logger.debug('GitLoginPage.typeUsername');
|
|
65
|
+
|
|
66
|
+
await this.driverHelper.type(GitLoginPage.USERNAME_FIELD_LOCATOR, username, timeout);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
async typePassword(password: string, timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
70
|
+
Logger.debug('GitLoginPage.typePassword');
|
|
71
|
+
|
|
72
|
+
await this.driverHelper.type(GitLoginPage.PASSWORD_FIELD_LOCATOR, password, timeout);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async clickSignInButton(timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
76
|
+
Logger.debug('GitLoginPage.clickSignInButton');
|
|
77
|
+
|
|
78
|
+
await this.driverHelper.waitAndClick(GitLoginPage.SIGN_IN_BUTTON_LOCATOR, timeout);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* Copyright (c) 2021 Red Hat, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made
|
|
5
|
+
* available under the terms of the Eclipse Public License 2.0
|
|
6
|
+
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
7
|
+
*
|
|
8
|
+
* SPDX-License-Identifier: EPL-2.0
|
|
9
|
+
**********************************************************************/
|
|
10
|
+
|
|
11
|
+
import 'reflect-metadata';
|
|
12
|
+
import { injectable, inject } from 'inversify';
|
|
13
|
+
import { CLASSES } from '../../inversify.types';
|
|
14
|
+
import { DriverHelper } from '../../utils/DriverHelper';
|
|
15
|
+
import { TimeoutConstants } from '../../TimeoutConstants';
|
|
16
|
+
import { Logger } from '../../utils/Logger';
|
|
17
|
+
import { By, error, Key } from 'selenium-webdriver';
|
|
18
|
+
import { BrowserTabsUtil } from '../../utils/BrowserTabsUtil';
|
|
19
|
+
|
|
20
|
+
@injectable()
|
|
21
|
+
export class GitOauthAppsSettings {
|
|
22
|
+
private static readonly GITHUB_OAUTH_APPS_SETTINGS_URL = 'https://github.com/settings/developers';
|
|
23
|
+
private static readonly HOME_PAGE_FIELD_LOCATOR: By = By.xpath(`//input[@id='oauth_application_url']`);
|
|
24
|
+
private static readonly CALLBACK_URL_FIELD_LOCATOR: By = By.xpath(`//input[@id='oauth_application_callback_url']`);
|
|
25
|
+
private static readonly UPDATE_APPLICATION_BUTTON_LOCATOR: By = By.xpath(`//form[@class='edit_oauth_application']//button[@type='submit']`);
|
|
26
|
+
|
|
27
|
+
constructor(@inject(CLASSES.DriverHelper) private readonly driverHelper: DriverHelper,
|
|
28
|
+
@inject(CLASSES.BrowserTabsUtil) private readonly browserTabsUtil: BrowserTabsUtil) { }
|
|
29
|
+
|
|
30
|
+
async openPage(timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
31
|
+
Logger.debug('GitOauthAppsSettings.openPage');
|
|
32
|
+
|
|
33
|
+
await this.browserTabsUtil.navigateTo(GitOauthAppsSettings.GITHUB_OAUTH_APPS_SETTINGS_URL);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async waitTitle(title: string, timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
37
|
+
Logger.debug('GitOauthAppsSettings.waitTitle');
|
|
38
|
+
|
|
39
|
+
await this.driverHelper.waitVisibility(this.getTitleLocator(title), timeout);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
async waitOauthApp(applicationTitle: string, timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
43
|
+
Logger.debug('GitOauthAppsSettings.waitOauthApp');
|
|
44
|
+
|
|
45
|
+
await this.driverHelper.waitVisibility(this.getOauthAppLocator(applicationTitle), timeout);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
async clickOauthApp(applicationTitle: string, timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
49
|
+
Logger.debug('GitOauthAppsSettings.clickOauthApp');
|
|
50
|
+
|
|
51
|
+
await this.driverHelper.waitAndClick(this.getOauthAppLocator(applicationTitle), timeout);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async openOauthApp(title: string, timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
55
|
+
Logger.debug('GitOauthAppsSettings.openOauthApp');
|
|
56
|
+
|
|
57
|
+
await this.driverHelper.waitUntilTrue(async () => {
|
|
58
|
+
await this.clickOauthApp(title);
|
|
59
|
+
|
|
60
|
+
try {
|
|
61
|
+
await this.waitTitle(title, timeout / 3);
|
|
62
|
+
return true;
|
|
63
|
+
} catch (err) {
|
|
64
|
+
if (!(err instanceof error.TimeoutError)) {
|
|
65
|
+
throw err;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
Logger.debug(`The ${title} oAuth app is not opened, next try.`);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
}, timeout);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
async scrollToUpdateApplicationButton(timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
75
|
+
Logger.debug('GitOauthAppsSettings.scrollToUpdateApplicationButton');
|
|
76
|
+
|
|
77
|
+
await this.driverHelper.scrollTo(GitOauthAppsSettings.UPDATE_APPLICATION_BUTTON_LOCATOR, timeout);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
async typeHomePageUrl(homePageUrl: string, timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
81
|
+
Logger.debug('GitOauthAppsSettings.typeHomePageUrl');
|
|
82
|
+
|
|
83
|
+
await this.driverHelper.type(GitOauthAppsSettings.HOME_PAGE_FIELD_LOCATOR, Key.chord(Key.CONTROL, 'a'), timeout);
|
|
84
|
+
await this.driverHelper.type(GitOauthAppsSettings.HOME_PAGE_FIELD_LOCATOR, Key.DELETE, timeout);
|
|
85
|
+
await this.driverHelper.type(GitOauthAppsSettings.HOME_PAGE_FIELD_LOCATOR, homePageUrl, timeout);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
async typeCallbackUrl(callbackUrl: string, timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
89
|
+
Logger.debug('GitOauthAppsSettings.typeCallbackUrl');
|
|
90
|
+
|
|
91
|
+
await this.driverHelper.type(GitOauthAppsSettings.CALLBACK_URL_FIELD_LOCATOR, Key.chord(Key.CONTROL, 'a'), timeout);
|
|
92
|
+
await this.driverHelper.type(GitOauthAppsSettings.CALLBACK_URL_FIELD_LOCATOR, Key.DELETE, timeout);
|
|
93
|
+
await this.driverHelper.type(GitOauthAppsSettings.CALLBACK_URL_FIELD_LOCATOR, callbackUrl, timeout);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
async clickUpdateApplicationButton(timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
97
|
+
Logger.debug('GitOauthAppsSettings.clickUpdateApplicationButton');
|
|
98
|
+
|
|
99
|
+
await this.driverHelper.waitAndClick(GitOauthAppsSettings.UPDATE_APPLICATION_BUTTON_LOCATOR, timeout);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
private getOauthAppLocator(applicationTitle: string, timeout: number = TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT) {
|
|
103
|
+
return By.xpath(`//div[@class='TableObject']//a[text()='${applicationTitle}']`);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
private getTitleLocator(title: string): By {
|
|
107
|
+
return By.xpath(`//main[@id='js-pjax-container']//h2[text()='${title}']`);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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/Editor';
|
|
14
|
+
import { LanguageServerTests } from '../../testsLibrary/LanguageServerTests';
|
|
15
|
+
import { CodeExecutionTests } from '../../testsLibrary/CodeExecutionTests';
|
|
16
|
+
import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
|
|
17
|
+
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
18
|
+
import CheReporter from '../../driver/CheReporter';
|
|
19
|
+
|
|
20
|
+
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
21
|
+
const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
|
|
22
|
+
const commonLanguageServerTests: LanguageServerTests = e2eContainer.get(CLASSES.LanguageServerTests);
|
|
23
|
+
const codeExecutionTests: CodeExecutionTests = e2eContainer.get(CLASSES.CodeExecutionTests);
|
|
24
|
+
const editor: Editor = e2eContainer.get(CLASSES.Editor);
|
|
25
|
+
|
|
26
|
+
const workspaceSampleName: string = 'cpp-hello-world';
|
|
27
|
+
const fileFolderPath: string = `${workspaceSampleName}`;
|
|
28
|
+
const tabTitle: string = 'hello.cpp';
|
|
29
|
+
const buildTaskName: string = 'build';
|
|
30
|
+
const runTaskName: string = 'run';
|
|
31
|
+
const stack: string = 'C/C++';
|
|
32
|
+
let workspaceName: string;
|
|
33
|
+
|
|
34
|
+
suite(`${stack} test`, async () => {
|
|
35
|
+
suite(`Create ${stack} workspace`, async () => {
|
|
36
|
+
workspaceHandlingTests.createAndOpenWorkspace(stack);
|
|
37
|
+
|
|
38
|
+
test('Register running workspace', async () => {
|
|
39
|
+
workspaceName = WorkspaceHandlingTests.getWorkspaceName();
|
|
40
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
projectAndFileTests.waitWorkspaceReadinessNoSubfolder(workspaceSampleName, false);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
suite('Test opening file', async () => {
|
|
47
|
+
// opening file that soon should give time for LS to initialize
|
|
48
|
+
projectAndFileTests.openFile(fileFolderPath, tabTitle);
|
|
49
|
+
prepareEditorForLanguageServerTests();
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
suite('Validation of project build', async () => {
|
|
53
|
+
codeExecutionTests.runTask(buildTaskName, 30_000);
|
|
54
|
+
codeExecutionTests.runTask(runTaskName, 30_000);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
suite('Language server validation', async () => {
|
|
58
|
+
commonLanguageServerTests.errorHighlighting(tabTitle, `error_text;`, 12);
|
|
59
|
+
commonLanguageServerTests.suggestionInvoking(tabTitle, 15, 22, 'test');
|
|
60
|
+
commonLanguageServerTests.autocomplete(tabTitle, 15, 9, 'printf');
|
|
61
|
+
// commonLanguageServerTests.goToImplementations(tabTitle, 15, 9, 'stdio.h'); currently not working because of LS not exposing Ctrl + F12 combination
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
suite('Stopping and deleting the workspace', async () => {
|
|
65
|
+
test(`Stop and remowe workspace`, async () => {
|
|
66
|
+
await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export function prepareEditorForLanguageServerTests() {
|
|
73
|
+
test(`Prepare file for LS tests`, async () => {
|
|
74
|
+
await editor.moveCursorToLineAndChar(tabTitle, 6, 1);
|
|
75
|
+
await editor.performKeyCombination(tabTitle, '#include <cstdio>\n');
|
|
76
|
+
await editor.moveCursorToLineAndChar(tabTitle, 10, 1);
|
|
77
|
+
await editor.performKeyCombination(tabTitle, '\nchar const *test = "test";\n');
|
|
78
|
+
await editor.moveCursorToLineAndChar(tabTitle, 15, 5);
|
|
79
|
+
await editor.performKeyCombination(tabTitle, 'printf("%s\\n", test);\n');
|
|
80
|
+
});
|
|
81
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 CheReporter from '../../driver/CheReporter';
|
|
13
|
+
import { e2eContainer } from '../../inversify.config';
|
|
14
|
+
import { PreferencesHandler } from '../../utils/PreferencesHandler';
|
|
15
|
+
import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
|
|
16
|
+
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
17
|
+
import { NavigationBar } from '../../pageobjects/ide/NavigationBar';
|
|
18
|
+
import { Dashboard } from '../../pageobjects/dashboard/Dashboard';
|
|
19
|
+
|
|
20
|
+
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
21
|
+
const preferencesHandler: PreferencesHandler = e2eContainer.get(CLASSES.PreferencesHandler);
|
|
22
|
+
const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
|
|
23
|
+
const navigationBar: NavigationBar = e2eContainer.get(CLASSES.NavigationBar);
|
|
24
|
+
const dashboard: Dashboard = e2eContainer.get(CLASSES.Dashboard);
|
|
25
|
+
|
|
26
|
+
const workspaceSampleName: string = 'console-java-simple';
|
|
27
|
+
const workspaceRootFolderName: string = 'src';
|
|
28
|
+
const stack: string = 'Java Maven';
|
|
29
|
+
let workspaceName: string;
|
|
30
|
+
|
|
31
|
+
suite(`${stack} test`, async () => {
|
|
32
|
+
suite (`Create ${stack} workspace`, async () => {
|
|
33
|
+
workspaceHandlingTests.createAndOpenWorkspace(stack);
|
|
34
|
+
|
|
35
|
+
test('Register running workspace', async () => {
|
|
36
|
+
workspaceName = WorkspaceHandlingTests.getWorkspaceName();
|
|
37
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
projectAndFileTests.waitWorkspaceReadiness(workspaceSampleName, workspaceRootFolderName, false);
|
|
41
|
+
|
|
42
|
+
test('Set application.confirmExit user preferences to "never"', async () => {
|
|
43
|
+
await preferencesHandler.setPreferenceUsingUI('application.confirmExit', 'never');
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
suite ('Stopping and deleting the workspace', async () => {
|
|
48
|
+
test(`Stop and remowe workspace`, async () => {
|
|
49
|
+
await navigationBar.openNavigationBar();
|
|
50
|
+
await dashboard.stopAndRemoveWorkspaceByUI(workspaceName);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
});
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { e2eContainer } from '../../inversify.config';
|
|
13
|
+
import { Editor } from '../../pageobjects/ide/Editor';
|
|
14
|
+
import { LanguageServerTests } from '../../testsLibrary/LanguageServerTests';
|
|
15
|
+
import { CodeExecutionTests } from '../../testsLibrary/CodeExecutionTests';
|
|
16
|
+
import { ProjectAndFileTests } from '../../testsLibrary/ProjectAndFileTests';
|
|
17
|
+
import { WorkspaceHandlingTests } from '../../testsLibrary/WorkspaceHandlingTests';
|
|
18
|
+
import CheReporter from '../../driver/CheReporter';
|
|
19
|
+
|
|
20
|
+
const workspaceHandlingTests: WorkspaceHandlingTests = e2eContainer.get(CLASSES.WorkspaceHandlingTests);
|
|
21
|
+
const projectAndFileTests: ProjectAndFileTests = e2eContainer.get(CLASSES.ProjectAndFileTests);
|
|
22
|
+
const commonLanguageServerTests: LanguageServerTests = e2eContainer.get(CLASSES.LanguageServerTests);
|
|
23
|
+
const codeExecutionTests: CodeExecutionTests = e2eContainer.get(CLASSES.CodeExecutionTests);
|
|
24
|
+
const editor: Editor = e2eContainer.get(CLASSES.Editor);
|
|
25
|
+
|
|
26
|
+
const workspaceSampleName: string = 'dotnet-web-simple';
|
|
27
|
+
const fileFolderPath: string = `${workspaceSampleName}`;
|
|
28
|
+
const tabTitle: string = 'Program.cs';
|
|
29
|
+
// const codeNavigationClassName: string = '[metadata] Console.cs';
|
|
30
|
+
const stack : string = '.NET Core';
|
|
31
|
+
const updateDependenciesTaskName: string = 'update dependencies';
|
|
32
|
+
const buildTaskName: string = 'build';
|
|
33
|
+
const runTaskName: string = 'run';
|
|
34
|
+
const runTaskNameExpectedString: string = 'Process 5000-tcp is now listening on port 5000. Open it ?';
|
|
35
|
+
let workspaceName: string;
|
|
36
|
+
|
|
37
|
+
suite(`Test ${stack}`, async () => {
|
|
38
|
+
suite (`Create ${stack} workspace`, async () => {
|
|
39
|
+
workspaceHandlingTests.createAndOpenWorkspace(stack);
|
|
40
|
+
|
|
41
|
+
test('Register running workspace', async () => {
|
|
42
|
+
workspaceName = WorkspaceHandlingTests.getWorkspaceName();
|
|
43
|
+
CheReporter.registerRunningWorkspace(workspaceName);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
projectAndFileTests.waitWorkspaceReadinessNoSubfolder(workspaceSampleName, false);
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
suite('Test opening file', async () => {
|
|
50
|
+
// opening file that soon should give time for LS to initialize
|
|
51
|
+
projectAndFileTests.openFile(fileFolderPath, tabTitle);
|
|
52
|
+
prepareEditorForLanguageServerTests();
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
suite('Installing dependencies', async () => {
|
|
56
|
+
codeExecutionTests.runTask(updateDependenciesTaskName, 120_000);
|
|
57
|
+
codeExecutionTests.closeTerminal(updateDependenciesTaskName);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
suite('Validation of workspace build', async () => {
|
|
61
|
+
codeExecutionTests.runTask(buildTaskName, 30_000);
|
|
62
|
+
codeExecutionTests.closeTerminal(buildTaskName);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
suite('Run .NET Core example application', async () => {
|
|
66
|
+
codeExecutionTests.runTaskWithNotification(runTaskName, runTaskNameExpectedString , 30_000);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
suite('Language server validation', async () => {
|
|
70
|
+
commonLanguageServerTests.suggestionInvoking(tabTitle, 22, 33, 'test');
|
|
71
|
+
commonLanguageServerTests.errorHighlighting(tabTitle, 'error_text;', 23);
|
|
72
|
+
commonLanguageServerTests.autocomplete(tabTitle, 22, 27, 'WriteLine');
|
|
73
|
+
// commonLanguageServerTests.goToImplementations(tabTitle, 22, 27, codeNavigationClassName); // codenavigation is inconsistent https://github.com/eclipse/che/issues/16929
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
suite ('Stopping and deleting the workspace', async () => {
|
|
77
|
+
test(`Stop and remowe workspace`, async () => {
|
|
78
|
+
await workspaceHandlingTests.stopAndRemoveWorkspace(workspaceName);
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
export function prepareEditorForLanguageServerTests() {
|
|
84
|
+
test(`Prepare file for LS tests`, async () => {
|
|
85
|
+
await editor.moveCursorToLineAndChar(tabTitle, 18, 6);
|
|
86
|
+
await editor.performKeyCombination(tabTitle, '\nprivate static String test = "test";');
|
|
87
|
+
await editor.moveCursorToLineAndChar(tabTitle, 21, 10);
|
|
88
|
+
await editor.performKeyCombination(tabTitle, '\nConsole.WriteLine(test);\n');
|
|
89
|
+
});
|
|
90
|
+
}
|