Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vNext] Merge maintenance with 2.9.2 work #2414

Merged
merged 116 commits into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
580227c
update version to "2.9.1-SNAPSHOT"
JillieBeanSim Jun 14, 2023
62fac4d
update lerna
JillieBeanSim Jun 16, 2023
722d942
Patchwork fix to use VSCode keytar
awharn Jun 13, 2023
8456eca
Update changelog
awharn Jun 13, 2023
49b41a3
Add condition to initialization test
awharn Jun 15, 2023
856acf5
Removed unused import
awharn Jun 15, 2023
67fbcc0
fix location of CHANGELOG item
JillieBeanSim Jun 20, 2023
f97d1d2
Merge pull request #2342 from zowe/2.9.0-2.9.1-prep
JillieBeanSim Jun 20, 2023
952227c
Fix watcher on browser based environments
rudyflores Jun 20, 2023
5272381
Add changes to CHANGELOG.md
rudyflores Jun 20, 2023
42bb64b
add coverage for new change
rudyflores Jun 20, 2023
2d15d23
fix(ds,uss): optimize logic in getChildren function
traeok Jun 20, 2023
0e32e71
Merge branch 'maintenance' into fix/optimize/tree-views
traeok Jun 20, 2023
7fe24b3
fix(jobs): optimize fetching children in Jobs view
traeok Jun 21, 2023
c97f8ce
docs: Add fix to ZE changelog
traeok Jun 21, 2023
5c1641f
fix: optimize sorting for tree items
traeok Jun 21, 2023
b02f401
test: Add test cases for sortTreeItems
traeok Jun 21, 2023
62ee057
test: add test case for ZoweJobNode.getChildren
traeok Jun 22, 2023
11b313e
docs: update fix in changelog w/ issue number
traeok Jun 22, 2023
dd2f854
fix: SonarCloud code smell (nested template literal)
traeok Jun 22, 2023
a05b3ae
fix: tokenType/tokenValue assigned to direct-to-service profiles
traeok Jun 6, 2023
d187e2b
fix: do not rebuild prof. w/ ProfilesCache if already provided
traeok Jun 7, 2023
02a9f21
docs: add changelogs
traeok Jun 7, 2023
875e535
fix: move sanity check above ZoweVsCodeExtension.promptUserPass call
traeok Jun 7, 2023
8aad1d0
fix: change IPromptCredentialsOptions.profile type to IProfileLoaded
traeok Jun 7, 2023
a00bb3a
test: add 2 unit tests for profile/sessionName args
traeok Jun 7, 2023
ad49f2f
fix: only call `refreshAll` once in `ssoLogin, ssoLogout`
traeok Jun 8, 2023
2399bb9
tests: `ZoweTreeProvider.ssoLogin, ZoweTreeProvider.ssoLogout`
traeok Jun 8, 2023
864e4a1
docs: move updates to TBD release in changelogs
traeok Jun 23, 2023
1bdd4bc
Merge pull request #2346 from zowe/theia/fix-watcher
JillieBeanSim Jun 23, 2023
597bded
Merge branch 'maintenance' into fix/apiml-dts-maintenance
JillieBeanSim Jun 23, 2023
ff48c93
Merge branch 'maintenance' into fix/optimize/tree-views
JillieBeanSim Jun 23, 2023
43e1bf0
fix: bump semver to 7.5.3 to resolve audit
traeok Jun 23, 2023
dcac8bd
audit fix
JillieBeanSim Jun 23, 2023
47b2deb
audit fix
JillieBeanSim Jun 23, 2023
4b46175
Merge pull request #2352 from zowe/fix/dep/bump-semver
JillieBeanSim Jun 26, 2023
d8cf75b
Merge branch 'maintenance' into fix/apiml-dts-maintenance
JillieBeanSim Jun 26, 2023
c83a8c1
Merge branch 'maintenance' into fix/optimize/tree-views
JillieBeanSim Jun 26, 2023
a003ccf
prepare 2.9.1 release
JillieBeanSim Jun 26, 2023
531a18e
Merge pull request #2351 from zowe/fix/apiml-dts-maintenance
rudyflores Jun 26, 2023
0e38147
Merge branch 'maintenance' into fix/optimize/tree-views
JillieBeanSim Jun 26, 2023
52e6345
Merge branch 'maintenance' into 2.9.1-release
JillieBeanSim Jun 26, 2023
820d685
Merge pull request #2349 from zowe/fix/optimize/tree-views
rudyflores Jun 26, 2023
c0e1dba
Merge branch 'maintenance' into 2.9.1-release
JillieBeanSim Jun 26, 2023
111e082
updates to ZE README
JillieBeanSim Jun 26, 2023
03117ef
updated CHANGELOGS
JillieBeanSim Jun 26, 2023
029b92b
Merge pull request #2355 from zowe/doc/mfa-updates
JillieBeanSim Jun 27, 2023
44cc138
Merge branch 'maintenance' into 2.9.1-release
JillieBeanSim Jun 27, 2023
399284d
Merge pull request #2354 from zowe/2.9.1-release
JillieBeanSim Jun 29, 2023
5cad05c
Bump version to 2.9.1 [ci skip]
zowe-robot Jun 29, 2023
6ae3d57
Bump version to 2.9.2-SNAPSHOT [ci skip]
zowe-robot Jun 29, 2023
5018545
add jobs not found message
rudyflores Jun 28, 2023
3158b43
add changelog
rudyflores Jun 29, 2023
5b664b1
Merge branch 'maintenance' into jes-refinements2
rudyflores Jun 29, 2023
afbdc66
Handle control characters in ds member names
t1m0thyj Jun 12, 2023
b1ef08a
Improve error message for invalid members
t1m0thyj Jun 30, 2023
33f2318
fix: job tree not creating new nodes
traeok Jul 7, 2023
c1a456e
fix: remove refreshElement check in unit test
traeok Jul 7, 2023
2be5c4c
fix: remove temp fix for desync w/ dirty flag
traeok Jul 7, 2023
afd5d8c
fix: change noJobsNode declaration to Job class
traeok Jul 7, 2023
a72091c
fix: update sorting to match 2.9.0 behavior
traeok Jul 7, 2023
d1009a2
fix audit
zFernand0 Jun 30, 2023
515a8ec
Merge pull request #2372 from zowe/audit-fix-maintenance
rudyflores Jul 7, 2023
6e8bfe5
Merge branch 'maintenance' into jes-refinements2
rudyflores Jul 7, 2023
4697f13
address traeok's comments
rudyflores Jul 7, 2023
51140ab
Merge branch 'maintenance' into fix/job-tree-fix
traeok Jul 10, 2023
ba1648d
Merge pull request #2363 from zowe/jes-refinements2
t1m0thyj Jul 10, 2023
067d6be
Merge branch 'maintenance' into fix/job-tree-fix
traeok Jul 10, 2023
bcb1fa1
Add unit test for 'no spool files'
traeok Jul 10, 2023
3c12eba
test: add unit test for sorting jobs
traeok Jul 10, 2023
a6f0cd9
test: add test case for equal job IDs
traeok Jul 11, 2023
fe3e8b2
fix: prevent cancelled search from fetching jobs
traeok Jul 12, 2023
ebaf1ed
fix: prevent early search execution due to filtered flag
traeok Jul 12, 2023
6cd3746
Merge branch 'maintenance' into fix/list-members-control-chars
t1m0thyj Jul 12, 2023
e8f735b
Add unit test and update changelog
t1m0thyj Jul 12, 2023
11b9f45
Forgot to run prettier
t1m0thyj Jul 12, 2023
d39538c
Fix integration tests for Theia 1.37
t1m0thyj Jul 13, 2023
8ee98f4
Try to fix Hide Profile tests
t1m0thyj Jul 13, 2023
1db4805
Merge pull request #2379 from zowe/fix/theia-element-selectors
t1m0thyj Jul 14, 2023
e2fc587
Merge branch 'maintenance' into fix/job-tree-fix
t1m0thyj Jul 14, 2023
149d163
Update Zowe CLI and try removing resolutions
t1m0thyj Jul 14, 2023
287391b
Merge branch 'maintenance' into fix/list-members-control-chars
t1m0thyj Jul 14, 2023
419aa5d
fix: update filtering logic to remove old nodes
traeok Jul 14, 2023
266e1ff
test: add test for updating job statuses
traeok Jul 17, 2023
e2a2672
update branch with simple important fixes and label update
JillieBeanSim Jul 17, 2023
61dfc87
add unit tests & fix lint error
JillieBeanSim Jul 17, 2023
f1e216e
add more unit tests & cleanup
JillieBeanSim Jul 17, 2023
3e27186
update CHANGELOG run prepublish
JillieBeanSim Jul 17, 2023
d542518
revert i18 naming updates, check if affects coverage
JillieBeanSim Jul 17, 2023
4591f80
add more unit tests for DatasetTree
JillieBeanSim Jul 17, 2023
aa365b1
add more coverage to DatasetTree
JillieBeanSim Jul 19, 2023
8a39f8d
Merge pull request #2371 from zowe/fix/job-tree-fix
t1m0thyj Jul 19, 2023
0e9f917
address feedback
JillieBeanSim Jul 20, 2023
bd82533
Merge remote-tracking branch 'origin/maintenance' into check-creds-bug
JillieBeanSim Jul 20, 2023
501efc1
Merge branch 'maintenance' into check-creds-bug
JillieBeanSim Jul 20, 2023
af633ef
move the call to expandNode for all trees
JillieBeanSim Jul 20, 2023
70953cb
config file watcher isn't noticing changes for secure fields
JillieBeanSim Jul 20, 2023
40bedd5
Merge branch 'maintenance' into fix/list-members-control-chars
t1m0thyj Jul 21, 2023
00770cb
fix for ds tree
JillieBeanSim Jul 21, 2023
a76b6f9
prepare patch release 2.9.2
JillieBeanSim Jul 24, 2023
8314be9
fix jobs tree extra server call
JillieBeanSim Jul 24, 2023
53eed46
Merge pull request #2336 from zowe/fix/list-members-control-chars
zFernand0 Jul 25, 2023
ccdd8a3
Merge branch 'maintenance' into 2.9.2-release
zFernand0 Jul 25, 2023
255f498
update try/catch
JillieBeanSim Jul 25, 2023
9833349
Merge remote-tracking branch 'origin/maintenance' into check-creds-bug
JillieBeanSim Jul 25, 2023
767fcea
add notes to users about keytar update and v3 pre-release
JillieBeanSim Jul 31, 2023
c7e24d1
fix linter error
JillieBeanSim Jul 31, 2023
0af3ba8
copy edits
JillieBeanSim Jul 31, 2023
af9d5e8
Merge pull request #2382 from zowe/check-creds-bug
JillieBeanSim Aug 1, 2023
cd2ead8
Merge branch 'maintenance' into 2.9.2-release
JillieBeanSim Aug 1, 2023
abcf96e
Merge pull request #2393 from zowe/2.9.2-release
zFernand0 Aug 1, 2023
25dedfe
Bump version to 2.9.2 [ci skip]
zowe-robot Aug 1, 2023
42ad3df
Bump version to 2.9.3-SNAPSHOT [ci skip]
zowe-robot Aug 1, 2023
e5a6668
Merge remote-tracking branch 'origin/maintenance' into merge-maintenance
JillieBeanSim Aug 8, 2023
b2dde9d
Fix isTheia call to remove undefined reference to "this"
t1m0thyj Aug 15, 2023
d4c6eef
fix unit tests
JillieBeanSim Aug 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.10.0-SNAPSHOT",
"version": "2.9.3-SNAPSHOT",
"command": {
"version": {
"forcePublish": true,
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"vscode": "^1.53.2"
},
"dependencies": {
"@zowe/cli": "7.16.2",
"@zowe/cli": "7.16.6",
"vscode-nls": "4.1.2"
},
"devDependencies": {
Expand Down Expand Up @@ -46,11 +46,6 @@
"vscode-test": "^1.4.0",
"yarn": "1.22.19"
},
"resolutions": {
"**/json5": "^2.2.2",
"**/optionator": "^0.9.3",
"**/semver": "^7.5.2"
},
"scripts": {
"clean": "yarn workspaces run clean",
"fresh-clone": "yarn workspaces run fresh-clone && rimraf node_modules",
Expand Down
12 changes: 12 additions & 0 deletions packages/eslint-plugin-zowe-explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ All notable changes to the "eslint-plugin-zowe-explorer" package will be documen

### Bug fixes

## `2.9.2`

### New features and enhancements

### Bug fixes

## `2.9.1`

### New features and enhancements

### Bug fixes

## `2.9.0`

### New features and enhancements
Expand Down
6 changes: 6 additions & 0 deletions packages/zowe-explorer-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ All notable changes to the "zowe-explorer-api" extension will be documented in t

### Bug fixes

## `2.9.2`

### New features and enhancements

### Bug fixes

## `2.9.1`

### New features and enhancements
Expand Down
2 changes: 1 addition & 1 deletion packages/zowe-explorer-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@types/semver": "^7.5.0"
},
"dependencies": {
"@zowe/cli": "^7.16.2",
"@zowe/cli": "^7.16.6",
"semver": "^7.5.3"
},
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions packages/zowe-explorer-ftp-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ All notable changes to the "zowe-explorer-ftp-extension" extension will be docum

### Bug fixes

## `2.9.2`

### New features and enhancements

### Bug fixes

## `2.9.1`

### Bug fixes
Expand Down
11 changes: 11 additions & 0 deletions packages/zowe-explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ All notable changes to the "vscode-extension-for-zowe" extension will be documen

### Bug fixes

## `2.9.2`

### New features and enhancements

### Bug fixes

- Added jobs not found message when no results are returned from filter [#2362](https://github.com/zowe/vscode-extension-for-zowe/issues/2362)
- Fixed loop when user selects Cancel on the Check Credentials message. [#2262](https://github.com/zowe/vscode-extension-for-zowe/issues/2262)
- Fixed issue where job session nodes were not adding new job nodes when refreshed. [#2370](https://github.com/zowe/vscode-extension-for-zowe/issues/2370)
- Fixed error when listing data set members that include control characters in the name.

## `2.9.1`

### Bug fixes
Expand Down
4 changes: 4 additions & 0 deletions packages/zowe-explorer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
[![codecov](https://codecov.io/gh/zowe/vscode-extension-for-zowe/branch/main/graph/badge.svg)](https://codecov.io/gh/zowe/vscode-extension-for-zowe)
[![slack](https://img.shields.io/badge/chat-on%20Slack-blue)](https://slack.openmainframeproject.org/)

> ## With the removal of keytar shim from VS Code we will be replacing `node-keytar` with `@zowe/secrets-for-zowe-sdk` in our v2.10.0 release to avoid user interruptions
>
> ## v3 Pre-release coming soon with the removal of v1 profile support. Extenders, keep an eye on [changes affecting extenders](https://github.com/zowe/vscode-extension-for-zowe/wiki/Changes-Affecting-Extenders) for the full list of changes

## Introduction

[Zowe Explorer](https://github.com/zowe/community#zowe-explorer) is a sub-project of Zowe, focusing on modernizing the mainframe experience. [Zowe](https://www.zowe.org/) is a project hosted by the [Open Mainframe Project](https://www.openmainframeproject.org/), a [Linux Foundation](https://www.linuxfoundation.org/) project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe("Locate Tree Nodes", () => {
afterEach(screenshotIfFailed(driverFirefox));

it("should open Zowe Explorer and find the Favorites node", async () => {
const favoriteLink = await driverFirefox.getFavouritesNode();
const favoriteLink = await driverFirefox.getFavoritesNode();
expect(favoriteLink).to.equal("Favorites");
}).timeout(TIMEOUT);

Expand Down Expand Up @@ -186,7 +186,7 @@ describe("Test Adding and Removing Favorites", () => {
await driverChrome.sleepTime(SHORTSLEEPTIME);
await driverChrome.clickOnFavoriteTabInDatasets();
await driverChrome.sleepTime(SHORTSLEEPTIME);
const favoriteProfile = await driverChrome.getFavoritePrfileNameFromDatasets();
const favoriteProfile = await driverChrome.getFavoriteProfileNameFromDatasets();
expect(favoriteProfile).to.equal("TestSeleniumProfile");
});

Expand All @@ -206,7 +206,7 @@ describe("Test Adding and Removing Favorites", () => {
await driverChrome.sleepTime(SHORTSLEEPTIME);
await driverChrome.clickOnFavoriteTabInUss();
await driverChrome.sleepTime(SHORTSLEEPTIME);
const favoriteProfile = await driverChrome.getFavoritePrfileNameFromUss();
const favoriteProfile = await driverChrome.getFavoriteProfileNameFromUss();
expect(favoriteProfile).to.equal("TestSeleniumProfile");
});

Expand All @@ -226,7 +226,7 @@ describe("Test Adding and Removing Favorites", () => {
await driverChrome.sleepTime(SHORTSLEEPTIME);
await driverChrome.clickOnFavoriteTabInJobs();
await driverChrome.sleepTime(SHORTSLEEPTIME);
const favoriteProfile = await driverChrome.getFavoritePrfileNameFromJobs();
const favoriteProfile = await driverChrome.getFavoriteProfileNameFromJobs();
expect(favoriteProfile).to.equal("TestSeleniumProfile");
});

Expand Down
37 changes: 14 additions & 23 deletions packages/zowe-explorer/__tests__/__theia__/theia/Locators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

export const TheiaLocator = {
theiaUrl: "http://localhost:3000",

zoweExplorerxId: "shell-tab-plugin-view-container:zowe",
};

Expand All @@ -21,16 +20,14 @@ export const DatasetsLocators = {
datasetsPanelId: "plugin-view:zowe.ds.explorer",
datasetsAddSessionId: "zowe.ds.addSession-as-tabbar-toolbar-item",
emptyInputBoxXpath: "//*[@class='input empty']",
createNewConnectionListXpath: "//*[@class='monaco-list-row'][1]",
createNewConnectionListXpath: "//*[@class='monaco-list-row focused'][1]",
inputBoxXpath: "//*[@class='input']",
defaultDatasetsProfileId: "/iDefaultProfile",
secondDatasetProfileId: "/iTestSeleniumProfile",
favoriteTabId: "/iFavorites",
favoriteProfileInDatasetId: "/iFavorites/iTestSeleniumProfile",
defaultDatasetsProfileXpath: "(//div[contains(@id,'DefaultProfile')])[1]",
secondDatasetProfileXpath: "(//div[contains(@id,'TestSeleniumProfile')])[1]",
favoriteTabXpath: "(//div[contains(@id,'Favorites')])[1]",
favoriteProfileInDatasetXpath: "(//div[contains(@id,'Favorites') and contains(@id,'TestSeleniumProfile')])",
addToFavoriteOptionXpath: "//li[@data-command='zowe.ds.saveSearch']",
searchSymbolInFavoriteXpath: "//*[@id='/iFavorites/iTestSeleniumProfile/i']",
removeFavoriteProfileFromDatasetsOptionXpath: "//li[@data-command='zowe.ds.removeFavProfile']",
secondDatasetProfileBeforeDeletingId: "/iTestSeleniumProfile",
deleteProfileFromDatasetsXpath: "(//li[@data-command='zowe.ds.deleteProfile'])",
};

Expand All @@ -40,15 +37,13 @@ export const UssLocators = {
ussPanelId: "plugin-view:zowe.uss.explorer",
ussAddSessionId: "zowe.uss.addSession-as-tabbar-toolbar-item",
emptyInputBoxXpath: "//*[@class='input empty']",
defaultUssProfileXpath: "(//div[@id='/iDefaultProfile'])[2]",
secondUssProfileXpath: "(//div[@id='/iTestSeleniumProfile'])[2]",
favoriteTabXpath: "(//div[@id='/iFavorites'])[2]",
favoriteProfileInUssXpath: "(//div[@id='/iFavorites/iTestSeleniumProfile'])",
defaultUssProfileXpath: "(//div[contains(@id,'DefaultProfile')])[2]",
secondUssProfileXpath: "(//div[contains(@id,'TestSeleniumProfile')])[2]",
favoriteTabXpath: "(//div[contains(@id,'Favorites')])[2]",
favoriteProfileInUssXpath: "(//div[contains(@id,'Favorites') and contains(@id,'TestSeleniumProfile')])",
addToFavoriteOptionXpath: "//li[@data-command='zowe.uss.addFavorite']",
favoriteProfileInUssBeforeRemovingXpath: "(//div[@id='/iFavorites/iTestSeleniumProfile'])",
removeFavoriteProfileFromUssOptionXpath: "//li[@data-command='zowe.uss.removeFavProfile']",
hideProfileFromUssOptionXpath: "//li[@data-command='zowe.uss.removeSession']",
searchSymbolInFavoriteXpath: "//*[@id='/iFavorites/iTestSeleniumProfile/i']",
};

export const JobsLocators = {
Expand All @@ -57,18 +52,14 @@ export const JobsLocators = {
jobsPanelId: "zowe.jobs.explorer",
jobsAddSessionId: "zowe.jobs.addJobsSession-as-tabbar-toolbar-item",
emptyInputBoxXpath: "//*[@class='input empty']",
defaultJobsProfileXpath: "(//div[@id='/iDefaultProfile'])[3]",
secondJobsProfileXpath: "(//div[@id='/iTestSeleniumProfile'])[3]",
favoriteTabXpath: "(//div[@id='/iFavorites'])[3]",
favoriteTabAfterRefreshXpath: "(//div[@id='/iFavorites'])[2]",
favoriteProfileInJobsXpath: "(//div[@id='/iFavorites/iTestSeleniumProfile'])",
favoriteprofile: "(//div[@id='/iFavorites/iTestSeleniumProfile'])",
defaultJobsProfileXpath: "(//div[contains(@id,'DefaultProfile')])[3]",
secondJobsProfileXpath: "(//div[contains(@id,'TestSeleniumProfile')])[3]",
favoriteTabXpath: "(//div[contains(@id,'Favorites')])[3]",
favoriteProfileInJobsXpath: "(//div[contains(@id,'Favorites') and contains(@id,'TestSeleniumProfile')])",
addToFavoriteOptionXpath: "//li[@data-command='zowe.jobs.addFavorite']",
favoriteProfileInJobsBeforeRemovingXpath: "//div[@id='/iFavorites/iTestSeleniumProfile/iPrefix:*']",
removeFavoriteProfileFromJobsOptionXpath: "//li[@data-command='zowe.jobs.removeFavProfile']",
hideProfileFromJobsOptionXpath: "//li[@data-command='zowe.jobs.removeJobsSession']",
secondJobsProfileIdBeforeHidingXpath: "(//div[@id='/iTestSeleniumProfile'])[2]",
favoriteprofilexpath: "//div[@id='/iFavorites/iTestSeleniumProfile']",
secondJobsProfileBeforeHidingXpath: "(//div[contains(@id,'TestSeleniumProfile')])[2]",
};

export const TheiaNotificationMessages = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function clickOnZoweExplorer() {
}

export async function clickOnFavoriteTabInDatasets() {
await driverChrome.wait(until.elementLocated(By.id(DatasetsLocators.favoriteTabId)), WAITTIME).click();
await driverChrome.wait(until.elementLocated(By.xpath(DatasetsLocators.favoriteTabXpath)), WAITTIME).click();
}

export async function clickOnFavoriteTabInUss() {
Expand All @@ -54,10 +54,6 @@ export async function clickOnFavoriteTabInJobs() {
await driverChrome.wait(until.elementLocated(By.xpath(JobsLocators.favoriteTabXpath)), WAITTIME).click();
}

export async function clickOnFavoriteTabInJobsAfterRefresh() {
await driverChrome.wait(until.elementLocated(By.xpath(JobsLocators.favoriteTabAfterRefreshXpath)), WAITTIME).click();
}

export async function clickOnDatasetsTab() {
await driverChrome.findElement(By.xpath(DatasetsLocators.datasetTabXpath)).click();
}
Expand All @@ -74,22 +70,24 @@ export async function clickOnJobsTab() {
await driverChrome.findElement(By.id(JobsLocators.jobTabId)).click();
}

export async function getFavoritePrfileNameFromDatasets() {
const favoriteProfile = await driverChrome.wait(until.elementLocated(By.id(DatasetsLocators.favoriteProfileInDatasetId)), WAITTIME).getText();
export async function getFavoriteProfileNameFromDatasets() {
const favoriteProfile = await driverChrome
.wait(until.elementLocated(By.xpath(DatasetsLocators.favoriteProfileInDatasetXpath)), WAITTIME)
.getText();
return favoriteProfile;
}

export async function getFavoritePrfileNameFromUss() {
export async function getFavoriteProfileNameFromUss() {
const favoriteProfile = await driverChrome.wait(until.elementLocated(By.xpath(UssLocators.favoriteProfileInUssXpath)), WAITTIME).getText();
return favoriteProfile;
}

export async function getFavoritePrfileNameFromJobs() {
export async function getFavoriteProfileNameFromJobs() {
return driverChrome.wait(until.elementLocated(By.xpath(JobsLocators.favoriteProfileInJobsXpath)), WAITTIME).getText();
}

export async function removeFavoriteProfileFromDatasets() {
const removeFromFavorite = await driverChrome.wait(until.elementLocated(By.id(DatasetsLocators.favoriteProfileInDatasetId)), WAITTIME);
const removeFromFavorite = await driverChrome.wait(until.elementLocated(By.xpath(DatasetsLocators.favoriteProfileInDatasetXpath)), WAITTIME);
await driverChrome.actions().click(removeFromFavorite, Button.RIGHT).perform();
await driverChrome.sleep(SHORTSLEEPTIME);
await driverChrome.wait(until.elementLocated(By.xpath(DatasetsLocators.removeFavoriteProfileFromDatasetsOptionXpath)), WAITTIME).click();
Expand All @@ -98,7 +96,7 @@ export async function removeFavoriteProfileFromDatasets() {
}

export async function removeFavoriteProfileFromUss() {
const removeFromFavorite = await driverChrome.wait(until.elementLocated(By.xpath(UssLocators.favoriteProfileInUssBeforeRemovingXpath)), WAITTIME);
const removeFromFavorite = await driverChrome.wait(until.elementLocated(By.xpath(UssLocators.favoriteProfileInUssXpath)), WAITTIME);
await driverChrome.actions().click(removeFromFavorite, Button.RIGHT).perform();
await driverChrome.sleep(SHORTSLEEPTIME);
await driverChrome.wait(until.elementLocated(By.xpath(UssLocators.removeFavoriteProfileFromUssOptionXpath)), WAITTIME).click();
Expand All @@ -107,7 +105,7 @@ export async function removeFavoriteProfileFromUss() {
}

export async function removeFavoriteProfileFromJobs() {
const removeFromFavorite = await driverChrome.wait(until.elementLocated(By.xpath(JobsLocators.favoriteprofile)), WAITTIME);
const removeFromFavorite = await driverChrome.wait(until.elementLocated(By.xpath(JobsLocators.favoriteProfileInJobsXpath)), WAITTIME);
await driverChrome.actions().click(removeFromFavorite, Button.RIGHT).perform();
await driverChrome.sleep(SHORTSLEEPTIME);
await driverChrome.wait(until.elementLocated(By.xpath(JobsLocators.removeFavoriteProfileFromJobsOptionXpath)), WAITTIME).click();
Expand All @@ -116,7 +114,7 @@ export async function removeFavoriteProfileFromJobs() {
}

export async function addProfileToFavoritesInDatasets() {
const addTofavorite = await driverChrome.wait(until.elementLocated(By.id(DatasetsLocators.secondDatasetProfileId)), WAITTIME);
const addTofavorite = await driverChrome.wait(until.elementLocated(By.xpath(DatasetsLocators.secondDatasetProfileXpath)), WAITTIME);
await driverChrome.actions().click(addTofavorite, Button.RIGHT).perform();
await driverChrome.sleep(SHORTSLEEPTIME);
await driverChrome.wait(until.elementLocated(By.xpath(DatasetsLocators.addToFavoriteOptionXpath)), WAITTIME).click();
Expand Down Expand Up @@ -144,7 +142,7 @@ export async function hideProfileInUss() {
}

export async function hideProfileInJobs() {
const hideProfileFromJobs = await driverChrome.wait(until.elementLocated(By.xpath(JobsLocators.secondJobsProfileIdBeforeHidingXpath)), WAITTIME);
const hideProfileFromJobs = await driverChrome.wait(until.elementLocated(By.xpath(JobsLocators.secondJobsProfileBeforeHidingXpath)), WAITTIME);
await driverChrome.actions().click(hideProfileFromJobs, Button.RIGHT).perform();
await driverChrome.wait(until.elementLocated(By.xpath(JobsLocators.hideProfileFromJobsOptionXpath)), WAITTIME).click();
}
Expand All @@ -160,7 +158,7 @@ export async function verifyProfileIsHideInUss() {

export async function verifyProfileIsHideInJobs() {
const hideProfileFromJobs = await driverChrome
.findElements(By.xpath(JobsLocators.secondJobsProfileIdBeforeHidingXpath))
.findElements(By.xpath(JobsLocators.secondJobsProfileBeforeHidingXpath))
.then((found) => !!found.length);
if (!hideProfileFromJobs) {
return true;
Expand All @@ -170,7 +168,7 @@ export async function verifyProfileIsHideInJobs() {
}

export async function deleteDefaultProfileInDatasets() {
const profileName = await driverChrome.wait(until.elementLocated(By.id(DatasetsLocators.defaultDatasetsProfileId)), WAITTIME);
const profileName = await driverChrome.wait(until.elementLocated(By.xpath(DatasetsLocators.defaultDatasetsProfileXpath)), WAITTIME);
await driverChrome.actions().click(profileName, Button.RIGHT).perform();
await driverChrome.wait(until.elementLocated(By.xpath(DatasetsLocators.deleteProfileFromDatasetsXpath)), WAITTIME).click();
await driverChrome.sleep(SHORTSLEEPTIME);
Expand All @@ -181,7 +179,7 @@ export async function deleteDefaultProfileInDatasets() {
}

export async function deleteProfileInDatasets() {
const favprofile = await driverChrome.wait(until.elementLocated(By.id(DatasetsLocators.secondDatasetProfileBeforeDeletingId)), WAITTIME);
const favprofile = await driverChrome.wait(until.elementLocated(By.xpath(DatasetsLocators.secondDatasetProfileXpath)), WAITTIME);
await driverChrome.actions().click(favprofile, Button.RIGHT).perform();
await driverChrome.wait(until.elementLocated(By.xpath(DatasetsLocators.deleteProfileFromDatasetsXpath)), WAITTIME).click();
await driverChrome.sleep(SHORTSLEEPTIME);
Expand All @@ -192,7 +190,7 @@ export async function deleteProfileInDatasets() {
}

export async function verifyRemovedFavoriteProfileInDatasets() {
const favoriteProfile = await driverChrome.findElements(By.id(DatasetsLocators.favoriteProfileInDatasetId)).then((found) => !!found.length);
const favoriteProfile = await driverChrome.findElements(By.xpath(DatasetsLocators.favoriteProfileInDatasetXpath)).then((found) => !!found.length);
if (!favoriteProfile) {
return true;
} else {
Expand All @@ -219,7 +217,7 @@ export async function verifyRemovedFavoriteProfileInJobs() {
}

export async function verifyRemovedDefaultProfileInDataSet() {
const defaultProfile = await driverChrome.findElements(By.id(DatasetsLocators.defaultDatasetsProfileId)).then((found) => !!found.length);
const defaultProfile = await driverChrome.findElements(By.xpath(DatasetsLocators.defaultDatasetsProfileXpath)).then((found) => !!found.length);
if (!defaultProfile) {
return true;
} else {
Expand All @@ -228,7 +226,7 @@ export async function verifyRemovedDefaultProfileInDataSet() {
}

export async function verifyRemovedOtherProfileInDataSet() {
const defaultProfile = await driverChrome.findElements(By.id(DatasetsLocators.secondDatasetProfileId)).then((found) => !!found.length);
const defaultProfile = await driverChrome.findElements(By.xpath(DatasetsLocators.secondDatasetProfileXpath)).then((found) => !!found.length);
if (!defaultProfile) {
return true;
} else {
Expand Down Expand Up @@ -319,11 +317,11 @@ export async function clickOnAddSessionInDatasets() {
}

export async function getDatasetsDefaultProfilename() {
const datasetProfile = await driverChrome.wait(until.elementLocated(By.id(DatasetsLocators.defaultDatasetsProfileId)), WAITTIME).getText();
const datasetProfile = await driverChrome.wait(until.elementLocated(By.xpath(DatasetsLocators.defaultDatasetsProfileXpath)), WAITTIME).getText();
return datasetProfile;
}

export async function getDatasetsProfilename() {
const datasetProfile = await driverChrome.wait(until.elementLocated(By.id(DatasetsLocators.secondDatasetProfileId)), WAITTIME).getText();
const datasetProfile = await driverChrome.wait(until.elementLocated(By.xpath(DatasetsLocators.secondDatasetProfileXpath)), WAITTIME).getText();
return datasetProfile;
}
Loading
Loading