@eclipse-che/che-e2e 7.58.1-dev-7636b8b → 7.58.1-dev-ffb0b4b

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.
Files changed (93) hide show
  1. package/TestConstants.ts +6 -1
  2. package/build/dockerfiles/Dockerfile +4 -3
  3. package/dist/TestConstants.js +5 -1
  4. package/dist/TestConstants.js.map +1 -1
  5. package/dist/driver/CheReporter.js +6 -26
  6. package/dist/driver/CheReporter.js.map +1 -1
  7. package/dist/index.js +1 -0
  8. package/dist/index.js.map +1 -1
  9. package/dist/inversify.config.js +2 -0
  10. package/dist/inversify.config.js.map +1 -1
  11. package/dist/inversify.types.js +1 -0
  12. package/dist/inversify.types.js.map +1 -1
  13. package/dist/pageobjects/dashboard/Workspaces.js +10 -2
  14. package/dist/pageobjects/dashboard/Workspaces.js.map +1 -1
  15. package/dist/pageobjects/ide/theia/Ide.js +1 -1
  16. package/dist/pageobjects/ide/theia/Ide.js.map +1 -1
  17. package/dist/tests/MochaHooks.js +65 -0
  18. package/dist/tests/MochaHooks.js.map +1 -0
  19. package/dist/tests/devfiles/che-code/EmptyWorkspace.spec.js +11 -24
  20. package/dist/tests/devfiles/che-code/EmptyWorkspace.spec.js.map +1 -1
  21. package/dist/tests/devfiles/theia/DotNetCore.spec.js.map +1 -1
  22. package/dist/tests/e2e/theia/FactoryUrl.spec.js.map +1 -1
  23. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.js.map +1 -1
  24. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.js.map +1 -1
  25. package/dist/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.js.map +1 -1
  26. package/dist/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.js.map +1 -1
  27. package/dist/testsLibrary/che-code/ProjectAndFileTestsCheCode.js +54 -0
  28. package/dist/testsLibrary/che-code/ProjectAndFileTestsCheCode.js.map +1 -0
  29. package/dist/testsLibrary/theia/LanguageServerTestsTheia.js.map +1 -1
  30. package/dist/testsLibrary/theia/ProjectAndFileTestsTheia.js.map +1 -1
  31. package/dist/utils/VCS/github/GitHubUtil.js +2 -2
  32. package/dist/utils/VCS/github/GitHubUtil.js.map +1 -1
  33. package/driver/CheReporter.ts +4 -25
  34. package/index.ts +1 -0
  35. package/inversify.config.ts +2 -0
  36. package/inversify.types.ts +1 -0
  37. package/mocha-all-devfiles-che-code.json +12 -0
  38. package/mocha-all-devfiles-theia.json +13 -10
  39. package/mocha-all-factories-che-code.json +14 -0
  40. package/mocha-all-factories-theia.json +14 -11
  41. package/mocha-all-plugins-che-code.json +13 -0
  42. package/mocha-all-plugins-theia.json +13 -10
  43. package/mocha-che-code.json +12 -0
  44. package/mocha-connector-theia.json +10 -7
  45. package/mocha-devworkspace-happy-path-che-code.json +13 -0
  46. package/mocha-devworkspace-happy-path-theia.json +12 -9
  47. package/mocha-factory-che-code.json +13 -0
  48. package/mocha-factory-theia.json +12 -9
  49. package/mocha-git-publish-branch-theia.json +12 -9
  50. package/mocha-git-self-sign-cert-theia.json +12 -9
  51. package/mocha-git-ssh-theia.json +12 -9
  52. package/mocha-happy-path-che-code.json +14 -0
  53. package/mocha-happy-path-theia.json +13 -10
  54. package/mocha-java-maven.json +11 -7
  55. package/mocha-java-springboot-che-code.json +12 -0
  56. package/mocha-java-springboot-theia.json +11 -7
  57. package/mocha-java-vertx-che-code.json +12 -0
  58. package/mocha-java-vertx-theia.json +11 -7
  59. package/mocha-load-theia.json +10 -7
  60. package/mocha-scala.json +11 -7
  61. package/mocha-single-devfile.json +9 -6
  62. package/mocha-theia.json +10 -6
  63. package/mocha-ws-creation-and-ls-theia.json +10 -7
  64. package/mocha.intelij.json +11 -7
  65. package/mocha.ocp.link.json +9 -6
  66. package/mocha.single.plugin.json +6 -5
  67. package/package.json +13 -13
  68. package/pageobjects/dashboard/Workspaces.ts +10 -4
  69. package/pageobjects/ide/theia/Ide.ts +1 -1
  70. package/pageobjects/ide/theia/OpenEditors.ts +1 -1
  71. package/tests/MochaHooks.ts +47 -0
  72. package/tests/devfiles/che-code/EmptyWorkspace.spec.ts +14 -24
  73. package/tests/devfiles/theia/DotNetCore.spec.ts +1 -1
  74. package/tests/e2e/theia/FactoryUrl.spec.ts +1 -1
  75. package/tests/e2e/theia/factories/DirectUrlFactoryWithKeepDirectoryTest.spec.ts +1 -1
  76. package/tests/e2e/theia/factories/DirectUrlFactoryWithRootFolderTest.spec.ts +1 -1
  77. package/tests/e2e/theia/factories/DirectUrlFactoryWithSpecificBranchTest.spec.ts +1 -1
  78. package/tests/e2e_happy_path/theia/DevWorkspaceHappyPath.spec.ts +1 -1
  79. package/testsLibrary/che-code/ProjectAndFileTestsCheCode.ts +34 -0
  80. package/testsLibrary/theia/LanguageServerTestsTheia.ts +2 -2
  81. package/testsLibrary/theia/ProjectAndFileTestsTheia.ts +2 -2
  82. package/tslint.json +15 -12
  83. package/utils/VCS/github/GitHubUtil.ts +2 -2
  84. package/utils/workspace/ApiUrlResolver.ts +1 -1
  85. package/utils/workspace/ITestWorkspaceUtil.ts +12 -12
  86. package/mocha-all-factories-code.json +0 -11
  87. package/mocha-all-plugins-code.json +0 -10
  88. package/mocha-code.json +0 -8
  89. package/mocha-devworkspace-happy-path-code.json +0 -10
  90. package/mocha-factory-code.json +0 -10
  91. package/mocha-happy-path-code.json +0 -11
  92. package/mocha-java-springboot-code.json +0 -9
  93. package/mocha-java-vertx-code.json +0 -9
