Commit 0f2a9eff authored by Florian Duguet's avatar Florian Duguet Committed by Romain Bignon

[amazon] change forgotten WRONGPASS_MESSAGES attribute

Closes: 38488@sibi
parent 497d4f36
......@@ -175,7 +175,7 @@ class AmazonBrowser(LoginBrowser, StatesMixin):
self.handle_captcha(captcha)
else:
msg = self.page.get_error_message()
assert self.WRONGPASS_MESSAGE in msg, msg
assert any(wrongpass_message in msg for wrongpass_message in self.WRONGPASS_MESSAGES), msg
raise BrowserIncorrectPassword(msg)
def is_login(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment