Merge pull request #10291 from edx/asadiqbal08/SOL-1312-solution
SOL-1312 changes
This commit is contained in:
@@ -18,7 +18,7 @@ function(_, Course, CertificateModel, SignatoryModel, CertificatesCollection, Ce
|
||||
Notification, AjaxHelpers, TemplateHelpers, ViewHelpers, ValidationHelpers, CustomMatchers) {
|
||||
'use strict';
|
||||
|
||||
var MAX_SIGNATORIES = 4;
|
||||
var MAX_SIGNATORIES = 100;
|
||||
var SELECTORS = {
|
||||
detailsView: '.certificate-details',
|
||||
editView: '.certificate-edit',
|
||||
@@ -198,7 +198,7 @@ function(_, Course, CertificateModel, SignatoryModel, CertificatesCollection, Ce
|
||||
expect(this.collection.length).toBe(1);
|
||||
});
|
||||
|
||||
it('user can only add signatories up to max 4', function() {
|
||||
it('user can only add signatories up to max 100', function() {
|
||||
for(var i = 1; i < MAX_SIGNATORIES ; i++) {
|
||||
this.view.$(SELECTORS.addSignatoryButton).click();
|
||||
}
|
||||
|
||||
@@ -12,7 +12,10 @@ define([ // jshint ignore:line
|
||||
function($, _, Backbone, gettext,
|
||||
ListItemEditorView, SignatoryModel, SignatoryEditorView) {
|
||||
'use strict';
|
||||
var MAX_SIGNATORIES_LIMIT = 4;
|
||||
|
||||
// If signatories limit is required to specific value then we can change it.
|
||||
// However, Setting this limit to 100 that will allow PMs to add as many signatories as they want.
|
||||
var MAX_SIGNATORIES_LIMIT = 100;
|
||||
var CertificateEditorView = ListItemEditorView.extend({
|
||||
tagName: 'div',
|
||||
events: {
|
||||
|
||||
Reference in New Issue
Block a user