@eclipse-che/che-e2e
Advanced tools
Comparing version 7.92.0-next-71276b8 to 7.92.0-next-dd6c3f2
@@ -57,2 +57,3 @@ /** ******************************************************************* | ||
import { TrustAuthorPopup } from '../pageobjects/dashboard/TrustAuthorPopup'; | ||
import { ViewsMoreActionsButton } from '../pageobjects/ide/ViewsMoreActionsButton'; | ||
@@ -97,2 +98,3 @@ const e2eContainer: Container = new Container({ defaultScope: 'Transient', skipBaseClassChecks: true }); | ||
e2eContainer.bind<TrustAuthorPopup>(CLASSES.TrustAuthorPopup).to(TrustAuthorPopup); | ||
e2eContainer.bind<ViewsMoreActionsButton>(CLASSES.ViewsMoreActionsButton).to(ViewsMoreActionsButton); | ||
@@ -99,0 +101,0 @@ if (BASE_TEST_CONSTANTS.TS_PLATFORM === Platform.OPENSHIFT) { |
@@ -54,3 +54,4 @@ /** ******************************************************************* | ||
RevokeOauthPage: 'RevokeOauthPage', | ||
TrustAuthorPopup: 'TrustAuthorPopup' | ||
TrustAuthorPopup: 'TrustAuthorPopup', | ||
ViewsMoreActionsButton: 'ViewsMoreActionsButton' | ||
}; | ||
@@ -57,0 +58,0 @@ |
@@ -54,2 +54,3 @@ "use strict"; | ||
const TrustAuthorPopup_1 = require("../pageobjects/dashboard/TrustAuthorPopup"); | ||
const ViewsMoreActionsButton_1 = require("../pageobjects/ide/ViewsMoreActionsButton"); | ||
const e2eContainer = new inversify_1.Container({ defaultScope: 'Transient', skipBaseClassChecks: true }); | ||
@@ -93,2 +94,3 @@ exports.e2eContainer = e2eContainer; | ||
e2eContainer.bind(inversify_types_1.CLASSES.TrustAuthorPopup).to(TrustAuthorPopup_1.TrustAuthorPopup); | ||
e2eContainer.bind(inversify_types_1.CLASSES.ViewsMoreActionsButton).to(ViewsMoreActionsButton_1.ViewsMoreActionsButton); | ||
if (BASE_TEST_CONSTANTS_1.BASE_TEST_CONSTANTS.TS_PLATFORM === BASE_TEST_CONSTANTS_1.Platform.OPENSHIFT) { | ||
@@ -95,0 +97,0 @@ if (OAUTH_CONSTANTS_1.OAUTH_CONSTANTS.TS_SELENIUM_VALUE_OPENSHIFT_OAUTH) { |
@@ -56,3 +56,4 @@ "use strict"; | ||
RevokeOauthPage: 'RevokeOauthPage', | ||
TrustAuthorPopup: 'TrustAuthorPopup' | ||
TrustAuthorPopup: 'TrustAuthorPopup', | ||
ViewsMoreActionsButton: 'ViewsMoreActionsButton' | ||
}; | ||
@@ -59,0 +60,0 @@ exports.CLASSES = CLASSES; |
@@ -62,2 +62,3 @@ "use strict"; | ||
__exportStar(require("./pageobjects/ide/CheCodeLocatorLoader"), exports); | ||
__exportStar(require("./pageobjects/ide/ViewsMoreActionsButton"), exports); | ||
__exportStar(require("./pageobjects/login/interfaces/ICheLoginPage"), exports); | ||
@@ -64,0 +65,0 @@ __exportStar(require("./pageobjects/login/interfaces/IOcpLoginPage"), exports); |
"use strict"; | ||
/** ******************************************************************* | ||
* copyright (c) 2021 Red Hat, Inc. | ||
* copyright (c) 2021-2024 Red Hat, Inc. | ||
* | ||
@@ -36,2 +36,3 @@ * This program and the accompanying materials are made | ||
const createWorkspace = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.CreateWorkspace); | ||
const viewsMoreActionsButton = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.ViewsMoreActionsButton); | ||
let projectSection; | ||
@@ -41,2 +42,3 @@ let scmProvider; | ||
let scmContextMenu; | ||
let viewsActionsButton; | ||
// test specific data | ||
@@ -123,2 +125,6 @@ const timeToRefresh = 1500; | ||
await driverHelper.waitVisibility(webCheCodeLocators.ScmView.more); | ||
viewsActionsButton = await viewsMoreActionsButton.viewsAndMoreActionsButtonIsVisible(); | ||
if (viewsActionsButton) { | ||
await viewsMoreActionsButton.closeSourceControlGraph(); | ||
} | ||
Logger_1.Logger.debug('scmProvider.openMoreActions'); | ||
@@ -125,0 +131,0 @@ scmContextMenu = await scmProvider.openMoreActions(); |
"use strict"; | ||
/** ******************************************************************* | ||
* copyright (c) 2021 Red Hat, Inc. | ||
* copyright (c) 2021-2024 Red Hat, Inc. | ||
* | ||
@@ -36,5 +36,7 @@ * This program and the accompanying materials are made | ||
const createWorkspace = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.CreateWorkspace); | ||
const viewsMoreActionsButton = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.ViewsMoreActionsButton); | ||
let projectSection; | ||
let scmProvider; | ||
let scmContextMenu; | ||
let viewsActionsButton; | ||
// test specific data | ||
@@ -138,3 +140,6 @@ let numberOfCreatedWorkspaces = 0; | ||
await driverHelper.waitVisibility(webCheCodeLocators.ScmView.more); | ||
Logger_1.Logger.debug('scmProvider.openMoreActions'); | ||
viewsActionsButton = await viewsMoreActionsButton.viewsAndMoreActionsButtonIsVisible(); | ||
if (viewsActionsButton) { | ||
await viewsMoreActionsButton.closeSourceControlGraph(); | ||
} | ||
scmContextMenu = await scmProvider.openMoreActions(); | ||
@@ -141,0 +146,0 @@ await driverHelper.waitVisibility(webCheCodeLocators.ContextMenu.contextView); |
"use strict"; | ||
/** ******************************************************************* | ||
* copyright (c) 2021 Red Hat, Inc. | ||
* copyright (c) 2021-2024 Red Hat, Inc. | ||
* | ||
@@ -36,2 +36,3 @@ * This program and the accompanying materials are made | ||
const createWorkspace = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.CreateWorkspace); | ||
const viewsMoreActionsButton = inversify_config_1.e2eContainer.get(inversify_types_1.CLASSES.ViewsMoreActionsButton); | ||
let projectSection; | ||
@@ -41,2 +42,3 @@ let scmProvider; | ||
let scmContextMenu; | ||
let viewsActionsButton; | ||
// test specific data | ||
@@ -136,2 +138,6 @@ const timeToRefresh = 1500; | ||
await driverHelper.waitVisibility(webCheCodeLocators.ScmView.more); | ||
viewsActionsButton = await viewsMoreActionsButton.viewsAndMoreActionsButtonIsVisible(); | ||
if (viewsActionsButton) { | ||
await viewsMoreActionsButton.closeSourceControlGraph(); | ||
} | ||
Logger_1.Logger.debug('scmProvider.openMoreActions'); | ||
@@ -138,0 +144,0 @@ scmContextMenu = await scmProvider.openMoreActions(); |
@@ -33,2 +33,3 @@ import * as inversifyConfig from './configs/inversify.config'; | ||
export * from './pageobjects/ide/CheCodeLocatorLoader'; | ||
export * from './pageobjects/ide/ViewsMoreActionsButton'; | ||
export * from './pageobjects/login/interfaces/ICheLoginPage'; | ||
@@ -35,0 +36,0 @@ export * from './pageobjects/login/interfaces/IOcpLoginPage'; |
{ | ||
"name": "@eclipse-che/che-e2e", | ||
"version": "7.92.0-next-71276b8", | ||
"version": "7.92.0-next-dd6c3f2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
/** ******************************************************************* | ||
* copyright (c) 2021 Red Hat, Inc. | ||
* copyright (c) 2021-2024 Red Hat, Inc. | ||
* | ||
@@ -43,2 +43,3 @@ * This program and the accompanying materials are made | ||
import { CreateWorkspace } from '../../pageobjects/dashboard/CreateWorkspace'; | ||
import { ViewsMoreActionsButton } from '../../pageobjects/ide/ViewsMoreActionsButton'; | ||
@@ -59,2 +60,3 @@ suite( | ||
const createWorkspace: CreateWorkspace = e2eContainer.get(CLASSES.CreateWorkspace); | ||
const viewsMoreActionsButton: ViewsMoreActionsButton = e2eContainer.get(CLASSES.ViewsMoreActionsButton); | ||
@@ -65,2 +67,3 @@ let projectSection: ViewSection; | ||
let scmContextMenu: ContextMenu; | ||
let viewsActionsButton: boolean; | ||
@@ -160,2 +163,6 @@ // test specific data | ||
await driverHelper.waitVisibility(webCheCodeLocators.ScmView.more); | ||
viewsActionsButton = await viewsMoreActionsButton.viewsAndMoreActionsButtonIsVisible(); | ||
if (viewsActionsButton) { | ||
await viewsMoreActionsButton.closeSourceControlGraph(); | ||
} | ||
Logger.debug('scmProvider.openMoreActions'); | ||
@@ -162,0 +169,0 @@ scmContextMenu = await scmProvider.openMoreActions(); |
/** ******************************************************************* | ||
* copyright (c) 2021 Red Hat, Inc. | ||
* copyright (c) 2021-2024 Red Hat, Inc. | ||
* | ||
@@ -44,2 +44,3 @@ * This program and the accompanying materials are made | ||
import { CreateWorkspace } from '../../pageobjects/dashboard/CreateWorkspace'; | ||
import { ViewsMoreActionsButton } from '../../pageobjects/ide/ViewsMoreActionsButton'; | ||
@@ -60,2 +61,3 @@ suite( | ||
const createWorkspace: CreateWorkspace = e2eContainer.get(CLASSES.CreateWorkspace); | ||
const viewsMoreActionsButton: ViewsMoreActionsButton = e2eContainer.get(CLASSES.ViewsMoreActionsButton); | ||
@@ -65,2 +67,3 @@ let projectSection: ViewSection; | ||
let scmContextMenu: ContextMenu; | ||
let viewsActionsButton: boolean; | ||
@@ -178,3 +181,6 @@ // test specific data | ||
await driverHelper.waitVisibility(webCheCodeLocators.ScmView.more); | ||
Logger.debug('scmProvider.openMoreActions'); | ||
viewsActionsButton = await viewsMoreActionsButton.viewsAndMoreActionsButtonIsVisible(); | ||
if (viewsActionsButton) { | ||
await viewsMoreActionsButton.closeSourceControlGraph(); | ||
} | ||
scmContextMenu = await scmProvider.openMoreActions(); | ||
@@ -181,0 +187,0 @@ await driverHelper.waitVisibility(webCheCodeLocators.ContextMenu.contextView); |
/** ******************************************************************* | ||
* copyright (c) 2021 Red Hat, Inc. | ||
* copyright (c) 2021-2024 Red Hat, Inc. | ||
* | ||
@@ -43,2 +43,3 @@ * This program and the accompanying materials are made | ||
import { CreateWorkspace } from '../../pageobjects/dashboard/CreateWorkspace'; | ||
import { ViewsMoreActionsButton } from '../../pageobjects/ide/ViewsMoreActionsButton'; | ||
@@ -59,2 +60,3 @@ suite( | ||
const createWorkspace: CreateWorkspace = e2eContainer.get(CLASSES.CreateWorkspace); | ||
const viewsMoreActionsButton: ViewsMoreActionsButton = e2eContainer.get(CLASSES.ViewsMoreActionsButton); | ||
@@ -65,2 +67,3 @@ let projectSection: ViewSection; | ||
let scmContextMenu: ContextMenu; | ||
let viewsActionsButton: boolean; | ||
@@ -177,2 +180,6 @@ // test specific data | ||
await driverHelper.waitVisibility(webCheCodeLocators.ScmView.more); | ||
viewsActionsButton = await viewsMoreActionsButton.viewsAndMoreActionsButtonIsVisible(); | ||
if (viewsActionsButton) { | ||
await viewsMoreActionsButton.closeSourceControlGraph(); | ||
} | ||
Logger.debug('scmProvider.openMoreActions'); | ||
@@ -179,0 +186,0 @@ scmContextMenu = await scmProvider.openMoreActions(); |
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 4 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 4 instances in 1 package
1168067
304
16896
16