@eclipse-che/che-e2e 7.73.0-dev-1397a5e → 7.73.0-dev-62c0c9d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configs/inversify.config.ts +6 -6
- package/configs/inversify.types.ts +27 -27
- package/configs/mocharc.ts +21 -21
- package/constants/APITestConstants.ts +39 -38
- package/constants/BaseTestConstants.ts +44 -43
- package/constants/ChromeDriverConstants.ts +29 -29
- package/constants/FactoryTestConstants.ts +30 -30
- package/constants/MonacoConstants.ts +10 -10
- package/constants/OAuthConstants.ts +46 -46
- package/constants/ReporterConstants.ts +28 -28
- package/constants/TimeoutConstants.ts +101 -101
- package/dist/configs/inversify.config.js.map +1 -1
- package/dist/configs/inversify.types.js.map +1 -1
- package/dist/configs/mocharc.js +1 -1
- package/dist/configs/mocharc.js.map +1 -1
- package/dist/constants/APITestConstants.js +2 -2
- package/dist/constants/APITestConstants.js.map +1 -1
- package/dist/constants/BaseTestConstants.js +1 -1
- package/dist/constants/BaseTestConstants.js.map +1 -1
- package/dist/constants/ChromeDriverConstants.js +1 -1
- package/dist/constants/ChromeDriverConstants.js.map +1 -1
- package/dist/constants/FactoryTestConstants.js +1 -1
- package/dist/constants/FactoryTestConstants.js.map +1 -1
- package/dist/constants/MonacoConstants.js +1 -1
- package/dist/constants/MonacoConstants.js.map +1 -1
- package/dist/constants/OAuthConstants.js +1 -1
- package/dist/constants/OAuthConstants.js.map +1 -1
- package/dist/constants/ReporterConstants.js +1 -1
- package/dist/constants/ReporterConstants.js.map +1 -1
- package/dist/constants/TimeoutConstants.js.map +1 -1
- package/dist/driver/ChromeDriver.js.map +1 -1
- package/dist/pageobjects/dashboard/CreateWorkspace.js +8 -8
- package/dist/pageobjects/dashboard/CreateWorkspace.js.map +1 -1
- package/dist/pageobjects/dashboard/Dashboard.js +11 -11
- package/dist/pageobjects/dashboard/Dashboard.js.map +1 -1
- package/dist/pageobjects/dashboard/Workspaces.js +14 -14
- package/dist/pageobjects/dashboard/Workspaces.js.map +1 -1
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js +8 -8
- package/dist/pageobjects/dashboard/workspace-details/WorkspaceDetails.js.map +1 -1
- package/dist/pageobjects/git-providers/OauthPage.js +17 -17
- package/dist/pageobjects/git-providers/OauthPage.js.map +1 -1
- package/dist/pageobjects/ide/CheCodeLocatorLoader.js +1 -1
- package/dist/pageobjects/ide/CheCodeLocatorLoader.js.map +1 -1
- package/dist/pageobjects/login/kubernetes/DexLoginPage.js +5 -5
- package/dist/pageobjects/login/kubernetes/DexLoginPage.js.map +1 -1
- package/dist/pageobjects/login/kubernetes/KubernetesLoginPage.js +1 -1
- package/dist/pageobjects/login/kubernetes/KubernetesLoginPage.js.map +1 -1
- package/dist/pageobjects/login/openshift/OcpLoginPage.js +10 -10
- package/dist/pageobjects/login/openshift/OcpLoginPage.js.map +1 -1
- package/dist/pageobjects/login/openshift/OcpRedHatLoginPage.js +2 -2
- package/dist/pageobjects/login/openshift/OcpRedHatLoginPage.js.map +1 -1
- package/dist/pageobjects/login/openshift/OcpUserLoginPage.js +1 -1
- package/dist/pageobjects/login/openshift/OcpUserLoginPage.js.map +1 -1
- package/dist/pageobjects/login/openshift/RedHatLoginPage.js +6 -6
- package/dist/pageobjects/login/openshift/RedHatLoginPage.js.map +1 -1
- package/dist/pageobjects/login/openshift/RegularUserOcpCheLoginPage.js +2 -2
- package/dist/pageobjects/login/openshift/RegularUserOcpCheLoginPage.js.map +1 -1
- package/dist/pageobjects/openshift/OcpApplicationPage.js +2 -2
- package/dist/pageobjects/openshift/OcpApplicationPage.js.map +1 -1
- package/dist/pageobjects/openshift/OcpImportFromGitPage.js +5 -5
- package/dist/pageobjects/openshift/OcpImportFromGitPage.js.map +1 -1
- package/dist/pageobjects/openshift/OcpMainPage.js +11 -11
- package/dist/pageobjects/openshift/OcpMainPage.js.map +1 -1
- package/dist/specs/MochaHooks.js +1 -1
- package/dist/specs/MochaHooks.js.map +1 -1
- package/dist/specs/SmokeTest.spec.js +7 -3
- package/dist/specs/SmokeTest.spec.js.map +1 -1
- package/dist/specs/api/ContainerOverridesAPI.spec.js.map +1 -1
- package/dist/specs/api/DevfileAcceptanceTestAPI.spec.js +7 -5
- package/dist/specs/api/DevfileAcceptanceTestAPI.spec.js.map +1 -1
- package/dist/specs/api/EmptyWorkspaceAPI.spec.js +1 -1
- package/dist/specs/api/EmptyWorkspaceAPI.spec.js.map +1 -1
- package/dist/specs/api/PodOverridesAPI.spec.js.map +1 -1
- package/dist/specs/dashboard-samples/EmptyWorkspace.spec.js +9 -5
- package/dist/specs/dashboard-samples/EmptyWorkspace.spec.js.map +1 -1
- package/dist/specs/dashboard-samples/Quarkus.spec.js +7 -3
- package/dist/specs/dashboard-samples/Quarkus.spec.js.map +1 -1
- package/dist/specs/dashboard-samples/RecommendedExtensions.spec.js +6 -2
- package/dist/specs/dashboard-samples/RecommendedExtensions.spec.js.map +1 -1
- package/dist/specs/devconsole-intergration/DevConsoleIntegration.spec.js +3 -1
- package/dist/specs/devconsole-intergration/DevConsoleIntegration.spec.js.map +1 -1
- package/dist/specs/factory/Factory.spec.js +3 -1
- package/dist/specs/factory/Factory.spec.js.map +1 -1
- package/dist/specs/factory/NoSetupRepoFactory.spec.js +4 -2
- package/dist/specs/factory/NoSetupRepoFactory.spec.js.map +1 -1
- package/dist/specs/factory/RefusedOAuthFactory.spec.js +4 -2
- package/dist/specs/factory/RefusedOAuthFactory.spec.js.map +1 -1
- package/dist/specs/miscellaneous/PredefinedNamespace.spec.js +6 -2
- package/dist/specs/miscellaneous/PredefinedNamespace.spec.js.map +1 -1
- package/dist/tests-library/LoginTests.js.map +1 -1
- package/dist/tests-library/ProjectAndFileTests.js +3 -3
- package/dist/tests-library/ProjectAndFileTests.js.map +1 -1
- package/dist/tests-library/WorkspaceHandlingTests.js +54 -74
- package/dist/tests-library/WorkspaceHandlingTests.js.map +1 -1
- package/dist/utils/BrowserTabsUtil.js +10 -10
- package/dist/utils/BrowserTabsUtil.js.map +1 -1
- package/dist/utils/CheReporter.js.map +1 -1
- package/dist/utils/DevWorkspaceConfigurationHelper.js +2 -2
- package/dist/utils/DevWorkspaceConfigurationHelper.js.map +1 -1
- package/dist/utils/DevfilesRegistryHelper.js +7 -7
- package/dist/utils/DevfilesRegistryHelper.js.map +1 -1
- package/dist/utils/DriverHelper.js +81 -81
- package/dist/utils/DriverHelper.js.map +1 -1
- package/dist/utils/KubernetesCommandLineToolsExecutor.js +38 -35
- package/dist/utils/KubernetesCommandLineToolsExecutor.js.map +1 -1
- package/dist/utils/Logger.js +19 -10
- package/dist/utils/Logger.js.map +1 -1
- package/dist/utils/ScreenCatcher.js.map +1 -1
- package/dist/utils/ShellExecutor.js.map +1 -1
- package/dist/utils/StringUtil.js +2 -2
- package/dist/utils/StringUtil.js.map +1 -1
- package/dist/utils/request-handlers/CheApiRequestHandler.js +13 -11
- package/dist/utils/request-handlers/CheApiRequestHandler.js.map +1 -1
- package/dist/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.js +1 -1
- package/dist/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.js.map +1 -1
- package/dist/utils/workspace/ApiUrlResolver.js +3 -3
- package/dist/utils/workspace/ApiUrlResolver.js.map +1 -1
- package/dist/utils/workspace/TestWorkspaceUtil.js +20 -16
- package/dist/utils/workspace/TestWorkspaceUtil.js.map +1 -1
- package/dist/utils/workspace/WorkspaceStatus.js.map +1 -1
- package/driver/ChromeDriver.ts +44 -44
- package/driver/IDriver.ts +1 -1
- package/package.json +1 -1
- package/pageobjects/dashboard/CreateWorkspace.ts +52 -52
- package/pageobjects/dashboard/Dashboard.ts +72 -72
- package/pageobjects/dashboard/Workspaces.ts +138 -139
- package/pageobjects/dashboard/workspace-details/WorkspaceDetails.ts +92 -93
- package/pageobjects/git-providers/OauthPage.ts +136 -136
- package/pageobjects/ide/CheCodeLocatorLoader.ts +40 -40
- package/pageobjects/login/interfaces/ICheLoginPage.ts +1 -1
- package/pageobjects/login/interfaces/IOcpLoginPage.ts +1 -1
- package/pageobjects/login/kubernetes/DexLoginPage.ts +27 -27
- package/pageobjects/login/kubernetes/KubernetesLoginPage.ts +11 -11
- package/pageobjects/login/openshift/OcpLoginPage.ts +50 -50
- package/pageobjects/login/openshift/OcpRedHatLoginPage.ts +21 -21
- package/pageobjects/login/openshift/OcpUserLoginPage.ts +14 -14
- package/pageobjects/login/openshift/RedHatLoginPage.ts +44 -41
- package/pageobjects/login/openshift/RegularUserOcpCheLoginPage.ts +23 -23
- package/pageobjects/openshift/OcpApplicationPage.ts +16 -16
- package/pageobjects/openshift/OcpImportFromGitPage.ts +54 -54
- package/pageobjects/openshift/OcpMainPage.ts +64 -64
- package/specs/MochaHooks.ts +44 -44
- package/specs/SmokeTest.spec.ts +35 -31
- package/specs/api/ContainerOverridesAPI.spec.ts +23 -23
- package/specs/api/DevfileAcceptanceTestAPI.spec.ts +93 -91
- package/specs/api/EmptyWorkspaceAPI.spec.ts +50 -50
- package/specs/api/PodOverridesAPI.spec.ts +29 -29
- package/specs/dashboard-samples/EmptyWorkspace.spec.ts +29 -25
- package/specs/dashboard-samples/Quarkus.spec.ts +31 -27
- package/specs/dashboard-samples/RecommendedExtensions.spec.ts +156 -152
- package/specs/devconsole-intergration/DevConsoleIntegration.spec.ts +62 -64
- package/specs/factory/Factory.spec.ts +149 -147
- package/specs/factory/NoSetupRepoFactory.spec.ts +188 -186
- package/specs/factory/RefusedOAuthFactory.spec.ts +182 -180
- package/specs/miscellaneous/PredefinedNamespace.spec.ts +52 -48
- package/tests-library/LoginTests.ts +29 -29
- package/tests-library/ProjectAndFileTests.ts +13 -13
- package/tests-library/WorkspaceHandlingTests.ts +84 -103
- package/utils/BrowserTabsUtil.ts +69 -69
- package/utils/CheReporter.ts +4 -6
- package/utils/DevWorkspaceConfigurationHelper.ts +58 -58
- package/utils/DevfilesRegistryHelper.ts +51 -51
- package/utils/DriverHelper.ts +599 -600
- package/utils/KubernetesCommandLineToolsExecutor.ts +166 -158
- package/utils/Logger.ts +98 -67
- package/utils/ScreenCatcher.ts +42 -42
- package/utils/ShellExecutor.ts +10 -10
- package/utils/StringUtil.ts +29 -29
- package/utils/request-handlers/CheApiRequestHandler.ts +84 -82
- package/utils/request-handlers/headers/CheMultiuserAuthorizationHeaderHandler.ts +18 -18
- package/utils/request-handlers/headers/IAuthorizationHeaderHandler.ts +1 -1
- package/utils/workspace/ApiUrlResolver.ts +23 -23
- package/utils/workspace/ITestWorkspaceUtil.ts +29 -29
- package/utils/workspace/TestWorkspaceUtil.ts +120 -116
- package/utils/workspace/WorkspaceStatus.ts +3 -3
|
@@ -7,68 +7,68 @@ import { DevfileContext } from '@eclipse-che/che-devworkspace-generator/lib/api/
|
|
|
7
7
|
import { APITestConstants } from '../../constants/APITestConstants';
|
|
8
8
|
import { BaseTestConstants } from '../../constants/BaseTestConstants';
|
|
9
9
|
|
|
10
|
-
suite(`Empty workspace API test`, async function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
suite(`Empty workspace API test`, async function(): Promise<void> {
|
|
11
|
+
// works only for root user
|
|
12
|
+
const namespace: string = APITestConstants.TS_API_TEST_NAMESPACE;
|
|
13
|
+
let clonedProjectName: string;
|
|
14
|
+
let containerWorkDir: string;
|
|
15
|
+
let devWorkspaceConfigurationHelper: DevWorkspaceConfigurationHelper;
|
|
16
|
+
let kubernetesCommandLineToolsExecutor: KubernetesCommandLineToolsExecutor;
|
|
17
|
+
let devfileContext: DevfileContext;
|
|
18
|
+
let devWorkspaceName: string | undefined;
|
|
19
|
+
let containerTerminal: KubernetesCommandLineToolsExecutor.ContainerTerminal;
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
const gitRepository: string = 'https://github.com/crw-qe/web-nodejs-sample';
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
suiteSetup('Create empty workspace with OC client', async function(): Promise<void> {
|
|
24
|
+
const workspaceName: string = 'empty-' + Math.floor(Math.random() * 1000);
|
|
25
|
+
const devfileContent: string =
|
|
26
|
+
'schemaVersion: 2.2.0\n' +
|
|
27
|
+
'metadata:\n' +
|
|
28
|
+
` name: ${workspaceName}\n`;
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
});
|
|
33
|
-
devfileContext = await devWorkspaceConfigurationHelper.generateDevfileContext();
|
|
34
|
-
devWorkspaceName = devfileContext?.devWorkspace?.metadata?.name;
|
|
35
|
-
kubernetesCommandLineToolsExecutor = new KubernetesCommandLineToolsExecutor(devWorkspaceName, namespace);
|
|
36
|
-
containerTerminal = new KubernetesCommandLineToolsExecutor.ContainerTerminal(kubernetesCommandLineToolsExecutor);
|
|
30
|
+
devWorkspaceConfigurationHelper = new DevWorkspaceConfigurationHelper({
|
|
31
|
+
devfileContent
|
|
37
32
|
});
|
|
33
|
+
devfileContext = await devWorkspaceConfigurationHelper.generateDevfileContext();
|
|
34
|
+
devWorkspaceName = devfileContext?.devWorkspace?.metadata?.name;
|
|
35
|
+
kubernetesCommandLineToolsExecutor = new KubernetesCommandLineToolsExecutor(devWorkspaceName, namespace);
|
|
36
|
+
containerTerminal = new KubernetesCommandLineToolsExecutor.ContainerTerminal(kubernetesCommandLineToolsExecutor);
|
|
37
|
+
});
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
suite('Clone public repo without previous setup', function (): void {
|
|
39
|
+
test('Create empty workspace', async function(): Promise<void> {
|
|
40
|
+
kubernetesCommandLineToolsExecutor.loginToOcp();
|
|
41
|
+
const devWorkspaceConfigurationYamlString: string = await devWorkspaceConfigurationHelper.getDevWorkspaceConfigurationYamlAsString(devfileContext);
|
|
42
|
+
const output: ShellString = kubernetesCommandLineToolsExecutor.applyAndWaitDevWorkspace(devWorkspaceConfigurationYamlString);
|
|
43
|
+
expect(output.stdout).contains('condition met');
|
|
44
|
+
});
|
|
47
45
|
|
|
48
|
-
|
|
49
|
-
containerWorkDir = containerTerminal.pwd().stdout.replace('\n', '');
|
|
50
|
-
const cloneOutput: ShellString = containerTerminal.gitClone(gitRepository);
|
|
51
|
-
expect(cloneOutput.stdout + cloneOutput.stderr).includes('Cloning');
|
|
52
|
-
});
|
|
46
|
+
suite('Clone public repo without previous setup', function(): void {
|
|
53
47
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
test('Check if public repo can be cloned', function(): void {
|
|
49
|
+
containerWorkDir = containerTerminal.pwd().stdout.replace('\n', '');
|
|
50
|
+
const cloneOutput: ShellString = containerTerminal.gitClone(gitRepository);
|
|
51
|
+
expect(cloneOutput.stdout + cloneOutput.stderr).includes('Cloning');
|
|
52
|
+
});
|
|
58
53
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
54
|
+
test('Check if project was created', function(): void {
|
|
55
|
+
clonedProjectName = StringUtil.getProjectNameFromGitUrl(gitRepository);
|
|
56
|
+
expect(containerTerminal.ls().stdout).includes(clonedProjectName);
|
|
57
|
+
});
|
|
63
58
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
test('Check if project files are imported', function(): void {
|
|
60
|
+
expect(containerTerminal.ls(`${containerWorkDir}/${clonedProjectName}`).stdout)
|
|
61
|
+
.includes(BaseTestConstants.TS_SELENIUM_PROJECT_ROOT_FILE_NAME);
|
|
67
62
|
});
|
|
68
63
|
|
|
69
|
-
suiteTeardown('Delete
|
|
70
|
-
|
|
64
|
+
suiteTeardown('Delete cloned project', function(): void {
|
|
65
|
+
containerTerminal.removeFolder(`${clonedProjectName}`);
|
|
71
66
|
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
suiteTeardown('Delete workspace', function(): void {
|
|
70
|
+
kubernetesCommandLineToolsExecutor.deleteDevWorkspace();
|
|
71
|
+
});
|
|
72
72
|
});
|
|
73
73
|
|
|
74
74
|
|
|
@@ -5,40 +5,40 @@ import YAML from 'yaml';
|
|
|
5
5
|
import { expect } from 'chai';
|
|
6
6
|
import { ShellExecutor } from '../../utils/ShellExecutor';
|
|
7
7
|
|
|
8
|
-
suite(`Test defining pod overrides via attribute.`, async function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
suite(`Test defining pod overrides via attribute.`, async function(): Promise<void> {
|
|
9
|
+
const pathToSampleFile: string = path.resolve('resources/pod-overrides.yaml');
|
|
10
|
+
const workspaceName: string = YAML.parse(fs.readFileSync(pathToSampleFile, 'utf8')).metadata.name;
|
|
11
|
+
const kubernetesCommandLineToolsExecutor: KubernetesCommandLineToolsExecutor = new KubernetesCommandLineToolsExecutor(workspaceName);
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
suiteSetup('Login into OC client', function(): void {
|
|
14
|
+
kubernetesCommandLineToolsExecutor.loginToOcp();
|
|
15
|
+
});
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
suiteTeardown('Delete DevWorkspace', function(): void {
|
|
18
|
+
kubernetesCommandLineToolsExecutor.deleteDevWorkspace();
|
|
19
|
+
});
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
test('Apply pod-overrides sample as DevWorkspace with OC client', function(): void {
|
|
22
|
+
kubernetesCommandLineToolsExecutor.applyYamlConfigurationAsFile(pathToSampleFile);
|
|
23
|
+
ShellExecutor.wait(5);
|
|
24
|
+
});
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
});
|
|
26
|
+
test('Check that fields are overridden in the Deployment for DevWorkspace', function(): void {
|
|
27
|
+
const devWorkspaceFullYamlOutput: any = YAML.parse(kubernetesCommandLineToolsExecutor.getDevWorkspaceYamlConfiguration());
|
|
28
|
+
expect(devWorkspaceFullYamlOutput.spec.template.attributes['pod-overrides']).eqls({
|
|
29
|
+
metadata: {
|
|
30
|
+
annotations: {
|
|
31
|
+
'io.kubernetes.cri-o.userns-mode': 'auto:size=65536;map-to-root=true',
|
|
32
|
+
'io.openshift.userns': 'true',
|
|
33
|
+
'openshift.io/scc': 'container-build'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
spec: {
|
|
37
|
+
runtimeClassName: 'kata',
|
|
38
|
+
schedulerName: 'stork'
|
|
39
|
+
}
|
|
41
40
|
});
|
|
41
|
+
});
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
|
|
@@ -24,38 +24,42 @@ const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUti
|
|
|
24
24
|
|
|
25
25
|
const stackName: string = 'Empty Workspace';
|
|
26
26
|
|
|
27
|
-
suite(`${stackName} test`, async ()
|
|
28
|
-
|
|
27
|
+
suite(`${stackName} test`, async function(): Promise<void> {
|
|
28
|
+
loginTests.loginIntoChe();
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
test(`Create and open new workspace, stack:${stackName}`, async function(): Promise<void> {
|
|
31
|
+
await workspaceHandlingTests.createAndOpenWorkspace(stackName);
|
|
32
|
+
});
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
test('Obtain workspace name from workspace loader page', async function(): Promise<void> {
|
|
35
|
+
await workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
36
|
+
});
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
test('Register running workspace', async function(): Promise<void> {
|
|
39
|
+
registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
40
|
+
});
|
|
37
41
|
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
test('Wait workspace readiness', async function(): Promise<void> {
|
|
43
|
+
await projectAndFileTests.waitWorkspaceReadinessForCheCodeEditor();
|
|
40
44
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
const workbench: Workbench = new Workbench();
|
|
46
|
+
const activityBar: ActivityBar = workbench.getActivityBar();
|
|
47
|
+
const activityBarControls: ViewControl[] = await activityBar.getViewControls();
|
|
44
48
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
Logger.debug(`Editor sections:`);
|
|
50
|
+
for (const control of activityBarControls) {
|
|
51
|
+
Logger.debug(`${await control.getTitle()}`);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
50
54
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
test('Stop the workspace', async function(): Promise<void> {
|
|
56
|
+
await workspaceHandlingTests.stopWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
57
|
+
await browserTabsUtil.closeAllTabsExceptCurrent();
|
|
58
|
+
});
|
|
55
59
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
test('Delete the workspace', async function(): Promise<void> {
|
|
61
|
+
await workspaceHandlingTests.removeWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
62
|
+
});
|
|
59
63
|
|
|
60
|
-
|
|
64
|
+
loginTests.logoutFromChe();
|
|
61
65
|
});
|
|
@@ -27,40 +27,44 @@ const browserTabsUtil: BrowserTabsUtil = e2eContainer.get(CLASSES.BrowserTabsUti
|
|
|
27
27
|
const stackName: string = 'Java 11 with Quarkus';
|
|
28
28
|
const projectName: string = 'quarkus-quickstarts';
|
|
29
29
|
|
|
30
|
-
suite(`The ${stackName} userstory`, async function
|
|
31
|
-
|
|
30
|
+
suite(`The ${stackName} userstory`, async function(): Promise<void> {
|
|
31
|
+
let projectSection: ViewSection;
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
loginTests.loginIntoChe();
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
test(`Create and open new workspace, stack:${stackName}`, async function(): Promise<void> {
|
|
36
|
+
await workspaceHandlingTests.createAndOpenWorkspace(stackName);
|
|
37
|
+
});
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
test('Obtain workspace name from workspace loader page', async function(): Promise<void> {
|
|
40
|
+
await workspaceHandlingTests.obtainWorkspaceNameFromStartingPage();
|
|
41
|
+
});
|
|
38
42
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
test('Register running workspace', async function(): Promise<void> {
|
|
44
|
+
registerRunningWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
45
|
+
});
|
|
42
46
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
test('Wait workspace readiness', async function(): Promise<void> {
|
|
48
|
+
await projectAndFileTests.waitWorkspaceReadinessForCheCodeEditor();
|
|
49
|
+
});
|
|
46
50
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
test('Check a project folder has been created', async function(): Promise<void> {
|
|
52
|
+
projectSection = await new SideBarView().getContent().getSection(projectName);
|
|
53
|
+
Logger.debug(`new SideBarView().getContent().getSection: get ${projectName}`);
|
|
54
|
+
});
|
|
51
55
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
test('Check the project files was imported', async function(): Promise<void> {
|
|
57
|
+
await projectSection.findItem(BaseTestConstants.TS_SELENIUM_PROJECT_ROOT_FILE_NAME);
|
|
58
|
+
Logger.debug(`projectSection.findItem: find ${BaseTestConstants.TS_SELENIUM_PROJECT_ROOT_FILE_NAME}`);
|
|
59
|
+
});
|
|
56
60
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
test('Stop the workspace', async function(): Promise<void> {
|
|
62
|
+
await workspaceHandlingTests.stopWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
63
|
+
await browserTabsUtil.closeAllTabsExceptCurrent();
|
|
64
|
+
});
|
|
61
65
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
test('Delete the workspace', async function(): Promise<void> {
|
|
67
|
+
await workspaceHandlingTests.removeWorkspace(WorkspaceHandlingTests.getWorkspaceName());
|
|
68
|
+
});
|
|
69
|
+
loginTests.logoutFromChe();
|
|
66
70
|
});
|