Skip to content
Snippets Groups Projects
Commit 4768edab authored by Alex Dusenbery's avatar Alex Dusenbery Committed by Alex Dusenbery
Browse files

Fix test_lms.PayAndVerifyTest.test_enrollment_upgrade bokchoy test.

parent 5db761ed
Branches
Tags
No related merge requests found
......@@ -155,8 +155,11 @@ class FakePaymentPage(PageObject):
def is_browser_on_page(self):
"""Check if a step in the payment and verification flow has loaded."""
message = self.q(css='BODY').text[0]
match = re.search('Payment page', message)
message = self.q(css='BODY').text
if not message:
return False
match = re.search('Payment page', message[0])
return True if match else False
def submit_payment(self):
......@@ -176,8 +179,11 @@ class FakeSoftwareSecureVerificationPage(PageObject):
def is_browser_on_page(self):
""" Determine if browser is on the page. """
message = self.q(css='BODY').text[0]
match = re.search('Fake Software Secure page', message)
message = self.q(css='BODY').text
if not message:
return False
match = re.search('Fake Software Secure page', message[0])
return True if match else False
def mark_approved(self):
......
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