mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
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 <stsymbal@redhat.com> Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
parent
b25bccc59a
commit
d452e45ff0
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user