@eclipse-che/che-e2e
Advanced tools
Comparing version 7.79.0-next-57fc319 to 7.79.0-next-93348b5
@@ -54,2 +54,3 @@ /** ******************************************************************* | ||
import { ShellExecutor } from '../utils/ShellExecutor'; | ||
import { UserPreferences } from '../pageobjects/dashboard/UserPreferences'; | ||
@@ -88,2 +89,3 @@ const e2eContainer: Container = new Container({ defaultScope: 'Transient', skipBaseClassChecks: true }); | ||
e2eContainer.bind<ContainerTerminal>(CLASSES.ContainerTerminal).to(ContainerTerminal); | ||
e2eContainer.bind<UserPreferences>(CLASSES.UserPreferences).to(UserPreferences); | ||
@@ -90,0 +92,0 @@ e2eContainer.bind<Generator>(EXTERNAL_CLASSES.Generator).to(Generator); |
@@ -50,3 +50,4 @@ /** ******************************************************************* | ||
ShellExecutor: 'ShellExecutor', | ||
ContainerTerminal: 'ContainerTerminal' | ||
ContainerTerminal: 'ContainerTerminal', | ||
UserPreferences: 'UserPreferences' | ||
}; | ||
@@ -53,0 +54,0 @@ |
@@ -51,2 +51,3 @@ "use strict"; | ||
const ShellExecutor_1 = require("../utils/ShellExecutor"); | ||
const UserPreferences_1 = require("../pageobjects/dashboard/UserPreferences"); | ||
const e2eContainer = new inversify_1.Container({ defaultScope: 'Transient', skipBaseClassChecks: true }); | ||
@@ -84,2 +85,3 @@ exports.e2eContainer = e2eContainer; | ||
e2eContainer.bind(inversify_types_1.CLASSES.ContainerTerminal).to(KubernetesCommandLineToolsExecutor_1.ContainerTerminal); | ||
e2eContainer.bind(inversify_types_1.CLASSES.UserPreferences).to(UserPreferences_1.UserPreferences); | ||
e2eContainer.bind(inversify_types_1.EXTERNAL_CLASSES.Generator).to(main_1.Main); | ||
@@ -86,0 +88,0 @@ e2eContainer.bind(inversify_types_1.EXTERNAL_CLASSES.LocatorLoader).to(loader_1.LocatorLoader); |
@@ -52,3 +52,4 @@ "use strict"; | ||
ShellExecutor: 'ShellExecutor', | ||
ContainerTerminal: 'ContainerTerminal' | ||
ContainerTerminal: 'ContainerTerminal', | ||
UserPreferences: 'UserPreferences' | ||
}; | ||
@@ -55,0 +56,0 @@ exports.CLASSES = CLASSES; |
@@ -56,2 +56,3 @@ "use strict"; | ||
__exportStar(require("./pageobjects/dashboard/Dashboard"), exports); | ||
__exportStar(require("./pageobjects/dashboard/UserPreferences"), exports); | ||
__exportStar(require("./pageobjects/dashboard/Workspaces"), exports); | ||
@@ -58,0 +59,0 @@ __exportStar(require("./pageobjects/dashboard/workspace-details/WorkspaceDetails"), exports); |
@@ -34,4 +34,4 @@ "use strict"; | ||
(function (WorkspaceStatusUI) { | ||
WorkspaceStatusUI["Running"] = "green"; | ||
WorkspaceStatusUI["Stopped"] = "grey"; | ||
WorkspaceStatusUI["Running"] = "Workspace status is Running"; | ||
WorkspaceStatusUI["Stopped"] = "Workspace status is Stopped"; | ||
})(WorkspaceStatusUI = exports.WorkspaceStatusUI || (exports.WorkspaceStatusUI = {})); | ||
@@ -157,3 +157,3 @@ let Workspaces = Workspaces_1 = class Workspaces { | ||
getWorkspaceStatusLocator(workspaceName, workspaceStatus) { | ||
return selenium_webdriver_1.By.xpath(`${this.getWorkspaceListItemLocator(workspaceName).value}//span[@data-testid='workspace-status-indicator']//*[local-name()='svg' and @fill='${workspaceStatus}']`); | ||
return selenium_webdriver_1.By.xpath(`${this.getWorkspaceListItemLocator(workspaceName).value}//span[@data-testid='workspace-status-indicator' and @aria-label='${workspaceStatus}']`); | ||
} | ||
@@ -160,0 +160,0 @@ getActionsLocator(workspaceName) { |
@@ -78,2 +78,3 @@ "use strict"; | ||
await this.driverHelper.waitAndClick(OcpMainPage_1.WEB_TERMINAL_BUTTON); | ||
await this.driverHelper.waitAndClick(OcpMainPage_1.START_WT_COMMAND_LINE_TERMINAL_BUTTON); | ||
await this.driverHelper.waitPresence(OcpMainPage_1.WEB_TERMINAL_PAGE, TIMEOUT_CONSTANTS_1.TIMEOUT_CONSTANTS.TS_WAIT_LOADER_ABSENCE_TIMEOUT); | ||
@@ -116,2 +117,3 @@ } | ||
OcpMainPage.WEB_TERMINAL_PAGE = selenium_webdriver_1.By.xpath('//*[@class="xterm-helper-textarea"]'); | ||
OcpMainPage.START_WT_COMMAND_LINE_TERMINAL_BUTTON = selenium_webdriver_1.By.xpath('//*[@data-test-id="submit-button"]'); | ||
OcpMainPage = OcpMainPage_1 = __decorate([ | ||
@@ -118,0 +120,0 @@ (0, inversify_1.injectable)(), |
@@ -64,3 +64,3 @@ "use strict"; | ||
const loaderAlert = await dashboard.getLoaderAlert(); | ||
(0, chai_1.expect)(loaderAlert).to.contain('Cause: Could not reach devfile at'); | ||
(0, chai_1.expect)(loaderAlert).to.contain('Could not reach devfile at'); | ||
}); | ||
@@ -67,0 +67,0 @@ test('Check that workspace was not created', async function () { |
@@ -27,2 +27,3 @@ import * as inversifyConfig from './configs/inversify.config'; | ||
export * from './pageobjects/dashboard/Dashboard'; | ||
export * from './pageobjects/dashboard/UserPreferences'; | ||
export * from './pageobjects/dashboard/Workspaces'; | ||
@@ -29,0 +30,0 @@ export * from './pageobjects/dashboard/workspace-details/WorkspaceDetails'; |
{ | ||
"name": "@eclipse-che/che-e2e", | ||
"version": "7.79.0-next-57fc319", | ||
"version": "7.79.0-next-93348b5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -19,4 +19,4 @@ /** ******************************************************************* | ||
export enum WorkspaceStatusUI { | ||
Running = 'green', | ||
Stopped = 'grey' | ||
Running = 'Workspace status is Running', | ||
Stopped = 'Workspace status is Stopped' | ||
} | ||
@@ -225,3 +225,3 @@ | ||
this.getWorkspaceListItemLocator(workspaceName).value | ||
}//span[@data-testid='workspace-status-indicator']//*[local-name()='svg' and @fill='${workspaceStatus}']` | ||
}//span[@data-testid='workspace-status-indicator' and @aria-label='${workspaceStatus}']` | ||
); | ||
@@ -228,0 +228,0 @@ } |
@@ -31,2 +31,3 @@ /** ******************************************************************* | ||
private static readonly WEB_TERMINAL_PAGE: By = By.xpath('//*[@class="xterm-helper-textarea"]'); | ||
private static readonly START_WT_COMMAND_LINE_TERMINAL_BUTTON: By = By.xpath('//*[@data-test-id="submit-button"]'); | ||
@@ -93,2 +94,3 @@ constructor( | ||
await this.driverHelper.waitAndClick(OcpMainPage.WEB_TERMINAL_BUTTON); | ||
await this.driverHelper.waitAndClick(OcpMainPage.START_WT_COMMAND_LINE_TERMINAL_BUTTON); | ||
await this.driverHelper.waitPresence(OcpMainPage.WEB_TERMINAL_PAGE, TIMEOUT_CONSTANTS.TS_WAIT_LOADER_ABSENCE_TIMEOUT); | ||
@@ -95,0 +97,0 @@ } |
@@ -92,3 +92,3 @@ /** ******************************************************************* | ||
const loaderAlert: string = await dashboard.getLoaderAlert(); | ||
expect(loaderAlert).to.contain('Cause: Could not reach devfile at'); | ||
expect(loaderAlert).to.contain('Could not reach devfile at'); | ||
}); | ||
@@ -95,0 +95,0 @@ |
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
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 3 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 3 instances in 1 package
1030262
280
15116