From 80733bff15a764bab45f5a9b468072e9636ef1d3 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 31 Jul 2014 09:56:48 +0200 Subject: [PATCH] webui-ci: fix reset password check After login, CI checks if password needs a reset by checking if reset password fields are displayed. This check failed since login facet was removed from DOM after successful auth. Weakening the selector fixes it. Reviewed-By: Petr Viktorin --- ipatests/test_webui/ui_driver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ipatests/test_webui/ui_driver.py b/ipatests/test_webui/ui_driver.py index bc3982bb8..e223b962d 100644 --- a/ipatests/test_webui/ui_driver.py +++ b/ipatests/test_webui/ui_driver.py @@ -368,9 +368,9 @@ class UI_driver(object): self.wait_for_request(n=2) # reset password if needed - newpw_tb = self.find("//input[@type='password'][@name='new_password']", 'xpath', auth, strict=True) - verify_tb = self.find("//input[@type='password'][@name='verify_password']", 'xpath', auth, strict=True) - if newpw_tb.is_displayed(): + newpw_tb = self.find("//input[@type='password'][@name='new_password']", 'xpath', auth) + verify_tb = self.find("//input[@type='password'][@name='verify_password']", 'xpath', auth) + if newpw_tb and newpw_tb.is_displayed(): newpw_tb.send_keys(new_password) verify_tb.send_keys(new_password) verify_tb.send_keys(Keys.RETURN)