diff options
author | Zuul <zuul@review.opendev.org> | 2021-08-30 11:35:56 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-08-30 11:35:56 +0000 |
commit | 75e7d66b8e6a972de4bf7814859465e8b391913b (patch) | |
tree | a7dd76552a68cb5af7a3c196b76b7b2c3f6bb876 /openstack_dashboard | |
parent | 1800750804502adf9ff31366daa987aeb9acba31 (diff) | |
parent | 3230e1fb15789238601da44b38b45a486a0dcb81 (diff) | |
download | horizon-75e7d66b8e6a972de4bf7814859465e8b391913b.tar.gz |
Merge "Changes for tacker-horizon integration tests"
Diffstat (limited to 'openstack_dashboard')
-rw-r--r-- | openstack_dashboard/test/integration_tests/regions/menus.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/openstack_dashboard/test/integration_tests/regions/menus.py b/openstack_dashboard/test/integration_tests/regions/menus.py index 5dc9e83c4..0e62c9782 100644 --- a/openstack_dashboard/test/integration_tests/regions/menus.py +++ b/openstack_dashboard/test/integration_tests/regions/menus.py @@ -149,8 +149,20 @@ class NavigationAccordionRegion(baseregion.BaseRegion): else: is_already_within_required_item = True + # In case menu item is collapsed, then below code detects the same + # and disable is_already_within_required_item flag. + # For instance, in case of tacker-horizon, selenium report an + # exception ElementNotInteractableException while opening pages + # under 'NFV Orchestration' panel group. This error occurs when + # element is not clickable or it is not visible yet. + # The panel group 'NFV Orchestration' is never clicked/open hence + # requested pages are not visible/clickable. + item = self._get_item(text, loc_craft_func, src_elem) + if "collapsed" == item.get_attribute( + 'class') and is_already_within_required_item is True: + is_already_within_required_item = False + if not is_already_within_required_item: - item = self._get_item(text, loc_craft_func, src_elem) item.click() if get_selected_func is not None: self._wait_until_transition_ends( |