mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix test_arbitrary_certificates for Web UI
- fix selector for "Add" button in the certificate dialog - specify selector for the certificate dialog Ticket: https://pagure.io/freeipa/issue/7843 Reviewed-By: Sergey Orlov <sorlov@redhat.com>
This commit is contained in:
@@ -268,11 +268,11 @@ class test_host(host_tasks):
|
||||
|
||||
# add certificate
|
||||
self.button_click('add', parents_css_sel="div[name='certificate']")
|
||||
self.assert_dialog()
|
||||
self.assert_dialog('cert-add-dialog')
|
||||
|
||||
cert = generate_certificate(self.pkey)
|
||||
self.fill_textarea('new_cert', cert)
|
||||
self.dialog_button_click('add')
|
||||
self.dialog_button_click('ok')
|
||||
|
||||
self.assert_visible("div.certificate-widget")
|
||||
|
||||
|
@@ -303,9 +303,9 @@ class test_service(sevice_tasks):
|
||||
|
||||
# add certificate
|
||||
self.button_click('add', parents_css_sel="div[name='certificate']")
|
||||
self.assert_dialog()
|
||||
self.assert_dialog('cert-add-dialog')
|
||||
self.fill_textarea('new_cert', cert)
|
||||
self.dialog_button_click('add')
|
||||
self.dialog_button_click('ok')
|
||||
|
||||
self.assert_visible(cert_widget_sel)
|
||||
|
||||
|
Reference in New Issue
Block a user