mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ui_tests: fixes for issues with sending key and focus on element
Fixes 2 issues in WebUI tests. One issue is that we are unable to confirm a dialog by "Enter" keyboard - "actions.click()" helps here to get focus on the page. Second issue is probbaly related to screen resolution as we cannot click to some of the action buttons (buttons which are having issue varies). https://pagure.io/freeipa/issue/7583 Reviewed-By: Pavel Picka <ppicka@redhat.com>
This commit is contained in:
committed by
Michal Reznik (mreznik)
parent
f976f6cfd8
commit
b1f368c682
@@ -1699,6 +1699,7 @@ class UI_driver(object):
|
||||
expand.click()
|
||||
action_link = self.find("li[data-name=%s] a" % name, By.CSS_SELECTOR,
|
||||
context, strict=True)
|
||||
self.move_to_element_in_page(action_link)
|
||||
action_link.click()
|
||||
if confirm:
|
||||
self.wait(0.5) # wait for dialog
|
||||
|
||||
Reference in New Issue
Block a user