@eclipse-che/che-e2e 7.60.0 → 7.60.1
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.
|
@@ -27,21 +27,19 @@ const inversify_1 = require("inversify");
|
|
|
27
27
|
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
28
28
|
const DriverHelper_1 = require("../../utils/DriverHelper");
|
|
29
29
|
const inversify_types_1 = require("../../inversify.types");
|
|
30
|
+
const Logger_1 = require("../../utils/Logger");
|
|
31
|
+
const TimeoutConstants_1 = require("../../TimeoutConstants");
|
|
30
32
|
let ProjectAndFileTestsCheCode = class ProjectAndFileTestsCheCode {
|
|
31
33
|
constructor(driverHelper) {
|
|
32
34
|
this.driverHelper = driverHelper;
|
|
33
35
|
}
|
|
34
36
|
async waitWorkspaceReadinessForCheCodeEditor() {
|
|
35
37
|
try {
|
|
36
|
-
await this.driverHelper.getDriver().wait(selenium_webdriver_1.until.elementLocated(selenium_webdriver_1.By.className('monaco-workbench')));
|
|
38
|
+
await this.driverHelper.getDriver().wait(selenium_webdriver_1.until.elementLocated(selenium_webdriver_1.By.className('monaco-workbench')), TimeoutConstants_1.TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
37
39
|
}
|
|
38
40
|
catch (err) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
throw err;
|
|
44
|
-
}
|
|
41
|
+
Logger_1.Logger.error(`ProjectAndFileTestsCheCode.waitWorkspaceReadinessForCheCodeEditor - waiting for workspace readiness failed: ${err}`);
|
|
42
|
+
throw err;
|
|
45
43
|
}
|
|
46
44
|
}
|
|
47
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectAndFileTestsCheCode.js","sourceRoot":"","sources":["../../../testsLibrary/che-code/ProjectAndFileTestsCheCode.ts"],"names":[],"mappings":";AAAA;;;;;;;;wEAQwE;;;;;;;;;;;;;;;AAExE,4BAA0B;AAC1B,yCAA+C;AAC/C,2DAA+C;AAC/C,2DAAwD;AACxD,2DAAgD;
|
|
1
|
+
{"version":3,"file":"ProjectAndFileTestsCheCode.js","sourceRoot":"","sources":["../../../testsLibrary/che-code/ProjectAndFileTestsCheCode.ts"],"names":[],"mappings":";AAAA;;;;;;;;wEAQwE;;;;;;;;;;;;;;;AAExE,4BAA0B;AAC1B,yCAA+C;AAC/C,2DAA+C;AAC/C,2DAAwD;AACxD,2DAAgD;AAChD,+CAA4C;AAC5C,6DAA0D;AAG1D,IAAa,0BAA0B,GAAvC,MAAa,0BAA0B;IAEnC,YACmD,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAAG,CAAC;IAE1E,KAAK,CAAC,sCAAsC;QAC/C,IAAI;YACA,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,0BAAK,CAAC,cAAc,CAAC,uBAAE,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,EAAE,mCAAgB,CAAC,mCAAmC,CAAC,CAAC;SAC1J;QAAC,OAAO,GAAG,EAAE;YACV,eAAM,CAAC,KAAK,CAAC,+GAA+G,GAAG,EAAE,CAAC,CAAC;YACnI,MAAM,GAAG,CAAC;SACb;IACL,CAAC;CACJ,CAAA;AAbY,0BAA0B;IADtC,sBAAU,EAAE;IAIJ,WAAA,kBAAM,CAAC,yBAAO,CAAC,YAAY,CAAC,CAAA;qCAAgC,2BAAY;GAHpE,0BAA0B,CAatC;AAbY,gEAA0B"}
|
package/package.json
CHANGED
|
@@ -13,6 +13,8 @@ import { inject, injectable } from 'inversify';
|
|
|
13
13
|
import { By, until } from 'selenium-webdriver';
|
|
14
14
|
import { DriverHelper } from '../../utils/DriverHelper';
|
|
15
15
|
import { CLASSES } from '../../inversify.types';
|
|
16
|
+
import { Logger } from '../../utils/Logger';
|
|
17
|
+
import { TimeoutConstants } from '../../TimeoutConstants';
|
|
16
18
|
|
|
17
19
|
@injectable()
|
|
18
20
|
export class ProjectAndFileTestsCheCode {
|
|
@@ -22,13 +24,10 @@ export class ProjectAndFileTestsCheCode {
|
|
|
22
24
|
|
|
23
25
|
public async waitWorkspaceReadinessForCheCodeEditor(): Promise<void> {
|
|
24
26
|
try {
|
|
25
|
-
await this.driverHelper.getDriver().wait(until.elementLocated(By.className('monaco-workbench')));
|
|
27
|
+
await this.driverHelper.getDriver().wait(until.elementLocated(By.className('monaco-workbench')), TimeoutConstants.TS_SELENIUM_START_WORKSPACE_TIMEOUT);
|
|
26
28
|
} catch (err) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} else {
|
|
30
|
-
throw err;
|
|
31
|
-
}
|
|
29
|
+
Logger.error(`ProjectAndFileTestsCheCode.waitWorkspaceReadinessForCheCodeEditor - waiting for workspace readiness failed: ${err}`);
|
|
30
|
+
throw err;
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
}
|