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
10d4d0ba
Commit
10d4d0ba
authored
Aug 04, 2015
by
asadiqbal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SOL-1035
parent
0e3be9de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
cms/static/js/certificates/models/signatory.js
+3
-3
cms/static/js/certificates/spec/views/certificate_details_spec.js
+3
-5
No files found.
cms/static/js/certificates/models/signatory.js
View file @
10d4d0ba
...
...
@@ -14,9 +14,9 @@ function(_, str, Backbone, BackboneRelational, gettext) {
var
Signatory
=
Backbone
.
RelationalModel
.
extend
({
idAttribute
:
"id"
,
defaults
:
{
name
:
'
Name of the signatory
'
,
title
:
'
Title of the signatory
'
,
organization
:
'
Organization of the signatory
'
,
name
:
''
,
title
:
''
,
organization
:
''
,
signature_image_path
:
''
},
...
...
cms/static/js/certificates/spec/views/certificate_details_spec.js
View file @
10d4d0ba
...
...
@@ -164,11 +164,9 @@ function(_, Course, CertificatesCollection, CertificateModel, CertificateDetails
it
(
'displays certificate signatories details'
,
function
(){
this
.
view
.
$
(
'.show-details'
).
click
();
expect
(
this
.
view
.
$
(
SELECTORS
.
signatory_name_value
)).
toContainText
(
/^
[
A-Za-z
\s]{10,40}
/
);
expect
(
this
.
view
.
$
(
SELECTORS
.
signatory_title_value
)).
toContainText
(
'Title of the signatory'
);
expect
(
this
.
view
.
$
(
SELECTORS
.
signatory_organization_value
)
).
toContainText
(
'Organization of the signatory'
);
expect
(
this
.
view
.
$
(
SELECTORS
.
signatory_name_value
)).
toContainText
(
''
);
expect
(
this
.
view
.
$
(
SELECTORS
.
signatory_title_value
)).
toContainText
(
''
);
expect
(
this
.
view
.
$
(
SELECTORS
.
signatory_organization_value
)).
toContainText
(
''
);
});
it
(
'supports in-line editing of signatory information'
,
function
()
{
...
...
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