check if the password rotation has been succeed
This commit is contained in:
parent
8932919f1e
commit
65b9913fef
1 changed files with 5 additions and 0 deletions
|
|
@ -78,6 +78,11 @@ class BNPorc(BaseBrowser):
|
||||||
assert self.is_on_page(pages.ChangePasswordPage)
|
assert self.is_on_page(pages.ChangePasswordPage)
|
||||||
|
|
||||||
self.page.change_password(self.password, new_password)
|
self.page.change_password(self.password, new_password)
|
||||||
|
|
||||||
|
if not self.is_on_page(pages.ConfirmPage):
|
||||||
|
self.logger.error('Oops, unable to change password')
|
||||||
|
return
|
||||||
|
|
||||||
self.password, self.rotating_password = (new_password, self.password)
|
self.password, self.rotating_password = (new_password, self.password)
|
||||||
|
|
||||||
if self.password_changed_cb:
|
if self.password_changed_cb:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue