Commit a322bd5e by Eric Fischer

Regex should capture email, not password

parent 45ee2c92
......@@ -85,7 +85,7 @@ class AutoAuthPage(PageObject):
Finds and returns the username and email address of the current user.
"""
message = self.q(css='BODY').text[0].strip()
match = re.search(r'Logged in user (\S+) \(.*\) with password (\S+)', message)
match = re.search(r'Logged in user (\S+) \((.*)\).*', message)
if not match:
return None
return match.group(1), match.group(2)
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