Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
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
d4f359d4
Commit
d4f359d4
authored
8 years ago
by
Mushtaq Ali
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #13013 from edx/mushtaq/ecom4926-unactivated-user-msg
Show user activation message if he has activation incomplete.
parents
893d1f5d
e58813be
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/static/js/spec/verify_student/make_payment_step_view_spec.js
+35
-0
35 additions, 0 deletions
...tic/js/spec/verify_student/make_payment_step_view_spec.js
lms/templates/verify_student/make_payment_step.underscore
+1
-1
1 addition, 1 deletion
lms/templates/verify_student/make_payment_step.underscore
with
36 additions
and
1 deletion
lms/static/js/spec/verify_student/make_payment_step_view_spec.js
+
35
−
0
View file @
d4f359d4
...
...
@@ -142,6 +142,41 @@ define([
expectPaymentSubmitted
(
view
,
{
foo
:
'
bar
'
}
);
});
it
(
'
view containing verification msg when verification deadline is set and user is active
'
,
function
()
{
var
verificationDeadlineDateFormat
=
'
Aug 14, 2016 at 23:59 UTC
'
;
createView
({
userEmail
:
'
test@example.com
'
,
requirements
:
{
isVisible
:
true
},
verificationDeadline
:
verificationDeadlineDateFormat
,
isActive
:
true
});
// Verify user does not get user activation message when he is already activated.
expect
(
$
(
'
p.instruction-info:contains("test@example.com")
'
).
length
).
toEqual
(
0
);
// Verify user gets verification message.
expect
(
$
(
'
p.instruction-info:contains("You can pay now even if you don
\'
t have
'
+
'
the following items available, but you will need to have these by
'
+
verificationDeadlineDateFormat
+
'
to qualify to earn a Verified Certificate.")
'
).
length
).
toEqual
(
1
);
});
it
(
'
view containing user email when verification deadline is set and user is not active
'
,
function
()
{
createView
({
userEmail
:
'
test@example.com
'
,
requirements
:
{
isVisible
:
true
},
verificationDeadline
:
true
,
isActive
:
false
});
// Verify un-activated user gets activation message.
expect
(
$
(
'
p.instruction-info:contains("test@example.com")
'
).
length
).
toEqual
(
1
);
});
it
(
'
view containing user email
'
,
function
()
{
createView
({
userEmail
:
'
test@example.com
'
,
requirements
:
{
isVisible
:
true
},
isActive
:
false
});
expect
(
$
(
'
p.instruction-info:contains("test@example.com")
'
).
length
).
toEqual
(
1
);
...
...
This diff is collapsed.
Click to expand it.
lms/templates/verify_student/make_payment_step.underscore
+
1
−
1
View file @
d4f359d4
...
...
@@ -30,7 +30,7 @@
<div class="instruction <% if ( !upgrade && isActive ) { %>center-col<% } %>">
<% if ( _.some( requirements, function( isVisible ) { return isVisible; } ) ) { %>
<p class="instruction-info">
<% if ( verificationDeadline ) { %>
<% if ( verificationDeadline
&& isActive
) { %>
<%- _.sprintf(
gettext( "You can pay now even if you don't have the following items available, but you will need to have these by %(date)s to qualify to earn a Verified Certificate." ),
{ date: verificationDeadline }
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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