mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
ui_tests: test cancel and delete without button
Add "confirm_btn" to cancel dialog and if "None" return for confirmation with "Enter" key. https://pagure.io/freeipa/issue/7441 Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
parent
553183944a
commit
16083eb9b5
@ -1072,7 +1072,7 @@ class UI_driver(object):
|
||||
|
||||
def delete_record(
|
||||
self, pkeys, fields=None, parent=None, table_name=None,
|
||||
facet_btn='remove'):
|
||||
facet_btn='remove', confirm_btn='ok'):
|
||||
"""
|
||||
Delete records with given pkeys in currently opened search table.
|
||||
"""
|
||||
@ -1097,7 +1097,9 @@ class UI_driver(object):
|
||||
self.facet_button_click(facet_btn)
|
||||
if fields:
|
||||
self.fill_fields(fields)
|
||||
self.dialog_button_click('ok')
|
||||
if not confirm_btn:
|
||||
return
|
||||
self.dialog_button_click(confirm_btn)
|
||||
self.wait_for_request(n=2)
|
||||
self.wait()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user