Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
4768edab
Commit
4768edab
authored
5 years ago
by
Alex Dusenbery
Committed by
Alex Dusenbery
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix test_lms.PayAndVerifyTest.test_enrollment_upgrade bokchoy test.
parent
5db761ed
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/test/acceptance/pages/lms/pay_and_verify.py
+10
-4
10 additions, 4 deletions
common/test/acceptance/pages/lms/pay_and_verify.py
with
10 additions
and
4 deletions
common/test/acceptance/pages/lms/pay_and_verify.py
+
10
−
4
View file @
4768edab
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment