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 <pviktori@redhat.com>
This commit is contained in:
Petr Vobornik 2014-07-31 09:56:48 +02:00 committed by Petr Viktorin
parent 044c5c833a
commit 80733bff15

View File

@ -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)