test_webui: test_hostgroup: Wait for modal dialog to appear

Modal dialog transition is currently set to 300ms, we have to wait
for it to appear in order to interact with it. Double that time is a
safe value.

Resolves: https://pagure.io/freeipa/issue/8684

Signed-off-by: Michal Polovka <mpolovka@redhat.com>
Reviewed-By: Michal Polovka <mpolovka@redhat.com>
Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com>
This commit is contained in:
Michal Polovka 2021-02-04 08:29:13 +01:00
parent 8082a2d9eb
commit d0269f2367
No known key found for this signature in database
GPG Key ID: 0F9B8D77BCABF90A

View File

@ -278,6 +278,7 @@ class test_hostgroup(UI_driver):
assert hostgroup.DESCRIPTION_ERROR_DIALOG in \
self.get_last_error_dialog().text
self.dialog_button_click('cancel')
self.wait(0.6) # wait for modal dialog to appear
self.dialog_button_click('cancel')
# duplicate