mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-25 15:46:30 -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(
|
def delete_record(
|
||||||
self, pkeys, fields=None, parent=None, table_name=None,
|
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.
|
Delete records with given pkeys in currently opened search table.
|
||||||
"""
|
"""
|
||||||
@ -1097,7 +1097,9 @@ class UI_driver(object):
|
|||||||
self.facet_button_click(facet_btn)
|
self.facet_button_click(facet_btn)
|
||||||
if fields:
|
if fields:
|
||||||
self.fill_fields(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_for_request(n=2)
|
||||||
self.wait()
|
self.wait()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user