@eclipse-che/che-e2e 7.70.0-dev-eacd975 → 7.70.0-dev-6d2f86b
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 +4 -4
- package/configs/inversify.config.ts +5 -6
- package/configs/inversify.types.ts +0 -1
- package/configs/mocharc.ts +12 -2
- package/configs/sh-scripts/generateIndex.sh +2 -3
- package/constants/APITestConstants.ts +56 -0
- package/constants/BaseTestConstants.ts +65 -0
- package/constants/ChromeDriverConstants.ts +46 -0
- package/constants/FactoryTestConstants.ts +45 -0
- package/constants/MonacoConstants.ts +22 -0
- package/constants/OAuthConstants.ts +56 -0
- package/constants/PluginsTestConstants.ts +15 -0
- package/constants/ReporterConstants.ts +45 -0
- package/constants/TimeoutConstants.ts +28 -146
- package/dist/configs/inversify.config.js +5 -6
- package/dist/configs/inversify.config.js.map +1 -1
- package/dist/configs/inversify.types.js +0 -1
- package/dist/configs/inversify.types.js.map +1 -1
- package/dist/configs/mocharc.js +11 -2
- package/dist/configs/mocharc.js.map +1 -1
- package/dist/constants/APITestConstants.js +54 -0
- package/dist/constants/APITestConstants.js.map +1 -0
- package/dist/constants/BaseTestConstants.js +61 -0
- package/dist/constants/BaseTestConstants.js.map +1 -0
- package/dist/constants/ChromeDriverConstants.js +44 -0
- package/dist/constants/ChromeDriverConstants.js.map +1 -0
- package/dist/constants/FactoryTestConstants.js +44 -0
- package/dist/constants/FactoryTestConstants.js.map +1 -0
- package/dist/constants/MonacoConstants.js +25 -0
- package/dist/constants/MonacoConstants.js.map +1 -0
- package/dist/constants/OAuthConstants.js +52 -0
- package/dist/constants/OAuthConstants.js.map +1 -0
- package/dist/constants/PluginsTestConstants.js +19 -0
- package/dist/constants/PluginsTestConstants.js.map +1 -0
- package/dist/constants/ReporterConstants.js +43 -0
- package/dist/constants/ReporterConstants.js.map +1 -0
- package/dist/constants/TimeoutConstants.js +22 -113
- package/dist/constants/TimeoutConstants.js.map +1 -1
- package/dist/driver/ChromeDriver.js +7 -7
- package/dist/driver/ChromeDriver.js.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/pageobjects/dashboard/CreateWorkspace.js +2 -2
- package/dist/pageobjects/dashboard/CreateWorkspace.js.map +1 -1
- package/dist/pageobjects/dashboard/Dashboard.js +5 -4
- package/dist/pageobjects/dashboard/Dashboard.js.map +1 -1
- package/dist/pageobjects/dashboard/Workspaces.js +1 -2
- package/dist/pageobjects/dashboard/Workspaces.js.map +1 -1
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js +2 -3
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js.map +1 -1
- package/dist/pageobjects/git-providers/OauthPage.js +12 -19
- package/dist/pageobjects/git-providers/OauthPage.js.map +1 -1
- package/dist/pageobjects/ide/CheCodeLocatorLoader.js +2 -2
- package/dist/pageobjects/ide/CheCodeLocatorLoader.js.map +1 -1
- package/dist/pageobjects/login/kubernetes/KubernetesLoginPage.js +3 -3
- package/dist/pageobjects/login/kubernetes/KubernetesLoginPage.js.map +1 -1
- package/dist/pageobjects/{openshift → login/openshift}/OcpLoginPage.js +7 -7
- package/dist/pageobjects/login/openshift/OcpLoginPage.js.map +1 -0
- package/dist/pageobjects/login/openshift/OcpRedHatLoginPage.js +1 -1
- package/dist/pageobjects/login/openshift/OcpRedHatLoginPage.js.map +1 -1
- package/dist/pageobjects/login/openshift/OcpUserLoginPage.js +5 -5
- package/dist/pageobjects/login/openshift/OcpUserLoginPage.js.map +1 -1
- package/dist/pageobjects/login/openshift/RedHatLoginPage.js +3 -3
- package/dist/pageobjects/login/openshift/RedHatLoginPage.js.map +1 -1
- package/dist/pageobjects/login/openshift/RegularUserOcpCheLoginPage.js +4 -4
- package/dist/pageobjects/login/openshift/RegularUserOcpCheLoginPage.js.map +1 -1
- package/dist/specs/MochaHooks.js +9 -7
- package/dist/specs/MochaHooks.js.map +1 -1
- package/dist/specs/SmokeTest.spec.js +2 -2
- package/dist/specs/SmokeTest.spec.js.map +1 -1
- package/dist/specs/api/EmptyWorkspaceAPI.spec.js +4 -3
- package/dist/specs/api/EmptyWorkspaceAPI.spec.js.map +1 -1
- package/dist/specs/dashboard-samples/RecomendedExtentions.spec.js +4 -3
- package/dist/specs/dashboard-samples/RecomendedExtentions.spec.js.map +1 -1
- package/dist/specs/devconsole-intergration/DevConsoleIntegration.spec.js +2 -2
- package/dist/specs/devconsole-intergration/DevConsoleIntegration.spec.js.map +1 -1
- package/dist/specs/factory/Factory.spec.js +12 -10
- package/dist/specs/factory/Factory.spec.js.map +1 -1
- package/dist/specs/factory/NoSetupRepoFactory.spec.js +16 -14
- package/dist/specs/factory/NoSetupRepoFactory.spec.js.map +1 -1
- package/dist/specs/factory/RefusedOAuthFactory.spec.js +17 -15
- package/dist/specs/factory/RefusedOAuthFactory.spec.js.map +1 -1
- package/dist/tests-library/LoginTests.js +4 -4
- package/dist/tests-library/LoginTests.js.map +1 -1
- package/dist/tests-library/WorkspaceHandlingTests.js +1 -2
- package/dist/tests-library/WorkspaceHandlingTests.js.map +1 -1
- package/dist/utils/BrowserTabsUtil.js +2 -2
- package/dist/utils/BrowserTabsUtil.js.map +1 -1
- package/dist/utils/CheReporter.js +31 -27
- package/dist/utils/CheReporter.js.map +1 -1
- package/dist/utils/DevWorkspaceConfigurationHelper.js +7 -7
- package/dist/utils/DevWorkspaceConfigurationHelper.js.map +1 -1
- package/dist/utils/DevfilesRegistryHelper.js +9 -9
- package/dist/utils/DevfilesRegistryHelper.js.map +1 -1
- package/dist/utils/DriverHelper.js +16 -17
- package/dist/utils/DriverHelper.js.map +1 -1
- package/dist/utils/KubernetesCommandLineToolsExecutor.js +13 -11
- package/dist/utils/KubernetesCommandLineToolsExecutor.js.map +1 -1
- package/dist/utils/Logger.js +11 -11
- package/dist/utils/Logger.js.map +1 -1
- package/dist/utils/ScreenCatcher.js +5 -5
- package/dist/utils/ScreenCatcher.js.map +1 -1
- package/dist/utils/request-handlers/CheApiRequestHandler.js +2 -2
- package/dist/utils/request-handlers/CheApiRequestHandler.js.map +1 -1
- package/dist/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.js +2 -2
- package/dist/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +1 -1
- package/dist/utils/workspace/TestWorkspaceUtil.js +3 -3
- package/dist/utils/workspace/TestWorkspaceUtil.js.map +1 -1
- package/driver/ChromeDriver.ts +7 -7
- package/index.ts +11 -4
- package/package.json +1 -1
- package/pageobjects/dashboard/CreateWorkspace.ts +2 -2
- package/pageobjects/dashboard/Dashboard.ts +5 -4
- package/pageobjects/dashboard/Workspaces.ts +1 -2
- package/pageobjects/dashboard/workspace-details/WorkspaceDetails.ts +2 -3
- package/pageobjects/git-providers/OauthPage.ts +8 -16
- package/pageobjects/ide/CheCodeLocatorLoader.ts +2 -2
- package/pageobjects/login/kubernetes/KubernetesLoginPage.ts +3 -3
- package/pageobjects/{openshift → login/openshift}/OcpLoginPage.ts +7 -7
- package/pageobjects/login/openshift/OcpRedHatLoginPage.ts +1 -1
- package/pageobjects/login/openshift/OcpUserLoginPage.ts +5 -5
- package/pageobjects/login/openshift/RedHatLoginPage.ts +3 -3
- package/pageobjects/login/openshift/RegularUserOcpCheLoginPage.ts +4 -4
- package/specs/MochaHooks.ts +9 -7
- package/specs/SmokeTest.spec.ts +2 -2
- package/specs/api/EmptyWorkspaceAPI.spec.ts +4 -3
- package/specs/dashboard-samples/RecomendedExtentions.spec.ts +4 -3
- package/specs/devconsole-intergration/DevConsoleIntegration.spec.ts +2 -2
- package/specs/factory/Factory.spec.ts +12 -10
- package/specs/factory/NoSetupRepoFactory.spec.ts +16 -14
- package/specs/factory/RefusedOAuthFactory.spec.ts +17 -15
- package/tests-library/LoginTests.ts +4 -4
- package/tests-library/WorkspaceHandlingTests.ts +1 -2
- package/utils/BrowserTabsUtil.ts +2 -2
- package/utils/CheReporter.ts +32 -28
- package/utils/DevWorkspaceConfigurationHelper.ts +7 -7
- package/utils/DevfilesRegistryHelper.ts +3 -3
- package/utils/DriverHelper.ts +20 -21
- package/utils/KubernetesCommandLineToolsExecutor.ts +11 -9
- package/utils/Logger.ts +11 -12
- package/utils/ScreenCatcher.ts +5 -5
- package/utils/request-handlers/CheApiRequestHandler.ts +2 -2
- package/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.ts +2 -2
- package/utils/workspace/TestWorkspaceUtil.ts +3 -3
- package/constants/TestConstants.ts +0 -274
- package/dist/constants/TestConstants.js +0 -223
- package/dist/constants/TestConstants.js.map +0 -1
- package/dist/pageobjects/openshift/CheLoginPage.js +0 -55
- package/dist/pageobjects/openshift/CheLoginPage.js.map +0 -1
- package/dist/pageobjects/openshift/OcpLoginPage.js.map +0 -1
- package/pageobjects/openshift/CheLoginPage.ts +0 -42
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* Copyright (c) 2019-2023 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
|
-
export enum GitProviderType {
|
|
11
|
-
GITHUB = 'github',
|
|
12
|
-
GITLAB = 'gitlab',
|
|
13
|
-
BITBUCKET = 'bitbucket'
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export enum KubernetesCommandLineTool {
|
|
18
|
-
OC = 'oc',
|
|
19
|
-
KUBECTL = 'kubectl',
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export enum Platform {
|
|
23
|
-
OPENSHIFT = 'openshift',
|
|
24
|
-
KUBERNETES = 'kubernetes',
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export const SupportedDevfilesRegistries: any = {
|
|
28
|
-
INBUILT_APPLICATION_DEVFILE_REGISTRY_URL: () => `${TestConstants.TS_SELENIUM_BASE_URL}/devfile-registry/devfiles/`,
|
|
29
|
-
GIT_HUB_CHE_DEVFILE_REGISTRY_URL: `https://api.github.com/repos/eclipse-che/che-devfile-registry/contents/devfiles/`,
|
|
30
|
-
};
|
|
31
|
-
export const TestConstants: any = {
|
|
32
|
-
/**
|
|
33
|
-
* Base URL of the application which should be checked
|
|
34
|
-
*/
|
|
35
|
-
TS_SELENIUM_BASE_URL: !process.env.TS_SELENIUM_BASE_URL ? 'http://sample-url' : process.env.TS_SELENIUM_BASE_URL.replace(/\/$/, ''),
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Choose the platform where "che" application deployed, "openshift" by default.
|
|
39
|
-
*/
|
|
40
|
-
TS_PLATFORM: process.env.TS_PLATFORM || Platform.OPENSHIFT,
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Run browser in "Headless" (hidden) mode, "false" by default.
|
|
44
|
-
*/
|
|
45
|
-
TS_SELENIUM_HEADLESS: process.env.TS_SELENIUM_HEADLESS === 'true',
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Create instance of chromedriver, "true" by default. Should be "false" to run only API tests.
|
|
49
|
-
*/
|
|
50
|
-
TS_USE_WEB_DRIVER_FOR_TEST: process.env.TS_USE_WEB_DRIVER_FOR_TEST !== 'false',
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Run browser in "Fullscreen" (kiosk) mode.
|
|
54
|
-
* Default to true if undefined
|
|
55
|
-
*/
|
|
56
|
-
TS_SELENIUM_LAUNCH_FULLSCREEN: (process.env.TS_SELENIUM_LAUNCH_FULLSCREEN !== 'false'),
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Run browser with an enabled or disabled W3C protocol (on Chrome 76 and upper, it is enabled by default), "true" by default.
|
|
60
|
-
*/
|
|
61
|
-
TS_SELENIUM_W3C_CHROME_OPTION: process.env.TS_SELENIUM_W3C_CHROME_OPTION !== 'false',
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Browser width resolution, "1920" by default.
|
|
65
|
-
*/
|
|
66
|
-
TS_SELENIUM_RESOLUTION_WIDTH: Number(process.env.TS_SELENIUM_RESOLUTION_WIDTH) || 1920,
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Browser height resolution, "1080" by default.
|
|
70
|
-
*/
|
|
71
|
-
TS_SELENIUM_RESOLUTION_HEIGHT: Number(process.env.TS_SELENIUM_RESOLUTION_HEIGHT) || 1080,
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Editor the tests are running against, "code" by default.
|
|
75
|
-
* Possible values: "che-code"
|
|
76
|
-
*/
|
|
77
|
-
TS_SELENIUM_EDITOR: process.env.TS_SELENIUM_EDITOR || 'che-code',
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Base version of VSCode editor for monaco-page-objects, "1.37.0" by default.
|
|
81
|
-
*/
|
|
82
|
-
TS_SELENIUM_MONACO_PAGE_OBJECTS_BASE_VERSION: process.env.TS_SELENIUM_MONACO_PAGE_OBJECTS_BASE_VERSION || '1.37.0',
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Latest compatible version to be used, based on versions available in
|
|
86
|
-
* https://github.com/redhat-developer/vscode-extension-tester/tree/master/locators/lib ,
|
|
87
|
-
* "1.73.0" by default.
|
|
88
|
-
*/
|
|
89
|
-
TS_SELENIUM_MONACO_PAGE_OBJECTS_USE_VERSION: process.env.TS_SELENIUM_MONACO_PAGE_OBJECTS_USE_VERSION || '1.73.0',
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Default amount of tries, "5" by default.
|
|
93
|
-
*/
|
|
94
|
-
TS_SELENIUM_DEFAULT_ATTEMPTS: Number(process.env.TS_SELENIUM_DEFAULT_ATTEMPTS) || 5,
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Default delay in milliseconds between tries, "1000" by default.
|
|
98
|
-
*/
|
|
99
|
-
TS_SELENIUM_DEFAULT_POLLING: Number(process.env.TS_SELENIUM_DEFAULT_POLLING) || 1000,
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Amount of tries for checking workspace status.
|
|
103
|
-
*/
|
|
104
|
-
TS_SELENIUM_WORKSPACE_STATUS_ATTEMPTS: Number(process.env.TS_SELENIUM_WORKSPACE_STATUS_ATTEMPTS) || 90,
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Delay in milliseconds between checking workspace status tries.
|
|
108
|
-
*/
|
|
109
|
-
TS_SELENIUM_WORKSPACE_STATUS_POLLING: Number(process.env.TS_SELENIUM_WORKSPACE_STATUS_POLLING) || 10000,
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Name of workspace created for 'Happy Path' scenario validation.
|
|
113
|
-
*/
|
|
114
|
-
TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME: process.env.TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME || 'EmptyWorkspace',
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Value of OpenShift oAuth property determines how to login in installed application,
|
|
118
|
-
* if 'false' as an user of application, if 'true' as a regular user of OCP.
|
|
119
|
-
*/
|
|
120
|
-
TS_SELENIUM_VALUE_OPENSHIFT_OAUTH: process.env.TS_SELENIUM_VALUE_OPENSHIFT_OAUTH === 'true',
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Log into OCP by using appropriate provider title.
|
|
124
|
-
*/
|
|
125
|
-
TS_OCP_LOGIN_PAGE_PROVIDER_TITLE: process.env.TS_OCP_LOGIN_PAGE_PROVIDER_TITLE || '',
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Path to folder with load tests execution report.
|
|
129
|
-
*/
|
|
130
|
-
TS_SELENIUM_LOAD_TEST_REPORT_FOLDER: process.env.TS_SELENIUM_LOAD_TEST_REPORT_FOLDER || './load-test-folder',
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Regular username used to login in OCP.
|
|
134
|
-
*/
|
|
135
|
-
TS_SELENIUM_OCP_USERNAME: process.env.TS_SELENIUM_OCP_USERNAME || '',
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Password regular user used to login in OCP.
|
|
139
|
-
*/
|
|
140
|
-
TS_SELENIUM_OCP_PASSWORD: process.env.TS_SELENIUM_OCP_PASSWORD || '',
|
|
141
|
-
/**
|
|
142
|
-
* Regular username used to login in Kubernetes.
|
|
143
|
-
*/
|
|
144
|
-
TS_SELENIUM_K8S_USERNAME: process.env.TS_SELENIUM_K8S_USERNAME || 'che@eclipse.org',
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Password regular user used to login in Kubernetes.
|
|
148
|
-
*/
|
|
149
|
-
TS_SELENIUM_K8S_PASSWORD: process.env.TS_SELENIUM_K8S_PASSWORD || '',
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Delay between screenshots catching in the milliseconds for the execution screencast.
|
|
153
|
-
*/
|
|
154
|
-
TS_SELENIUM_DELAY_BETWEEN_SCREENSHOTS: Number(process.env.TS_SELENIUM_DELAY_BETWEEN_SCREENSHOTS) || 1000,
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Path to folder with tests execution report.
|
|
158
|
-
*/
|
|
159
|
-
TS_SELENIUM_REPORT_FOLDER: process.env.TS_SELENIUM_REPORT_FOLDER || './report',
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Enable or disable storing of execution screencast, "false" by default.
|
|
163
|
-
*/
|
|
164
|
-
TS_SELENIUM_EXECUTION_SCREENCAST: process.env.TS_SELENIUM_EXECUTION_SCREENCAST === 'true',
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Delete screencast after execution if all tests passed, "true" by default.
|
|
168
|
-
*/
|
|
169
|
-
DELETE_SCREENCAST_IF_TEST_PASS: process.env.DELETE_SCREENCAST_IF_TEST_PASS !== 'false',
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Remote driver URL.
|
|
173
|
-
*/
|
|
174
|
-
TS_SELENIUM_REMOTE_DRIVER_URL: process.env.TS_SELENIUM_REMOTE_DRIVER_URL || '',
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Stop and remove workspace if a test fails.
|
|
178
|
-
*/
|
|
179
|
-
DELETE_WORKSPACE_ON_FAILED_TEST: process.env.DELETE_WORKSPACE_ON_FAILED_TEST === 'true',
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Log level settings, possible variants: 'INFO' (by default), 'DEBUG', 'TRACE'.
|
|
183
|
-
*/
|
|
184
|
-
TS_SELENIUM_LOG_LEVEL: process.env.TS_SELENIUM_LOG_LEVEL || 'INFO',
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Enable Axios request interceptor, false by default
|
|
188
|
-
*/
|
|
189
|
-
TS_SELENIUM_REQUEST_INTERCEPTOR: process.env.TS_SELENIUM_REQUEST_INTERCEPTOR === 'true',
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Enable Axios response interceptor, false by default
|
|
193
|
-
*/
|
|
194
|
-
TS_SELENIUM_RESPONSE_INTERCEPTOR: process.env.TS_SELENIUM_RESPONSE_INTERCEPTOR === 'true',
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Running test suite - possible variants can be found in package.json scripts part.
|
|
198
|
-
*/
|
|
199
|
-
TEST_SUITE: process.env.TEST_SUITE || 'userstory',
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Print all timeout variables when tests launch, default to false
|
|
203
|
-
*/
|
|
204
|
-
TS_SELENIUM_PRINT_TIMEOUT_VARIABLES: process.env.TS_SELENIUM_PRINT_TIMEOUT_VARIABLES || false,
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* URL of the workspace created by devworkspace-controller
|
|
208
|
-
*/
|
|
209
|
-
TS_SELENIUM_DEVWORKSPACE_URL: process.env.TS_SELENIUM_DEVWORKSPACE_URL,
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* This variable specifies that run test is used for load testing and that all artifacts will be sent to ftp client.
|
|
213
|
-
*/
|
|
214
|
-
TS_LOAD_TESTS: process.env.TS_LOAD_TESTS || 'false',
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Constant, which prolong timeout constants for local debug.
|
|
218
|
-
*/
|
|
219
|
-
TS_DEBUG_MODE: process.env.TS_DEBUG_MODE === 'true',
|
|
220
|
-
|
|
221
|
-
E2E_OCP_CLUSTER_VERSION: process.env.E2E_OCP_CLUSTER_VERSION || '4.x',
|
|
222
|
-
|
|
223
|
-
TS_SAMPLE_LIST: process.env.TS_SAMPLE_LIST || 'Node.js MongoDB,Node.js Express',
|
|
224
|
-
|
|
225
|
-
/* -------------------------------------------
|
|
226
|
-
| The factory tests related constants
|
|
227
|
-
----------------------------------------------*/
|
|
228
|
-
TS_SELENIUM_FACTORY_GIT_PROVIDER: process.env.TS_SELENIUM_FACTORY_GIT_PROVIDER || GitProviderType.GITHUB,
|
|
229
|
-
|
|
230
|
-
TS_SELENIUM_FACTORY_GIT_REPO_URL: process.env.TS_SELENIUM_FACTORY_GIT_REPO_URL || '',
|
|
231
|
-
|
|
232
|
-
TS_SELENIUM_IS_PRIVATE_FACTORY_GIT_REPO: process.env.TS_SELENIUM_IS_PRIVATE_FACTORY_GIT_REPO === 'true',
|
|
233
|
-
|
|
234
|
-
TS_SELENIUM_FACTORY_GIT_REPO_BRANCH: process.env.TS_SELENIUM_FACTORY_GIT_REPO_BRANCH || 'master',
|
|
235
|
-
|
|
236
|
-
TS_SELENIUM_FACTORY_URL(): string {
|
|
237
|
-
return process.env.TS_SELENIUM_FACTORY_URL || TestConstants.TS_SELENIUM_BASE_URL + '/dashboard/#/' + this.TS_SELENIUM_FACTORY_GIT_REPO_URL;
|
|
238
|
-
},
|
|
239
|
-
|
|
240
|
-
TS_SELENIUM_GIT_PROVIDER_USERNAME: process.env.TS_SELENIUM_GIT_PROVIDER_USERNAME || '',
|
|
241
|
-
|
|
242
|
-
TS_SELENIUM_GIT_PROVIDER_PASSWORD: process.env.TS_SELENIUM_GIT_PROVIDER_PASSWORD || '',
|
|
243
|
-
|
|
244
|
-
TS_SELENIUM_GIT_PROVIDER_IS_LDAP_LOGIN: process.env.TS_SELENIUM_GIT_PROVIDER_IS_LDAP_LOGIN === 'true',
|
|
245
|
-
|
|
246
|
-
TS_SELENIUM_GIT_PROVIDER_OAUTH: process.env.TS_SELENIUM_GIT_PROVIDER_OAUTH === 'true',
|
|
247
|
-
|
|
248
|
-
TS_SELENIUM_PROJECT_ROOT_FILE_NAME: process.env.TS_SELENIUM_PROJECT_ROOT_FILE_NAME || 'devfile.yaml',
|
|
249
|
-
|
|
250
|
-
/* -------------------------------------------
|
|
251
|
-
| The api tests related constants
|
|
252
|
-
----------------------------------------------*/
|
|
253
|
-
|
|
254
|
-
TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL: process.env.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL || KubernetesCommandLineTool.OC,
|
|
255
|
-
|
|
256
|
-
// 'quay.io/devfile/universal-developer-image:latest'
|
|
257
|
-
// is default assigned by DevWorkspaceConfigurationHelper.generateDevfileContext() using @eclipse-che/che-devworkspace-generator
|
|
258
|
-
TS_API_TEST_UDI_IMAGE: process.env.TS_API_TEST_UDI_IMAGE || undefined,
|
|
259
|
-
|
|
260
|
-
// https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/latest/devfile.yaml
|
|
261
|
-
// is default assigned by DevWorkspaceConfigurationHelper.generateDevfileContext() using @eclipse-che/che-devworkspace-generator
|
|
262
|
-
TS_API_TEST_CHE_CODE_EDITOR_DEVFILE_URI: process.env.TS_API_TEST_CHE_CODE_EDITOR_DEVFILE_URI || undefined,
|
|
263
|
-
|
|
264
|
-
// https://eclipse-che.github.io/che-plugin-registry/main/v3
|
|
265
|
-
// is default assigned by DevWorkspaceConfigurationHelper.generateDevfileContext() using @eclipse-che/che-devworkspace-generator
|
|
266
|
-
TS_API_TEST_PLUGIN_REGISTRY_URL: process.env.TS_API_TEST_PLUGIN_REGISTRY_URL || undefined,
|
|
267
|
-
|
|
268
|
-
TS_API_TEST_NAMESPACE: process.env.TS_API_TEST_NAMESPACE || undefined,
|
|
269
|
-
|
|
270
|
-
// to run all devfile from registry. used in DevfileAcceptanceTestAPI.suite.ts
|
|
271
|
-
TS_API_ACCEPTANCE_TEST_REGISTRY_URL(): string {
|
|
272
|
-
return process.env.TS_API_ACCEPTANCE_TEST_REGISTRY_URL || SupportedDevfilesRegistries.INBUILT_APPLICATION_DEVFILE_REGISTRY_URL();
|
|
273
|
-
},
|
|
274
|
-
};
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestConstants = exports.SupportedDevfilesRegistries = exports.Platform = exports.KubernetesCommandLineTool = exports.GitProviderType = void 0;
|
|
4
|
-
/*********************************************************************
|
|
5
|
-
* Copyright (c) 2019-2023 Red Hat, Inc.
|
|
6
|
-
*
|
|
7
|
-
* This program and the accompanying materials are made
|
|
8
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
9
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
10
|
-
*
|
|
11
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
12
|
-
**********************************************************************/
|
|
13
|
-
var GitProviderType;
|
|
14
|
-
(function (GitProviderType) {
|
|
15
|
-
GitProviderType["GITHUB"] = "github";
|
|
16
|
-
GitProviderType["GITLAB"] = "gitlab";
|
|
17
|
-
GitProviderType["BITBUCKET"] = "bitbucket";
|
|
18
|
-
})(GitProviderType = exports.GitProviderType || (exports.GitProviderType = {}));
|
|
19
|
-
var KubernetesCommandLineTool;
|
|
20
|
-
(function (KubernetesCommandLineTool) {
|
|
21
|
-
KubernetesCommandLineTool["OC"] = "oc";
|
|
22
|
-
KubernetesCommandLineTool["KUBECTL"] = "kubectl";
|
|
23
|
-
})(KubernetesCommandLineTool = exports.KubernetesCommandLineTool || (exports.KubernetesCommandLineTool = {}));
|
|
24
|
-
var Platform;
|
|
25
|
-
(function (Platform) {
|
|
26
|
-
Platform["OPENSHIFT"] = "openshift";
|
|
27
|
-
Platform["KUBERNETES"] = "kubernetes";
|
|
28
|
-
})(Platform = exports.Platform || (exports.Platform = {}));
|
|
29
|
-
exports.SupportedDevfilesRegistries = {
|
|
30
|
-
INBUILT_APPLICATION_DEVFILE_REGISTRY_URL: () => `${exports.TestConstants.TS_SELENIUM_BASE_URL}/devfile-registry/devfiles/`,
|
|
31
|
-
GIT_HUB_CHE_DEVFILE_REGISTRY_URL: `https://api.github.com/repos/eclipse-che/che-devfile-registry/contents/devfiles/`,
|
|
32
|
-
};
|
|
33
|
-
exports.TestConstants = {
|
|
34
|
-
/**
|
|
35
|
-
* Base URL of the application which should be checked
|
|
36
|
-
*/
|
|
37
|
-
TS_SELENIUM_BASE_URL: !process.env.TS_SELENIUM_BASE_URL ? 'http://sample-url' : process.env.TS_SELENIUM_BASE_URL.replace(/\/$/, ''),
|
|
38
|
-
/**
|
|
39
|
-
* Choose the platform where "che" application deployed, "openshift" by default.
|
|
40
|
-
*/
|
|
41
|
-
TS_PLATFORM: process.env.TS_PLATFORM || Platform.OPENSHIFT,
|
|
42
|
-
/**
|
|
43
|
-
* Run browser in "Headless" (hidden) mode, "false" by default.
|
|
44
|
-
*/
|
|
45
|
-
TS_SELENIUM_HEADLESS: process.env.TS_SELENIUM_HEADLESS === 'true',
|
|
46
|
-
/**
|
|
47
|
-
* Create instance of chromedriver, "true" by default. Should be "false" to run only API tests.
|
|
48
|
-
*/
|
|
49
|
-
TS_USE_WEB_DRIVER_FOR_TEST: process.env.TS_USE_WEB_DRIVER_FOR_TEST !== 'false',
|
|
50
|
-
/**
|
|
51
|
-
* Run browser in "Fullscreen" (kiosk) mode.
|
|
52
|
-
* Default to true if undefined
|
|
53
|
-
*/
|
|
54
|
-
TS_SELENIUM_LAUNCH_FULLSCREEN: (process.env.TS_SELENIUM_LAUNCH_FULLSCREEN !== 'false'),
|
|
55
|
-
/**
|
|
56
|
-
* Run browser with an enabled or disabled W3C protocol (on Chrome 76 and upper, it is enabled by default), "true" by default.
|
|
57
|
-
*/
|
|
58
|
-
TS_SELENIUM_W3C_CHROME_OPTION: process.env.TS_SELENIUM_W3C_CHROME_OPTION !== 'false',
|
|
59
|
-
/**
|
|
60
|
-
* Browser width resolution, "1920" by default.
|
|
61
|
-
*/
|
|
62
|
-
TS_SELENIUM_RESOLUTION_WIDTH: Number(process.env.TS_SELENIUM_RESOLUTION_WIDTH) || 1920,
|
|
63
|
-
/**
|
|
64
|
-
* Browser height resolution, "1080" by default.
|
|
65
|
-
*/
|
|
66
|
-
TS_SELENIUM_RESOLUTION_HEIGHT: Number(process.env.TS_SELENIUM_RESOLUTION_HEIGHT) || 1080,
|
|
67
|
-
/**
|
|
68
|
-
* Editor the tests are running against, "code" by default.
|
|
69
|
-
* Possible values: "che-code"
|
|
70
|
-
*/
|
|
71
|
-
TS_SELENIUM_EDITOR: process.env.TS_SELENIUM_EDITOR || 'che-code',
|
|
72
|
-
/**
|
|
73
|
-
* Base version of VSCode editor for monaco-page-objects, "1.37.0" by default.
|
|
74
|
-
*/
|
|
75
|
-
TS_SELENIUM_MONACO_PAGE_OBJECTS_BASE_VERSION: process.env.TS_SELENIUM_MONACO_PAGE_OBJECTS_BASE_VERSION || '1.37.0',
|
|
76
|
-
/**
|
|
77
|
-
* Latest compatible version to be used, based on versions available in
|
|
78
|
-
* https://github.com/redhat-developer/vscode-extension-tester/tree/master/locators/lib ,
|
|
79
|
-
* "1.73.0" by default.
|
|
80
|
-
*/
|
|
81
|
-
TS_SELENIUM_MONACO_PAGE_OBJECTS_USE_VERSION: process.env.TS_SELENIUM_MONACO_PAGE_OBJECTS_USE_VERSION || '1.73.0',
|
|
82
|
-
/**
|
|
83
|
-
* Default amount of tries, "5" by default.
|
|
84
|
-
*/
|
|
85
|
-
TS_SELENIUM_DEFAULT_ATTEMPTS: Number(process.env.TS_SELENIUM_DEFAULT_ATTEMPTS) || 5,
|
|
86
|
-
/**
|
|
87
|
-
* Default delay in milliseconds between tries, "1000" by default.
|
|
88
|
-
*/
|
|
89
|
-
TS_SELENIUM_DEFAULT_POLLING: Number(process.env.TS_SELENIUM_DEFAULT_POLLING) || 1000,
|
|
90
|
-
/**
|
|
91
|
-
* Amount of tries for checking workspace status.
|
|
92
|
-
*/
|
|
93
|
-
TS_SELENIUM_WORKSPACE_STATUS_ATTEMPTS: Number(process.env.TS_SELENIUM_WORKSPACE_STATUS_ATTEMPTS) || 90,
|
|
94
|
-
/**
|
|
95
|
-
* Delay in milliseconds between checking workspace status tries.
|
|
96
|
-
*/
|
|
97
|
-
TS_SELENIUM_WORKSPACE_STATUS_POLLING: Number(process.env.TS_SELENIUM_WORKSPACE_STATUS_POLLING) || 10000,
|
|
98
|
-
/**
|
|
99
|
-
* Name of workspace created for 'Happy Path' scenario validation.
|
|
100
|
-
*/
|
|
101
|
-
TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME: process.env.TS_SELENIUM_HAPPY_PATH_WORKSPACE_NAME || 'EmptyWorkspace',
|
|
102
|
-
/**
|
|
103
|
-
* Value of OpenShift oAuth property determines how to login in installed application,
|
|
104
|
-
* if 'false' as an user of application, if 'true' as a regular user of OCP.
|
|
105
|
-
*/
|
|
106
|
-
TS_SELENIUM_VALUE_OPENSHIFT_OAUTH: process.env.TS_SELENIUM_VALUE_OPENSHIFT_OAUTH === 'true',
|
|
107
|
-
/**
|
|
108
|
-
* Log into OCP by using appropriate provider title.
|
|
109
|
-
*/
|
|
110
|
-
TS_OCP_LOGIN_PAGE_PROVIDER_TITLE: process.env.TS_OCP_LOGIN_PAGE_PROVIDER_TITLE || '',
|
|
111
|
-
/**
|
|
112
|
-
* Path to folder with load tests execution report.
|
|
113
|
-
*/
|
|
114
|
-
TS_SELENIUM_LOAD_TEST_REPORT_FOLDER: process.env.TS_SELENIUM_LOAD_TEST_REPORT_FOLDER || './load-test-folder',
|
|
115
|
-
/**
|
|
116
|
-
* Regular username used to login in OCP.
|
|
117
|
-
*/
|
|
118
|
-
TS_SELENIUM_OCP_USERNAME: process.env.TS_SELENIUM_OCP_USERNAME || '',
|
|
119
|
-
/**
|
|
120
|
-
* Password regular user used to login in OCP.
|
|
121
|
-
*/
|
|
122
|
-
TS_SELENIUM_OCP_PASSWORD: process.env.TS_SELENIUM_OCP_PASSWORD || '',
|
|
123
|
-
/**
|
|
124
|
-
* Regular username used to login in Kubernetes.
|
|
125
|
-
*/
|
|
126
|
-
TS_SELENIUM_K8S_USERNAME: process.env.TS_SELENIUM_K8S_USERNAME || 'che@eclipse.org',
|
|
127
|
-
/**
|
|
128
|
-
* Password regular user used to login in Kubernetes.
|
|
129
|
-
*/
|
|
130
|
-
TS_SELENIUM_K8S_PASSWORD: process.env.TS_SELENIUM_K8S_PASSWORD || '',
|
|
131
|
-
/**
|
|
132
|
-
* Delay between screenshots catching in the milliseconds for the execution screencast.
|
|
133
|
-
*/
|
|
134
|
-
TS_SELENIUM_DELAY_BETWEEN_SCREENSHOTS: Number(process.env.TS_SELENIUM_DELAY_BETWEEN_SCREENSHOTS) || 1000,
|
|
135
|
-
/**
|
|
136
|
-
* Path to folder with tests execution report.
|
|
137
|
-
*/
|
|
138
|
-
TS_SELENIUM_REPORT_FOLDER: process.env.TS_SELENIUM_REPORT_FOLDER || './report',
|
|
139
|
-
/**
|
|
140
|
-
* Enable or disable storing of execution screencast, "false" by default.
|
|
141
|
-
*/
|
|
142
|
-
TS_SELENIUM_EXECUTION_SCREENCAST: process.env.TS_SELENIUM_EXECUTION_SCREENCAST === 'true',
|
|
143
|
-
/**
|
|
144
|
-
* Delete screencast after execution if all tests passed, "true" by default.
|
|
145
|
-
*/
|
|
146
|
-
DELETE_SCREENCAST_IF_TEST_PASS: process.env.DELETE_SCREENCAST_IF_TEST_PASS !== 'false',
|
|
147
|
-
/**
|
|
148
|
-
* Remote driver URL.
|
|
149
|
-
*/
|
|
150
|
-
TS_SELENIUM_REMOTE_DRIVER_URL: process.env.TS_SELENIUM_REMOTE_DRIVER_URL || '',
|
|
151
|
-
/**
|
|
152
|
-
* Stop and remove workspace if a test fails.
|
|
153
|
-
*/
|
|
154
|
-
DELETE_WORKSPACE_ON_FAILED_TEST: process.env.DELETE_WORKSPACE_ON_FAILED_TEST === 'true',
|
|
155
|
-
/**
|
|
156
|
-
* Log level settings, possible variants: 'INFO' (by default), 'DEBUG', 'TRACE'.
|
|
157
|
-
*/
|
|
158
|
-
TS_SELENIUM_LOG_LEVEL: process.env.TS_SELENIUM_LOG_LEVEL || 'INFO',
|
|
159
|
-
/**
|
|
160
|
-
* Enable Axios request interceptor, false by default
|
|
161
|
-
*/
|
|
162
|
-
TS_SELENIUM_REQUEST_INTERCEPTOR: process.env.TS_SELENIUM_REQUEST_INTERCEPTOR === 'true',
|
|
163
|
-
/**
|
|
164
|
-
* Enable Axios response interceptor, false by default
|
|
165
|
-
*/
|
|
166
|
-
TS_SELENIUM_RESPONSE_INTERCEPTOR: process.env.TS_SELENIUM_RESPONSE_INTERCEPTOR === 'true',
|
|
167
|
-
/**
|
|
168
|
-
* Running test suite - possible variants can be found in package.json scripts part.
|
|
169
|
-
*/
|
|
170
|
-
TEST_SUITE: process.env.TEST_SUITE || 'userstory',
|
|
171
|
-
/**
|
|
172
|
-
* Print all timeout variables when tests launch, default to false
|
|
173
|
-
*/
|
|
174
|
-
TS_SELENIUM_PRINT_TIMEOUT_VARIABLES: process.env.TS_SELENIUM_PRINT_TIMEOUT_VARIABLES || false,
|
|
175
|
-
/**
|
|
176
|
-
* URL of the workspace created by devworkspace-controller
|
|
177
|
-
*/
|
|
178
|
-
TS_SELENIUM_DEVWORKSPACE_URL: process.env.TS_SELENIUM_DEVWORKSPACE_URL,
|
|
179
|
-
/**
|
|
180
|
-
* This variable specifies that run test is used for load testing and that all artifacts will be sent to ftp client.
|
|
181
|
-
*/
|
|
182
|
-
TS_LOAD_TESTS: process.env.TS_LOAD_TESTS || 'false',
|
|
183
|
-
/**
|
|
184
|
-
* Constant, which prolong timeout constants for local debug.
|
|
185
|
-
*/
|
|
186
|
-
TS_DEBUG_MODE: process.env.TS_DEBUG_MODE === 'true',
|
|
187
|
-
E2E_OCP_CLUSTER_VERSION: process.env.E2E_OCP_CLUSTER_VERSION || '4.x',
|
|
188
|
-
TS_SAMPLE_LIST: process.env.TS_SAMPLE_LIST || 'Node.js MongoDB,Node.js Express',
|
|
189
|
-
/* -------------------------------------------
|
|
190
|
-
| The factory tests related constants
|
|
191
|
-
----------------------------------------------*/
|
|
192
|
-
TS_SELENIUM_FACTORY_GIT_PROVIDER: process.env.TS_SELENIUM_FACTORY_GIT_PROVIDER || GitProviderType.GITHUB,
|
|
193
|
-
TS_SELENIUM_FACTORY_GIT_REPO_URL: process.env.TS_SELENIUM_FACTORY_GIT_REPO_URL || '',
|
|
194
|
-
TS_SELENIUM_IS_PRIVATE_FACTORY_GIT_REPO: process.env.TS_SELENIUM_IS_PRIVATE_FACTORY_GIT_REPO === 'true',
|
|
195
|
-
TS_SELENIUM_FACTORY_GIT_REPO_BRANCH: process.env.TS_SELENIUM_FACTORY_GIT_REPO_BRANCH || 'master',
|
|
196
|
-
TS_SELENIUM_FACTORY_URL() {
|
|
197
|
-
return process.env.TS_SELENIUM_FACTORY_URL || exports.TestConstants.TS_SELENIUM_BASE_URL + '/dashboard/#/' + this.TS_SELENIUM_FACTORY_GIT_REPO_URL;
|
|
198
|
-
},
|
|
199
|
-
TS_SELENIUM_GIT_PROVIDER_USERNAME: process.env.TS_SELENIUM_GIT_PROVIDER_USERNAME || '',
|
|
200
|
-
TS_SELENIUM_GIT_PROVIDER_PASSWORD: process.env.TS_SELENIUM_GIT_PROVIDER_PASSWORD || '',
|
|
201
|
-
TS_SELENIUM_GIT_PROVIDER_IS_LDAP_LOGIN: process.env.TS_SELENIUM_GIT_PROVIDER_IS_LDAP_LOGIN === 'true',
|
|
202
|
-
TS_SELENIUM_GIT_PROVIDER_OAUTH: process.env.TS_SELENIUM_GIT_PROVIDER_OAUTH === 'true',
|
|
203
|
-
TS_SELENIUM_PROJECT_ROOT_FILE_NAME: process.env.TS_SELENIUM_PROJECT_ROOT_FILE_NAME || 'devfile.yaml',
|
|
204
|
-
/* -------------------------------------------
|
|
205
|
-
| The api tests related constants
|
|
206
|
-
----------------------------------------------*/
|
|
207
|
-
TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL: process.env.TS_API_TEST_KUBERNETES_COMMAND_LINE_TOOL || KubernetesCommandLineTool.OC,
|
|
208
|
-
// 'quay.io/devfile/universal-developer-image:latest'
|
|
209
|
-
// is default assigned by DevWorkspaceConfigurationHelper.generateDevfileContext() using @eclipse-che/che-devworkspace-generator
|
|
210
|
-
TS_API_TEST_UDI_IMAGE: process.env.TS_API_TEST_UDI_IMAGE || undefined,
|
|
211
|
-
// https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/latest/devfile.yaml
|
|
212
|
-
// is default assigned by DevWorkspaceConfigurationHelper.generateDevfileContext() using @eclipse-che/che-devworkspace-generator
|
|
213
|
-
TS_API_TEST_CHE_CODE_EDITOR_DEVFILE_URI: process.env.TS_API_TEST_CHE_CODE_EDITOR_DEVFILE_URI || undefined,
|
|
214
|
-
// https://eclipse-che.github.io/che-plugin-registry/main/v3
|
|
215
|
-
// is default assigned by DevWorkspaceConfigurationHelper.generateDevfileContext() using @eclipse-che/che-devworkspace-generator
|
|
216
|
-
TS_API_TEST_PLUGIN_REGISTRY_URL: process.env.TS_API_TEST_PLUGIN_REGISTRY_URL || undefined,
|
|
217
|
-
TS_API_TEST_NAMESPACE: process.env.TS_API_TEST_NAMESPACE || undefined,
|
|
218
|
-
// to run all devfile from registry. used in DevfileAcceptanceTestAPI.suite.ts
|
|
219
|
-
TS_API_ACCEPTANCE_TEST_REGISTRY_URL() {
|
|
220
|
-
return process.env.TS_API_ACCEPTANCE_TEST_REGISTRY_URL || exports.SupportedDevfilesRegistries.INBUILT_APPLICATION_DEVFILE_REGISTRY_URL();
|
|
221
|
-
},
|
|
222
|
-
};
|
|
223
|
-
//# sourceMappingURL=TestConstants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestConstants.js","sourceRoot":"","sources":["../../constants/TestConstants.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;wEAQwE;AACxE,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,0CAAuB,CAAA;AAC3B,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAGD,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACjC,sCAAS,CAAA;IACT,gDAAmB,CAAA;AACvB,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC;AAED,IAAY,QAGX;AAHD,WAAY,QAAQ;IAChB,mCAAuB,CAAA;IACvB,qCAAyB,CAAA;AAC7B,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB;AAEY,QAAA,2BAA2B,GAAQ;IAC5C,wCAAwC,EAAE,GAAG,EAAE,CAAC,GAAG,qBAAa,CAAC,oBAAoB,6BAA6B;IAClH,gCAAgC,EAAE,kFAAkF;CACvH,CAAC;AACW,QAAA,aAAa,GAAQ;IAC9B;;OAEG;IACH,oBAAoB,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;IAEnI;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,QAAQ,CAAC,SAAS;IAE1D;;OAEG;IACH,oBAAoB,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB,KAAK,MA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E/C,wCAAwC,EAAE,OAAO,CAAC,GAAG,CAAC,wCAAwC,IAAI,yBAAyB,CAAC,EAAE;IAE9H,qDAAqD;IACrD,gIAAgI;IAChI,qBAAqB,EAAE,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,SAAS;IAErE,+GAA+G;IAC/G,gIAAgI;IAChI,uCAAuC,EAAE,OAAO,CAAC,GAAG,CAAC,uCAAuC,IAAI,SAAS;IAEzG,4DAA4D;IAC5D,gIAAgI;IAChI,+BAA+B,EAAE,OAAO,CAAC,GAAG,CAAC,+BAA+B,IAAI,SAAS;IAEzF,qBAAqB,EAAE,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,SAAS;IAErE,8EAA8E;IAC9E,mCAAmC;QAC/B,OAAO,OAAO,CAAC,GAAG,CAAC,mCAAmC,IAAI,mCAA2B,CAAC,wCAAwC,EAAE,CAAC;IACrI,CAAC;CACJ,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CheLoginPage = void 0;
|
|
16
|
-
/*********************************************************************
|
|
17
|
-
* Copyright (c) 2019-2023 Red Hat, Inc.
|
|
18
|
-
*
|
|
19
|
-
* This program and the accompanying materials are made
|
|
20
|
-
* available under the terms of the Eclipse Public License 2.0
|
|
21
|
-
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
22
|
-
*
|
|
23
|
-
* SPDX-License-Identifier: EPL-2.0
|
|
24
|
-
**********************************************************************/
|
|
25
|
-
require("reflect-metadata");
|
|
26
|
-
const inversify_1 = require("inversify");
|
|
27
|
-
const DriverHelper_1 = require("../../utils/DriverHelper");
|
|
28
|
-
const inversify_types_1 = require("../../configs/inversify.types");
|
|
29
|
-
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
30
|
-
const Logger_1 = require("../../utils/Logger");
|
|
31
|
-
const TimeoutConstants_1 = require("../../constants/TimeoutConstants");
|
|
32
|
-
let CheLoginPage = class CheLoginPage {
|
|
33
|
-
constructor(driverHelper) {
|
|
34
|
-
this.driverHelper = driverHelper;
|
|
35
|
-
}
|
|
36
|
-
async waitEclipseCheLoginFormPage() {
|
|
37
|
-
Logger_1.Logger.debug('CheLoginPage.waitEclipseCheLoginFormPage');
|
|
38
|
-
await this.driverHelper.waitVisibility(selenium_webdriver_1.By.id('login'), TimeoutConstants_1.TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
|
|
39
|
-
}
|
|
40
|
-
async inputUserNameEclipseCheLoginPage(userName) {
|
|
41
|
-
Logger_1.Logger.debug(`CheLoginPage.inputUserNameEclipseCheLoginPage username: "${userName}"`);
|
|
42
|
-
await this.driverHelper.enterValue(selenium_webdriver_1.By.id('login'), userName);
|
|
43
|
-
}
|
|
44
|
-
async clickEclipseCheLoginButton() {
|
|
45
|
-
Logger_1.Logger.debug('CheLoginPage.clickEclipseCheLoginButton');
|
|
46
|
-
await this.driverHelper.waitAndClick(selenium_webdriver_1.By.id('submit-login'));
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
CheLoginPage = __decorate([
|
|
50
|
-
inversify_1.injectable(),
|
|
51
|
-
__param(0, inversify_1.inject(inversify_types_1.CLASSES.DriverHelper)),
|
|
52
|
-
__metadata("design:paramtypes", [DriverHelper_1.DriverHelper])
|
|
53
|
-
], CheLoginPage);
|
|
54
|
-
exports.CheLoginPage = CheLoginPage;
|
|
55
|
-
//# sourceMappingURL=CheLoginPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CheLoginPage.js","sourceRoot":"","sources":["../../../pageobjects/openshift/CheLoginPage.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;wEAQwE;AACxE,4BAA0B;AAC1B,yCAA+C;AAC/C,2DAAwD;AACxD,mEAAwD;AACxD,2DAAwC;AACxC,+CAA4C;AAC5C,uEAAoE;AAGpE,IAAa,YAAY,GAAzB,MAAa,YAAY;IAErB,YACmD,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAC7E,CAAC;IAED,KAAK,CAAC,2BAA2B;QAC7B,eAAM,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC;QAEzD,MAAM,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,uBAAE,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,mCAAgB,CAAC,6BAA6B,CAAC,CAAC;IAC3G,CAAC;IAED,KAAK,CAAC,gCAAgC,CAAC,QAAgB;QACnD,eAAM,CAAC,KAAK,CAAC,4DAA4D,QAAQ,GAAG,CAAC,CAAC;QAEtF,MAAM,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,uBAAE,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,0BAA0B;QAC5B,eAAM,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;QAExD,MAAM,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,u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ErD,MAAM,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,uBAAE,CAAC,EAAE,CAAC,eAAe,CAAC,EAAE,KAAK,CAAC,CAAC;IACtE,CAAC;IAED,KAAK,CAAC,kBAAkB;QACpB,eAAM,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;QAEhD,MAAM,kBAAkB,GAAO,uBAAE,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;QAC7D,MAAM,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;IAC7D,CAAC;IAED,KAAK,CAAC,0CAA0C;QAC5C,eAAM,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;QAExE,MAAM,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,uBAAE,CAAC,KAAK,CAAC,cAAY,CAAC,0BAA0B,CAAC,CAAC,CAAC;IACjG,CAAC;CACJ,CAAA;AAtE2B,uCAA0B,GAAW,oCAAoC,CAAC;AAFzF,YAAY;IADxB,sBAAU,EAAE;IAMJ,WAAA,kBAAM,CAAC,yBAAO,CAAC,YAAY,CAAC,CAAA;qCAAgC,2BAAY;GALpE,YAAY,CAwExB;AAxEY,oCAAY"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/*********************************************************************
|
|
2
|
-
* Copyright (c) 2019-2023 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 '../../configs/inversify.types';
|
|
14
|
-
import { By } from 'selenium-webdriver';
|
|
15
|
-
import { Logger } from '../../utils/Logger';
|
|
16
|
-
import { TimeoutConstants } from '../../constants/TimeoutConstants';
|
|
17
|
-
|
|
18
|
-
@injectable()
|
|
19
|
-
export class CheLoginPage {
|
|
20
|
-
|
|
21
|
-
constructor(
|
|
22
|
-
@inject(CLASSES.DriverHelper) private readonly driverHelper: DriverHelper) {
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
async waitEclipseCheLoginFormPage(): Promise<void> {
|
|
26
|
-
Logger.debug('CheLoginPage.waitEclipseCheLoginFormPage');
|
|
27
|
-
|
|
28
|
-
await this.driverHelper.waitVisibility(By.id('login'), TimeoutConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
async inputUserNameEclipseCheLoginPage(userName: string): Promise<void> {
|
|
32
|
-
Logger.debug(`CheLoginPage.inputUserNameEclipseCheLoginPage username: "${userName}"`);
|
|
33
|
-
|
|
34
|
-
await this.driverHelper.enterValue(By.id('login'), userName);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
async clickEclipseCheLoginButton(): Promise<void> {
|
|
38
|
-
Logger.debug('CheLoginPage.clickEclipseCheLoginButton');
|
|
39
|
-
|
|
40
|
-
await this.driverHelper.waitAndClick(By.id('submit-login'));
|
|
41
|
-
}
|
|
42
|
-
}
|