From 6c14f604912436fa2a2667c5b7942121e2328807 Mon Sep 17 00:00:00 2001 From: Pallav Gupta Date: Sat, 7 Sep 2019 21:38:27 +0530 Subject: Fix navigation hang issue This PS solves navigation hang issue when previously selected element text value is empty. This normally occurs when second-level menu is already collapsed so no need to collapse it again. Change-Id: I86aee44c34ec03718f746d786a678bca907e933c --- openstack_dashboard/test/integration_tests/regions/menus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openstack_dashboard') diff --git a/openstack_dashboard/test/integration_tests/regions/menus.py b/openstack_dashboard/test/integration_tests/regions/menus.py index 69d2ea39f..1d5325c26 100644 --- a/openstack_dashboard/test/integration_tests/regions/menus.py +++ b/openstack_dashboard/test/integration_tests/regions/menus.py @@ -126,7 +126,7 @@ class NavigationAccordionRegion(baseregion.BaseRegion): if get_selected_func is not None: selected_item = get_selected_func() if selected_item: - if text != selected_item.text: + if text != selected_item.text and selected_item.text: # In case different item was chosen previously, collapse # it. Otherwise selenium will complain with # MoveTargetOutOfBoundsException -- cgit v1.2.1