mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
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:
parent
044c5c833a
commit
80733bff15
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user