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
4efe4ecd
Commit
4efe4ecd
authored
Oct 09, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add acceptance tests.
parent
115ccf87
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletions
+18
-1
lms/djangoapps/courseware/features/certificates.feature
+11
-0
lms/djangoapps/courseware/features/certificates.py
+6
-0
lms/templates/dashboard/dashboard_course_listing.html
+1
-1
No files found.
lms/djangoapps/courseware/features/certificates.feature
View file @
4efe4ecd
...
...
@@ -70,3 +70,14 @@ Feature: LMS.Verified certificates
And
the course has an honor mode
When
I give a reason why I cannot pay
Then
I should see the course on my dashboard
Scenario
:
The upsell offer is on the dashboard if I am auditing.
Given
I am logged in
When
I select the audit track
And
I navigate to my dashboard
Then
I see the upsell link on my dashboard
Scenario
:
I
can take the upsell offer and be registered for a verified course
Given
I am logged in
And
I select the audit track
And
I navigate to my dashboard
lms/djangoapps/courseware/features/certificates.py
View file @
4efe4ecd
...
...
@@ -221,6 +221,12 @@ def see_the_course_on_my_dashboard(step):
assert
world
.
is_css_present
(
course_link_css
)
@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"'
assert
world
.
is_css_present
(
course_link_css
)
@step
(
u'I see that I am on the verified track'
)
def
see_that_i_am_on_the_verified_track
(
step
):
id_verified_css
=
'li.course-item article.course.verified'
...
...
lms/templates/dashboard/dashboard_course_listing.html
View file @
4efe4ecd
...
...
@@ -125,7 +125,7 @@
</section>
%if enrollment.mode != 'verified' and 'verified' in course_modes:
<div>
<div
class=
'verified-upsell'
>
<a
href=
"${reverse('course_modes_choose', kwargs={'course_id': course.id})}?upgrade=True"
>
${_("Get a verified certificate for this course!")}
</a>
%if course_modes['verified'].expiration_date:
<
%
days_left =
(course_modes['verified'].expiration_date
-
date
.
today
()).
days
%
>
...
...
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