Skip to content

Commit 2113c0d

Browse files
mdolhalonallikaea
mdolhalo
authored andcommitted
fix: timeouts of waiting on extensions complete installation RecommendedExtensions test
Signed-off-by: mdolhalo <[email protected]>
1 parent b6eb83e commit 2113c0d

18 files changed

+528
-432
lines changed

tests/e2e/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ module.exports = {
9393
'@typescript-eslint/no-unsafe-call': 'off',
9494
'@typescript-eslint/restrict-plus-operands': 'off',
9595
'@typescript-eslint/no-namespace': 'off',
96-
'@typescript-eslint/no-unused-expressions': 'error',
96+
'@typescript-eslint/no-unused-expressions': 'off',
9797
'@typescript-eslint/no-unused-vars': 'error',
9898
'@typescript-eslint/no-use-before-define': 'error',
9999
'@typescript-eslint/no-var-requires': 'off',

tests/e2e/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Note: If there is any modifications in package.json, manually execute the `npm i
3737
npm run test
3838
```
3939
Also, environmental variables can be set in files in "constants" folder.
40+
- Local test results can be represented with Allure reporter `npm run open-allure-dasboard`
4041
4142
## Docker launch
4243

tests/e2e/configs/mocharc.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import { MOCHA_CONSTANTS } from '../constants/MOCHA_CONSTANTS';
1818

1919
module.exports = {
2020
timeout: MOCHA_CONSTANTS.MOCHA_DEFAULT_TIMEOUT,
21-
reporter: 'dist/utils/CheReporter.js',
21+
reporter: 'mocha-multi-reporters',
22+
reporterOptions: 'configFile=configs/reporters-config.json',
2223
ui: 'tdd',
2324
require: ['dist/specs/MochaHooks.js', 'ts-node/register'],
2425
bail: MOCHA_CONSTANTS.MOCHA_BAIL,
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"reporterEnabled": "allure-mocha,dist/utils/CheReporter.js",
3+
"allureMochaReporterOptions": {
4+
"resultsDir": ".allure-results"
5+
}
6+
}

tests/e2e/constants/PLUGIN_TEST_CONSTANTS.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ export const PLUGIN_TEST_CONSTANTS: { TS_SAMPLE_LIST: string } = {
1111
/**
1212
* dashboard samples to check in RecommendedExtensions.spec.ts
1313
*/
14-
TS_SAMPLE_LIST: process.env.TS_SAMPLE_LIST || 'Node.js MongoDB,Node.js Express'
14+
TS_SAMPLE_LIST:
15+
process.env.TS_SAMPLE_LIST ||
16+
'Node.js MongoDB,Node.js Express,Java 11 with Lombok,Java 11 with Quarkus,Python,.NET,C/C++,Go,PHP,Ansible'
1517
};

tests/e2e/constants/TIMEOUT_CONSTANTS.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* SPDX-License-Identifier: EPL-2.0
99
**********************************************************************/
1010
export const TIMEOUT_CONSTANTS: {
11+
TS_FIND_EXTENSION_TEST_TIMEOUT: number;
1112
TS_SELENIUM_WORKSPACE_STATUS_POLLING: number;
1213
TS_COMMON_DASHBOARD_WAIT_TIMEOUT: number;
1314
TS_EXPAND_PROJECT_TREE_ITEM_TIMEOUT: number;
@@ -106,7 +107,7 @@ export const TIMEOUT_CONSTANTS: {
106107
// -------------------------------------------- EDITOR --------------------------------------------
107108

108109
/**
109-
* timeout for inetractions with editor tab - wait, click, select, "8 000" by default.
110+
* timeout for interactions with editor tab - wait, click, select, "8 000" by default.
110111
*/
111112
TS_EDITOR_TAB_INTERACTION_TIMEOUT: Number(process.env.TS_OPEN_PROJECT_TREE_TIMEOUT) || 8_000,
112113

@@ -127,5 +128,10 @@ export const TIMEOUT_CONSTANTS: {
127128
/**
128129
* common timeout for plugins.
129130
*/
130-
TS_COMMON_PLUGIN_TEST_TIMEOUT: Number(process.env.TS_COMMON_PLUGIN_TEST_TIMEOUT) || 30_000
131+
TS_COMMON_PLUGIN_TEST_TIMEOUT: Number(process.env.TS_COMMON_PLUGIN_TEST_TIMEOUT) || 30_000,
132+
133+
/**
134+
* timeout for searching extension in marketplace.
135+
*/
136+
TS_FIND_EXTENSION_TEST_TIMEOUT: Number(process.env.TS_FIND_EXTENSION_TEST_TIMEOUT) || 15_000
131137
};

0 commit comments

Comments
 (0)