WebUI tests: Fix timeout issues for reset password tests

- Increase wait timeout after password reset
- Wait for server response after login in TestLoginScreen.test_reset_password_and_login_view

Ticket: https://pagure.io/freeipa/issue/8012

Signed-off-by: Serhii Tsymbaliuk <stsymbal@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Serhii Tsymbaliuk 2019-07-18 13:07:15 +02:00
parent b7ad11572d
commit 6316a00632
No known key found for this signature in database
GPG Key ID: 632C7F5C1BC85519

View File

@ -157,7 +157,7 @@ class TestLoginScreen(UI_driver):
new_pass_field.send_keys(new_password)
verify_pass_field.send_keys(new_password)
verify_pass_field.send_keys(Keys.RETURN)
self.wait()
self.wait(0.5)
self.assert_notification(assert_text='Password change complete',
link_text=link_text, link_url=link_url)
@ -369,6 +369,7 @@ class TestLoginScreen(UI_driver):
# check click on 'Cancel' button
self.check_cancel()
self.button_click_on_login_screen('login')
self.wait_for_request()
# check if user is not logged
assert not self.logged_in()