@eclipse-che/che-e2e
Advanced tools
Comparing version 7.83.0-next-fe3c6cf to 7.83.0
@@ -49,3 +49,3 @@ "use strict"; | ||
ScmView: { | ||
actionConstructor: (title) => selenium_webdriver_1.By.xpath(`.//a[@title='${title}']`) | ||
actionConstructor: (title) => selenium_webdriver_1.By.xpath(`.//a[@aria-label='${title}']`) | ||
} | ||
@@ -52,0 +52,0 @@ }, |
@@ -43,3 +43,2 @@ "use strict"; | ||
const fileToChange = 'Date.txt'; | ||
const commitChangesButtonLabel = `Commit Changes on "${FACTORY_TEST_CONSTANTS_1.FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_GIT_REPO_BRANCH}"`; | ||
const refreshButtonLabel = 'Refresh'; | ||
@@ -111,4 +110,4 @@ const pushItemLabel = 'Push'; | ||
await driverHelper.wait(timeToRefresh); | ||
Logger_1.Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger_1.Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
// wait while changes counter will be refreshed | ||
@@ -133,4 +132,4 @@ await driverHelper.wait(timeToRefresh); | ||
await driverHelper.wait(timeToRefresh); | ||
Logger_1.Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger_1.Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
// wait while changes counter will be refreshed | ||
@@ -143,3 +142,3 @@ await driverHelper.wait(timeToRefresh); | ||
test('Push the changes', async function () { | ||
await driverHelper.waitVisibility(webCheCodeLocators.ScmView.actionConstructor(`Push 1 commits to origin/${FACTORY_TEST_CONSTANTS_1.FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_GIT_REPO_BRANCH}`)); | ||
await driverHelper.waitVisibility(webCheCodeLocators.Notification.action); | ||
await driverHelper.waitVisibility(webCheCodeLocators.ScmView.more); | ||
@@ -155,5 +154,5 @@ Logger_1.Logger.debug('scmProvider.openMoreActions'); | ||
await driverHelper.wait(timeToRefresh); | ||
Logger_1.Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
const isCommitButtonDisabled = await driverHelper.waitAndGetElementAttribute(webCheCodeLocators.ScmView.actionConstructor(commitChangesButtonLabel), 'aria-disabled'); | ||
Logger_1.Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
const isCommitButtonDisabled = await driverHelper.waitAndGetElementAttribute(webCheCodeLocators.Notification.action, 'aria-disabled'); | ||
(0, chai_1.expect)(isCommitButtonDisabled).to.equal('true'); | ||
@@ -160,0 +159,0 @@ }); |
@@ -125,4 +125,4 @@ "use strict"; | ||
await driverHelper.wait(timeToRefresh); | ||
Logger_1.Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger_1.Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
// wait while changes counter will be refreshed | ||
@@ -147,4 +147,4 @@ await driverHelper.wait(timeToRefresh); | ||
await driverHelper.wait(timeToRefresh); | ||
Logger_1.Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger_1.Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
// wait while changes counter will be refreshed | ||
@@ -192,3 +192,3 @@ await driverHelper.wait(timeToRefresh); | ||
Logger_1.Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
} | ||
@@ -195,0 +195,0 @@ catch (e) { |
@@ -122,4 +122,4 @@ "use strict"; | ||
await driverHelper.wait(timeToRefresh); | ||
Logger_1.Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger_1.Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
// wait while changes counter will be refreshed | ||
@@ -144,4 +144,4 @@ await driverHelper.wait(timeToRefresh); | ||
await driverHelper.wait(timeToRefresh); | ||
Logger_1.Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger_1.Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
// wait while changes counter will be refreshed | ||
@@ -148,0 +148,0 @@ await driverHelper.wait(timeToRefresh); |
@@ -58,12 +58,12 @@ "use strict"; | ||
test('Verify help command under admin user', async function () { | ||
const helpCommandExpectedResult = 'oc \\d+\\.\\d+\\.\\d+ OpenShift CLI\n' + | ||
'kubectl \\d+\\.\\d+\\.\\d+ Kubernetes CLI\n' + | ||
'kustomize \\d+\\.\\d+\\.\\d+ Kustomize CLI \\(built-in to kubectl\\)\n' + | ||
'helm \\d+\\.\\d+\\.\\d+ Helm CLI\n' + | ||
'kn \\d+\\.\\d+\\.\\d+ KNative CLI\n' + | ||
'tkn \\d+\\.\\d+\\.\\d+ Tekton CLI\n' + | ||
'subctl \\d+\\.\\d+\\.\\d+ Submariner CLI\n' + | ||
'odo \\d+\\.\\d+\\.\\d+ Red Hat OpenShift Developer CLI\n' + | ||
'virtctl \\d+\\.\\d+\\.\\d+ KubeVirt CLI\n' + | ||
'jq \\d+\\.\\d+ jq'; | ||
const helpCommandExpectedResult = 'oc.*\\d+\\.\\d+\\.\\d+.*OpenShift CLI\n' + | ||
'kubectl.*\\d+\\.\\d+\\.\\d+.*Kubernetes CLI\n' + | ||
'kustomize.*\\d+\\.\\d+\\.\\d+.*Kustomize CLI \\(built-in to kubectl\\)\n' + | ||
'helm.*\\d+\\.\\d+\\.\\d+.*Helm CLI\n' + | ||
'kn.*\\d+\\.\\d+\\.\\d+.*KNative CLI\n' + | ||
'tkn.*\\d+\\.\\d+\\.\\d+.*Tekton CLI\n' + | ||
'subctl.*\\d+\\.\\d+\\.\\d+.*Submariner CLI\n' + | ||
'odo.*\\d+\\.\\d+\\.\\d+.*Red Hat OpenShift Developer CLI\n' + | ||
'virtctl.*\\d+\\.\\d+\\.\\d+.*KubeVirt CLI\n' + | ||
'jq.*\\d+\\.\\d+.*jq'; | ||
await webTerminal.typeAndEnterIntoWebTerminal(`help > ${fileForVerificationTerminalCommands}`); | ||
@@ -70,0 +70,0 @@ const commandResult = kubernetesCommandLineToolsExecutor.execInContainerCommand(`cat /home/user/${fileForVerificationTerminalCommands}`, webTerminalToolContainerName); |
{ | ||
"name": "@eclipse-che/che-e2e", | ||
"version": "7.83.0-next-fe3c6cf", | ||
"version": "7.83.0", | ||
"description": "", | ||
@@ -43,3 +43,3 @@ "main": "dist/index.js", | ||
"chrome-har": "^0.13.2", | ||
"chromedriver": "^120.0", | ||
"chromedriver": "^122.0", | ||
"clone-deep": "^4.0.1", | ||
@@ -69,3 +69,4 @@ "eslint": "^8.45.0", | ||
"inversify": "6.0.1", | ||
"reflect-metadata": "0.1.13" | ||
"reflect-metadata": "0.1.13", | ||
"@eclipse-che/che-devworkspace-generator": "7.83.0" | ||
}, | ||
@@ -72,0 +73,0 @@ "resolutions": { |
@@ -45,3 +45,3 @@ /** ******************************************************************* | ||
ScmView: { | ||
actionConstructor: (title: string): By => By.xpath(`.//a[@title='${title}']`) | ||
actionConstructor: (title: string): By => By.xpath(`.//a[@aria-label='${title}']`) | ||
} | ||
@@ -48,0 +48,0 @@ }, |
@@ -66,3 +66,2 @@ /** ******************************************************************* | ||
const fileToChange: string = 'Date.txt'; | ||
const commitChangesButtonLabel: string = `Commit Changes on "${FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_GIT_REPO_BRANCH}"`; | ||
const refreshButtonLabel: string = 'Refresh'; | ||
@@ -145,4 +144,4 @@ const pushItemLabel: string = 'Push'; | ||
await driverHelper.wait(timeToRefresh); | ||
Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
// wait while changes counter will be refreshed | ||
@@ -169,4 +168,4 @@ await driverHelper.wait(timeToRefresh); | ||
await driverHelper.wait(timeToRefresh); | ||
Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
// wait while changes counter will be refreshed | ||
@@ -180,7 +179,3 @@ await driverHelper.wait(timeToRefresh); | ||
test('Push the changes', async function (): Promise<void> { | ||
await driverHelper.waitVisibility( | ||
webCheCodeLocators.ScmView.actionConstructor( | ||
`Push 1 commits to origin/${FACTORY_TEST_CONSTANTS.TS_SELENIUM_FACTORY_GIT_REPO_BRANCH}` | ||
) | ||
); | ||
await driverHelper.waitVisibility(webCheCodeLocators.Notification.action); | ||
await driverHelper.waitVisibility(webCheCodeLocators.ScmView.more); | ||
@@ -197,6 +192,6 @@ Logger.debug('scmProvider.openMoreActions'); | ||
await driverHelper.wait(timeToRefresh); | ||
Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
const isCommitButtonDisabled: string = await driverHelper.waitAndGetElementAttribute( | ||
webCheCodeLocators.ScmView.actionConstructor(commitChangesButtonLabel), | ||
webCheCodeLocators.Notification.action, | ||
'aria-disabled' | ||
@@ -203,0 +198,0 @@ ); |
@@ -161,4 +161,4 @@ /** ******************************************************************* | ||
await driverHelper.wait(timeToRefresh); | ||
Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
// wait while changes counter will be refreshed | ||
@@ -185,4 +185,4 @@ await driverHelper.wait(timeToRefresh); | ||
await driverHelper.wait(timeToRefresh); | ||
Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
// wait while changes counter will be refreshed | ||
@@ -237,3 +237,3 @@ await driverHelper.wait(timeToRefresh); | ||
Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
} catch (e) { | ||
@@ -240,0 +240,0 @@ Logger.info( |
@@ -162,4 +162,4 @@ /** ******************************************************************* | ||
await driverHelper.wait(timeToRefresh); | ||
Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
// wait while changes counter will be refreshed | ||
@@ -186,4 +186,4 @@ await driverHelper.wait(timeToRefresh); | ||
await driverHelper.wait(timeToRefresh); | ||
Logger.debug(`scmProvider.takeAction: "${refreshButtonLabel}"`); | ||
await scmProvider.takeAction(refreshButtonLabel); | ||
Logger.debug(`wait and click on: "${refreshButtonLabel}"`); | ||
await driverHelper.waitAndClick(webCheCodeLocators.ScmView.actionConstructor(refreshButtonLabel)); | ||
// wait while changes counter will be refreshed | ||
@@ -190,0 +190,0 @@ await driverHelper.wait(timeToRefresh); |
@@ -70,12 +70,12 @@ /** ******************************************************************* | ||
const helpCommandExpectedResult: string = | ||
'oc \\d+\\.\\d+\\.\\d+ OpenShift CLI\n' + | ||
'kubectl \\d+\\.\\d+\\.\\d+ Kubernetes CLI\n' + | ||
'kustomize \\d+\\.\\d+\\.\\d+ Kustomize CLI \\(built-in to kubectl\\)\n' + | ||
'helm \\d+\\.\\d+\\.\\d+ Helm CLI\n' + | ||
'kn \\d+\\.\\d+\\.\\d+ KNative CLI\n' + | ||
'tkn \\d+\\.\\d+\\.\\d+ Tekton CLI\n' + | ||
'subctl \\d+\\.\\d+\\.\\d+ Submariner CLI\n' + | ||
'odo \\d+\\.\\d+\\.\\d+ Red Hat OpenShift Developer CLI\n' + | ||
'virtctl \\d+\\.\\d+\\.\\d+ KubeVirt CLI\n' + | ||
'jq \\d+\\.\\d+ jq'; | ||
'oc.*\\d+\\.\\d+\\.\\d+.*OpenShift CLI\n' + | ||
'kubectl.*\\d+\\.\\d+\\.\\d+.*Kubernetes CLI\n' + | ||
'kustomize.*\\d+\\.\\d+\\.\\d+.*Kustomize CLI \\(built-in to kubectl\\)\n' + | ||
'helm.*\\d+\\.\\d+\\.\\d+.*Helm CLI\n' + | ||
'kn.*\\d+\\.\\d+\\.\\d+.*KNative CLI\n' + | ||
'tkn.*\\d+\\.\\d+\\.\\d+.*Tekton CLI\n' + | ||
'subctl.*\\d+\\.\\d+\\.\\d+.*Submariner CLI\n' + | ||
'odo.*\\d+\\.\\d+\\.\\d+.*Red Hat OpenShift Developer CLI\n' + | ||
'virtctl.*\\d+\\.\\d+\\.\\d+.*KubeVirt CLI\n' + | ||
'jq.*\\d+\\.\\d+.*jq'; | ||
@@ -82,0 +82,0 @@ await webTerminal.typeAndEnterIntoWebTerminal(`help > ${fileForVerificationTerminalCommands}`); |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance 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
1087319
1
4
15909
+ Added@devfile/api@2.2.2-1700686170(transitive)
+ Added@eclipse-che/che-devworkspace-generator@7.83.0(transitive)
+ Added@types/node@22.10.10(transitive)
+ Added@types/node-fetch@2.6.12(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaxios@1.6.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedform-data@2.5.24.0.1(transitive)
+ Addedfs-extra@10.1.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedinversify@5.1.1(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedjsonc-parser@3.3.1(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addedjsonschema@1.5.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
+ Addedquerystringify@2.2.0(transitive)
+ Addedrequires-port@1.0.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedundici-types@6.20.0(transitive)
+ Addeduniversalify@2.0.1(transitive)
+ Addedurl-parse@1.5.10(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)