Skip to content

Commit

Permalink
Merge pull request #9685 from petr-balogh/fix-performance-profile-ui-…
Browse files Browse the repository at this point in the history
…deployment-for-4.16

Fix UI deployment in 4.16 of performance profiles
  • Loading branch information
petr-balogh authored Apr 17, 2024
2 parents cce65cc + d35b006 commit 04a7745
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions ocs_ci/ocs/ui/base_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def _do_click(_locator, _timeout=30, _enable_screenshot=False, _copy_dom=False):
# appears due to JS graphics on the page: one element overlapping another, or dynamic graphics in progress
logger.info("ElementClickInterceptedException, try click again")
take_screenshot("ElementClickInterceptedException")
self.copy_dom()
time.sleep(5)
_do_click(locator, timeout, enable_screenshot, copy_dom)

Expand Down
16 changes: 16 additions & 0 deletions ocs_ci/ocs/ui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,22 @@
"//*[@class='pf-v5-c-select dropdown--full-width']",
By.XPATH,
),
"drop_down_performance": (
"//*[@class='pf-v5-c-select odf-configure-performance__selector pf-v5-u-mb-md']",
By.XPATH,
),
"lean_mode": (
"//span[@class='pf-v5-c-select__menu-item-main' and contains(text(), 'Lean mode')]",
By.XPATH,
),
"balanced_mode": (
"//span[@class='pf-v5-c-select__menu-item-main' and contains(text(), 'Balanced mode')]",
By.XPATH,
),
"performance_mode": (
"//span[@class='pf-v5-c-select__menu-item-main' and contains(text(), 'Performance mode')]",
By.XPATH,
),
}

generic_locators = {
Expand Down

0 comments on commit 04a7745

Please sign in to comment.