Skip to content

Commit

Permalink
Try to fix Hide Profile tests
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj authored and JillieBeanSim committed Jul 31, 2023
1 parent 5a2c512 commit fd0d881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/zowe-explorer/__tests__/__theia__/theia/Locators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export const UssLocators = {
addToFavoriteOptionXpath: "//li[@data-command='zowe.uss.addFavorite']",
removeFavoriteProfileFromUssOptionXpath: "//li[@data-command='zowe.uss.removeFavProfile']",
hideProfileFromUssOptionXpath: "//li[@data-command='zowe.uss.removeSession']",
secondUssProfileBeforeHidingXpath: "(//div[contains(@id,'TestSeleniumProfile')])[1]",
};

export const JobsLocators = {
Expand All @@ -60,7 +59,7 @@ export const JobsLocators = {
addToFavoriteOptionXpath: "//li[@data-command='zowe.jobs.addFavorite']",
removeFavoriteProfileFromJobsOptionXpath: "//li[@data-command='zowe.jobs.removeFavProfile']",
hideProfileFromJobsOptionXpath: "//li[@data-command='zowe.jobs.removeJobsSession']",
secondJobsProfileBeforeHidingXpath: "(//div[contains(@id,'TestSeleniumProfile')])[1]",
secondJobsProfileBeforeHidingXpath: "(//div[contains(@id,'TestSeleniumProfile')])[2]",
};

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

export async function hideProfileInUss() {
const hideProfileFromUss = await driverChrome.wait(until.elementLocated(By.xpath(UssLocators.secondUssProfileBeforeHidingXpath)), WAITTIME);
const hideProfileFromUss = await driverChrome.wait(until.elementLocated(By.xpath(UssLocators.secondUssProfileXpath)), WAITTIME);
await driverChrome.actions().click(hideProfileFromUss, Button.RIGHT).perform();
await driverChrome.wait(until.elementLocated(By.xpath(UssLocators.hideProfileFromUssOptionXpath)), WAITTIME).click();
}
Expand Down

0 comments on commit fd0d881

Please sign in to comment.