@@ -97,7 +97,7 @@ export class LanguageServerTestsTheia {
97
97
  });
98
98
  }
99
99
 
100
- public goToDefinition(openedFile: string, line: number, char: number, codeNavigationClassName: string, timeout : number = TimeoutConstants.TS_EDITOR_TAB_INTERACTION_TIMEOUT) {
100
+ public goToDefinition(openedFile: string, line: number, char: number, codeNavigationClassName: string, timeout: number = TimeoutConstants.TS_EDITOR_TAB_INTERACTION_TIMEOUT) {
101
101
  test('Go to Definition', async () => {
102
102
  try {
103
103
  await this.editor.moveCursorToLineAndChar(openedFile, line, char);
@@ -123,7 +123,7 @@ export class LanguageServerTestsTheia {
123
123
  });
124
124
  }
125
125
 
126
- public goToImplementations(openedFile: string, line: number, char: number, codeNavigationClassName: string, timeout : number = TimeoutConstants.TS_EDITOR_TAB_INTERACTION_TIMEOUT) {
126
+ public goToImplementations(openedFile: string, line: number, char: number, codeNavigationClassName: string, timeout: number = TimeoutConstants.TS_EDITOR_TAB_INTERACTION_TIMEOUT) {
127
127
  test('Go to Implementations', async () => {
128
128
  try {
129
129
  await this.editor.moveCursorToLineAndChar(openedFile, line, char);
@@ -55,7 +55,7 @@ export class ProjectAndFileTestsTheia {
55
55
  });
56
56
  }
57
57
 
58
- public waitWorkspaceReadiness(sampleName : string, folder: string, checkNotification: boolean = true, restartWorkspaceDialogIsExpected: boolean = false) {
58
+ public waitWorkspaceReadiness(sampleName: string, folder: string, checkNotification: boolean = true, restartWorkspaceDialogIsExpected: boolean = false) {
59
59
  test('Wait for workspace readiness', async () => {
60
60
  await this.ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
61
61
 
@@ -72,7 +72,7 @@ export class ProjectAndFileTestsTheia {
72
72
  });
73
73
  }
74
74
 
75
- public waitWorkspaceReadinessNoSubfolder(sampleName : string, checkNotification: boolean = true) {
75
+ public waitWorkspaceReadinessNoSubfolder(sampleName: string, checkNotification: boolean = true) {
76
76
  test('Wait for workspace readiness', async () => {
77
77
  await this.ide.waitIde(TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
78
78
  if (checkNotification) {
package/tslint.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "forin": true,
27
27
  "indent": [
28
28
  true,
29
- "spaces"
29
+ "spaces"
30
30
  ],
31
31
  "interface-name": true,
32
32
  "jsdoc-format": true,
@@ -59,15 +59,18 @@
59
59
  "no-eval": true,
60
60
  "no-string-literal": true,
61
61
  "no-switch-case-fall-through": true,
62
- "trailing-comma": [true, {
63
- "singleline": "never",
64
- "multiline": {
65
- "objects": "ignore",
66
- "arrays": "always",
67
- "functions": "never",
68
- "typeLiterals": "ignore"
62
+ "trailing-comma": [
63
+ true,
64
+ {
65
+ "singleline": "never",
66
+ "multiline": {
67
+ "objects": "ignore",
68
+ "arrays": "always",
69
+ "functions": "never",
70
+ "typeLiterals": "ignore"
71
+ }
69
72
  }
70
- }],
73
+ ],
71
74
  "no-trailing-whitespace": true,
72
75
  "no-unused-expression": true,
73
76
  "no-unused-variable": true,
@@ -92,11 +95,11 @@
92
95
  ],
93
96
  "typedef": [
94
97
  true,
95
- "call-signature",
96
- "member-variable-declaration",
98
+ // "call-signature",
99
+ // "member-variable-declaration",
97
100
  "parameter",
98
101
  "property-declaration",
99
- "variable-declaration"
102
+ // "variable-declaration"
100
103
  ],
101
104
  "typedef-whitespace": [
102
105
  true,
@@ -82,7 +82,7 @@ export class GitHubUtil {
82
82
  const arrayOfPublicKeys = JSON.parse(stringified);
83
83
  for (let entry of arrayOfPublicKeys) {
84
84
  if (entry.title === keyName) {
85
- this.removePublicSshKey(authToken, entry.id);
85
+ await this.removePublicSshKey(authToken, entry.id);
86
86
  break;
87
87
  }
88
88
  }
@@ -97,7 +97,7 @@ export class GitHubUtil {
97
97
  try {
98
98
  const idList: string[] = await this.getPublicSshKeys(authToken);
99
99
  for (let id of idList) {
100
- this.removePublicSshKey(authToken, id);
100
+ await this.removePublicSshKey(authToken, id);
101
101
  }
102
102
 
103
103
  } catch (error) {
@@ -34,7 +34,7 @@ export class ApiUrlResolver {
34
34
  return ApiUrlResolver.KUBERNETES_API_URL;
35
35
  }
36
36
 
37
- private async obtainUserNamespace() : Promise<string> {
37
+ private async obtainUserNamespace(): Promise<string> {
38
38
  Logger.debug(`ApiUrlResolver.obtainUserNamespace ${this.userNamespace}`);
39
39
  if (this.userNamespace.length === 0) {
40
40
  Logger.trace(`ApiUrlResolver.obtainUserNamespace USER_NAMESPACE.length = 0, calling kubernetes API`);
@@ -12,35 +12,35 @@ import { WorkspaceStatus } from './WorkspaceStatus';
12
12
  import { che } from '@eclipse-che/api';
13
13
 
14
14
  export interface ITestWorkspaceUtil {
15
- waitWorkspaceStatus(namespace: string, workspaceName: string, expectedWorkspaceStatus: WorkspaceStatus) : void;
15
+ waitWorkspaceStatus(namespace: string, workspaceName: string, expectedWorkspaceStatus: WorkspaceStatus): void;
16
16
 
17
- stopWorkspaceByName(workspaceName: string) : void;
17
+ stopWorkspaceByName(workspaceName: string): void;
18
18
 
19
19
  /**
20
20
  * Delete a worksapce without stopping phase (similar with force deleting)
21
21
  */
22
- deleteWorkspaceByName(workspaceName: string) : void;
22
+ deleteWorkspaceByName(workspaceName: string): void;
23
23
 
24
24
  /**
25
25
  * Stop workspace before deleting with checking stopping phase
26
26
  */
27
- stopAndDeleteWorkspaceByName(workspaceName: string) : void;
27
+ stopAndDeleteWorkspaceByName(workspaceName: string): void;
28
28
 
29
29
  /**
30
30
  * Stop all run workspaces in the namespace
31
31
  */
32
- stopAllRunningWorkspaces(namespace: string) : void;
32
+ stopAllRunningWorkspaces(namespace: string): void;
33
33
 
34
34
  /**
35
35
  * Stop all run workspaces, check statused and remove the workspaces
36
36
  */
37
- stopAndDeleteAllRunningWorkspaces(namespace: string) : void;
37
+ stopAndDeleteAllRunningWorkspaces(namespace: string): void;
38
38
 
39
39
  /**
40
40
  * Stop all run workspaces without stopping and waiting for of 'Stopped' phase
41
41
  * Similar with 'force' deleting
42
42
  */
43
- deleteAllWorkspaces(namespace: string) : void;
43
+ deleteAllWorkspaces(namespace: string): void;
44
44
 
45
45
  /*=====================
46
46
  * DEPRECATED METHODS *
@@ -49,27 +49,27 @@ export interface ITestWorkspaceUtil {
49
49
  /**
50
50
  * @deprecated Method deprecated. Works with CHE server only
51
51
  */
52
- cleanUpAllWorkspaces() : void;
52
+ cleanUpAllWorkspaces(): void;
53
53
 
54
54
  /**
55
55
  * @deprecated Method deprecated. Works with CHE server only
56
56
  */
57
- cleanUpRunningWorkspace(workspaceName: string) : void;
57
+ cleanUpRunningWorkspace(workspaceName: string): void;
58
58
 
59
59
  /**
60
60
  * @deprecated Method deprecated. Works with CHE server only
61
61
  */
62
- waitPluginAdding(namespace: string, workspaceName: string, pluginId: string) : void;
62
+ waitPluginAdding(namespace: string, workspaceName: string, pluginId: string): void;
63
63
 
64
64
  /**
65
65
  * @deprecated Method deprecated. Works with CHE server only
66
66
  */
67
- removeWorkspaceById(id: string) : void;
67
+ removeWorkspaceById(id: string): void;
68
68
 
69
69
  /**
70
70
  * @deprecated Method deprecated. Works with CHE server only
71
71
  */
72
- stopWorkspaceById(id: string) : void;
72
+ stopWorkspaceById(id: string): void;
73
73
 
74
74
  /**
75
75
  * @deprecated Method deprecated. Works with CHE server only
@@ -1,11 +0,0 @@
1
- {
2
- "timeout": "2200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "bail": true,
6
- "full-trace": true,
7
- "require": "source-map-support/register",
8
- "spec": [
9
- "dist/tests/login/Login.spec.js"
10
- ]
11
- }
@@ -1,10 +0,0 @@
1
- {
2
- "timeout": "2200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "full-trace": true,
6
- "require": "source-map-support/register",
7
- "spec": [
8
- "dist/tests/login/Login.spec.js"
9
- ]
10
- }
package/mocha-code.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "timeout": "1200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "bail": true,
6
- "full-trace": true,
7
- "spec": ["dist/tests/login/Login.spec.js", "dist/tests/e2e/code/*.spec.js"]
8
- }
@@ -1,10 +0,0 @@
1
- {
2
- "timeout": "2200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "full-trace": true,
6
- "require": "source-map-support/register",
7
- "spec": [
8
- "dist/tests/login/Login.spec.js"
9
- ]
10
- }
@@ -1,10 +0,0 @@
1
- {
2
- "timeout": "2200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "full-trace": true,
6
- "require": "source-map-support/register",
7
- "spec": [
8
- "dist/tests/login/Login.spec.js"
9
- ]
10
- }
@@ -1,11 +0,0 @@
1
- {
2
- "timeout": "2200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "bail": true,
6
- "full-trace": true,
7
- "require": "source-map-support/register",
8
- "spec": [
9
- "dist/tests/login/Login.spec.js"
10
- ]
11
- }
@@ -1,9 +0,0 @@
1
- {
2
- "timeout": "1200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "bail": true,
6
- "full-trace": true,
7
- "support": "source-map-support/register",
8
- "spec": ["dist/tests/login/Login.spec.js"]
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "timeout": "1200000",
3
- "reporter": "dist/driver/CheReporter.js",
4
- "ui": "tdd",
5
- "bail": true,
6
- "full-trace": true,
7
- "support": "source-map-support/register",
8
- "spec": ["dist/tests/login/Login.spec.js"]
9
- }