From 058fb1ba0ec654345a1583a17f29cd563bc99fa4 Mon Sep 17 00:00:00 2001 From: Jan Jasek Date: Thu, 17 Oct 2024 16:18:32 +0200 Subject: [PATCH] pytest-based tests add fix more specific css selector Insufficiently specified selector causes issue in case when the tooltip of flavor for instance is displayed Change-Id: Ibd1f696f279bab240e6e3cc216a51783a5f3ddda --- openstack_dashboard/test/selenium/widgets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_dashboard/test/selenium/widgets.py b/openstack_dashboard/test/selenium/widgets.py index d73837be58..e2a060033d 100644 --- a/openstack_dashboard/test/selenium/widgets.py +++ b/openstack_dashboard/test/selenium/widgets.py @@ -93,7 +93,8 @@ def available_elements(driver, resource_type, name): except (exceptions.NoSuchElementException): pass finally: - return driver.find_elements_by_css_selector('table tr td:nth-child(2)') + return driver.find_elements_by_css_selector( + 'table tr td:nth-child(2) a') def get_table_status(driver, resource_type, name, sorting=False):