@eclipse-che/che-e2e
Advanced tools
Comparing version 7.87.0-next-7bdaba7 to 7.87.0-next-b640f5c
@@ -16,3 +16,2 @@ /** ******************************************************************* | ||
export const BASE_TEST_CONSTANTS: { | ||
DELETE_ALL_WORKSPACES_ON_RUN_FINISH: boolean; | ||
OCP_INFRA: string; | ||
@@ -136,7 +135,2 @@ DELETE_WORKSPACE_ON_FAILED_TEST: boolean; | ||
/** | ||
* stop and remove all workspaces on test run finish | ||
*/ | ||
DELETE_ALL_WORKSPACES_ON_RUN_FINISH: process.env.DELETE_WORKSPACE_ON_FAILED_TEST === 'true', | ||
/** | ||
* constant, which prolong timeout constants for local debug. | ||
@@ -143,0 +137,0 @@ */ |
@@ -100,6 +100,2 @@ "use strict"; | ||
/** | ||
* stop and remove all workspaces on test run finish | ||
*/ | ||
DELETE_ALL_WORKSPACES_ON_RUN_FINISH: process.env.DELETE_WORKSPACE_ON_FAILED_TEST === 'true', | ||
/** | ||
* constant, which prolong timeout constants for local debug. | ||
@@ -106,0 +102,0 @@ */ |
@@ -50,2 +50,5 @@ "use strict"; | ||
actionConstructor: (title) => selenium_webdriver_1.By.xpath(`.//a[@aria-label='${title}']`) | ||
}, | ||
ContextMenu: { | ||
contextView: selenium_webdriver_1.By.className('monaco-menu-container') | ||
} | ||
@@ -52,0 +55,0 @@ }, |
@@ -140,26 +140,4 @@ "use strict"; | ||
} | ||
], | ||
afterAll: [ | ||
// stop and remove running workspace | ||
async function deleteAllWorkspacesOnFinish() { | ||
try { | ||
if (BASE_TEST_CONSTANTS_1.BASE_TEST_CONSTANTS.DELETE_ALL_WORKSPACES_ON_RUN_FINISH && CHROME_DRIVER_CONSTANTS_1.CHROME_DRIVER_CONSTANTS.TS_USE_WEB_DRIVER_FOR_TEST) { | ||
Logger_1.Logger.trace('Property DELETE_WORKSPACE_ON_FAILED_TEST is true - trying to stop and delete all running workspace after test run with API.'); | ||
const testWorkspaceUtil = inversify_config_1.e2eContainer.get(inversify_types_1.TYPES.WorkspaceUtil); | ||
await testWorkspaceUtil.stopAndDeleteAllRunningWorkspaces(); | ||
} | ||
} | ||
catch (e) { | ||
Logger_1.Logger.trace('Running workspaces not found'); | ||
} | ||
}, | ||
async function stopTheDriver() { | ||
if (!BASE_TEST_CONSTANTS_1.BASE_TEST_CONSTANTS.TS_DEBUG_MODE && CHROME_DRIVER_CONSTANTS_1.CHROME_DRIVER_CONSTANTS.TS_USE_WEB_DRIVER_FOR_TEST) { | ||
// ensure that fired events done | ||
await driverHelper.wait(5000); | ||
await driverHelper.quit(); | ||
} | ||
} | ||
] | ||
}; | ||
//# sourceMappingURL=MochaHooks.js.map |
{ | ||
"name": "@eclipse-che/che-e2e", | ||
"version": "7.87.0-next-7bdaba7", | ||
"version": "7.87.0-next-b640f5c", | ||
"description": "", | ||
@@ -43,3 +43,3 @@ "main": "dist/index.js", | ||
"chrome-har": "^0.13.2", | ||
"chromedriver": "^122.0", | ||
"chromedriver": "^125.0.0", | ||
"clone-deep": "^4.0.1", | ||
@@ -46,0 +46,0 @@ "eslint": "^8.45.0", |
@@ -46,2 +46,5 @@ /** ******************************************************************* | ||
actionConstructor: (title: string): By => By.xpath(`.//a[@aria-label='${title}']`) | ||
}, | ||
ContextMenu: { | ||
contextView: By.className('monaco-menu-container') | ||
} | ||
@@ -48,0 +51,0 @@ }, |
@@ -128,26 +128,3 @@ /** ******************************************************************* | ||
} | ||
], | ||
afterAll: [ | ||
// stop and remove running workspace | ||
async function deleteAllWorkspacesOnFinish(): Promise<void> { | ||
try { | ||
if (BASE_TEST_CONSTANTS.DELETE_ALL_WORKSPACES_ON_RUN_FINISH && CHROME_DRIVER_CONSTANTS.TS_USE_WEB_DRIVER_FOR_TEST) { | ||
Logger.trace( | ||
'Property DELETE_WORKSPACE_ON_FAILED_TEST is true - trying to stop and delete all running workspace after test run with API.' | ||
); | ||
const testWorkspaceUtil: ITestWorkspaceUtil = e2eContainer.get(TYPES.WorkspaceUtil); | ||
await testWorkspaceUtil.stopAndDeleteAllRunningWorkspaces(); | ||
} | ||
} catch (e) { | ||
Logger.trace('Running workspaces not found'); | ||
} | ||
}, | ||
async function stopTheDriver(): Promise<void> { | ||
if (!BASE_TEST_CONSTANTS.TS_DEBUG_MODE && CHROME_DRIVER_CONSTANTS.TS_USE_WEB_DRIVER_FOR_TEST) { | ||
// ensure that fired events done | ||
await driverHelper.wait(5000); | ||
await driverHelper.quit(); | ||
} | ||
} | ||
] | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 5 instances in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 5 instances in 1 package
1088026
15906