From d452e45ff0e4293aa835e57c3d4dce82956e4baa Mon Sep 17 00:00:00 2001 From: Serhii Tsymbaliuk Date: Mon, 11 May 2020 10:59:20 +0200 Subject: [PATCH] WebUI tests: Change navigation tests to find menu items using data-name instead of href Since menu pseudo-links was replaced with real one, navigation tests must be changed to not use href for searching items. Ticket: https://pagure.io/freeipa/issue/7137 Signed-off-by: Serhii Tsymbaliuk Reviewed-By: Petr Vobornik --- ipatests/test_webui/ui_driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipatests/test_webui/ui_driver.py b/ipatests/test_webui/ui_driver.py index dc02a0eaa..4686a7d4b 100644 --- a/ipatests/test_webui/ui_driver.py +++ b/ipatests/test_webui/ui_driver.py @@ -516,7 +516,7 @@ class UI_driver: parent = parts[0:-1] self.navigate_by_menu('/'.join(parent), complete) - s = ".navbar a[href='#%s']" % item + s = ".navbar li[data-name='%s'] a" % item link = self.find(s, By.CSS_SELECTOR, strict=True) assert link.is_displayed(), 'Navigation link is not displayed: %s' % item link.click()