mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ui_tests: add click_undo_button() func
Add click_undo_button() function to simplify clicking on particular`s field undo button/s. https://pagure.io/freeipa/issue/7544 Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
parent
8d508b8e95
commit
0959c47676
@ -646,6 +646,16 @@ class UI_driver(object):
|
||||
link = self.find(text, By.LINK_TEXT, parent, strict=True)
|
||||
link.click()
|
||||
|
||||
def click_undo_button(self, field, parent=None):
|
||||
"""
|
||||
Click undo button/s of particular field
|
||||
"""
|
||||
self.assert_undo_button(field)
|
||||
undo_btns = self.get_undo_buttons(field, parent)
|
||||
for btn in undo_btns:
|
||||
btn.click()
|
||||
self.assert_undo_button(field, visible=False)
|
||||
|
||||
def facet_button_click(self, name):
|
||||
"""
|
||||
Click on facet button with given name
|
||||
|
Loading…
Reference in New Issue
Block a user