Bok choy test for editing of content groups on Group Configuration page.
This commit is contained in:
@@ -52,7 +52,7 @@ define([
|
||||
expect(view.$('.ui-loading')).toBeVisible();
|
||||
view.render();
|
||||
expect(view.$(groupConfigItemClassName)).toExist();
|
||||
expect(view.$('.cohort-groups .no-group-configurations-content')).toExist();
|
||||
expect(view.$('.content-groups .no-group-configurations-content')).toExist();
|
||||
expect(view.$('.ui-loading')).toHaveClass('is-hidden');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -25,6 +25,16 @@ define([
|
||||
this.listenTo(this.model, 'remove', this.remove);
|
||||
},
|
||||
|
||||
className: function () {
|
||||
var index = this.model.collection.indexOf(this.model);
|
||||
|
||||
return [
|
||||
'group-configuration',
|
||||
'group-configurations-list-item',
|
||||
'group-configurations-list-item-' + index
|
||||
].join(' ');
|
||||
},
|
||||
|
||||
deleteItem: function(event) {
|
||||
if (event && event.preventDefault) { event.preventDefault(); }
|
||||
if (!this.canDelete) { return; }
|
||||
|
||||
@@ -23,9 +23,9 @@ function ($, _, gettext, BasePage, GroupConfigurationsListView, ContentGroupList
|
||||
renderPage: function() {
|
||||
var hash = this.getLocationHash();
|
||||
if (this.experimentsEnabled) {
|
||||
this.$('.experiment-groups').append(this.experimentGroupsListView.render().el);
|
||||
this.$('.wrapper-groups.experiment-groups').append(this.experimentGroupsListView.render().el);
|
||||
}
|
||||
this.$('.cohort-groups').append(this.cohortGroupsListView.render().el);
|
||||
this.$('.wrapper-groups.content-groups').append(this.cohortGroupsListView.render().el);
|
||||
this.addWindowActions();
|
||||
if (hash) {
|
||||
// Strip leading '#' to get id string to match
|
||||
|
||||
Reference in New Issue
Block a user