made is_browser_on_page actually check for the right page in AutoAuthPage
This commit is contained in:
@@ -65,7 +65,9 @@ class AutoAuthPage(PageObject):
|
||||
return url
|
||||
|
||||
def is_browser_on_page(self):
|
||||
return True
|
||||
message = self.q(css='BODY').text[0]
|
||||
match = re.search(r'Logged in user ([^$]+) with password ([^$]+) and user_id ([^$]+)$', message)
|
||||
return True if match else False
|
||||
|
||||
def get_user_id(self):
|
||||
"""
|
||||
|
||||
@@ -65,7 +65,9 @@ class AutoAuthPage(PageObject):
|
||||
return url
|
||||
|
||||
def is_browser_on_page(self):
|
||||
return True
|
||||
message = self.q(css='BODY').text[0]
|
||||
match = re.search(r'Logged in user ([^$]+) with password ([^$]+) and user_id ([^$]+)$', message)
|
||||
return True if match else False
|
||||
|
||||
def get_user_id(self):
|
||||
message = self.q(css='BODY').text[0].strip()
|
||||
|
||||
Reference in New Issue
Block a user