Merge pull request #9185 from edx/asadiqbal08/SOL-1035
asadiqbal08/SOL-1035: Signatory fields should use placeholders and not text values
This commit is contained in:
@@ -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: ''
|
||||
},
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user