Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
90ad5743
Commit
90ad5743
authored
Oct 25, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up acceptance tests for upsell.
LMS-1127
parent
23762a15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lms/djangoapps/courseware/features/certificates.py
+6
-3
No files found.
lms/djangoapps/courseware/features/certificates.py
View file @
90ad5743
...
...
@@ -6,6 +6,8 @@ from lettuce.django import django_url
from
course_modes.models
import
CourseMode
from
nose.tools
import
assert_equal
UPSELL_LINK_CSS
=
'.message-upsell a.action-upgrade[href*="edx/999/Certificates"]'
def
create_cert_course
():
world
.
clear_courses
()
org
=
'edx'
...
...
@@ -249,19 +251,20 @@ def see_the_course_on_my_dashboard(step):
@step
(
u'I see the upsell link on my dashboard'
)
def
see_upsell_link_on_my_dashboard
(
step
):
course_link_css
=
'div.verified-upsell a[href*="edx/999/Certificates"'
course_link_css
=
UPSELL_LINK_CSS
assert
world
.
is_css_present
(
course_link_css
)
@step
(
u'I do not see the upsell link on my dashboard'
)
def
see_upsell_link_on_my_dashboard
(
step
):
course_link_css
=
'div.verified-upsell a[href*="edx/999/Certificates"'
course_link_css
=
UPSELL_LINK_CSS
assert
not
world
.
is_css_present
(
course_link_css
)
@step
(
u'I select the upsell link on my dashboard'
)
def
see_upsell_link_on_my_dashboard
(
step
):
world
.
css_click
(
'div.verified-upsell a[href*="edx/999/Certificates"'
)
course_link_css
=
UPSELL_LINK_CSS
world
.
css_click
(
course_link_css
)
@step
(
u'I see that I am on the verified track'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment