Commit 10d4d0ba by asadiqbal

SOL-1035

parent 0e3be9de
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment