return activation === 'true' || activation === true;
},
+ disable: function () {
+ var obj = { activation: null },
+ property = this.model.get('property');
+ obj[property] = null;
+ this.options.app.state.updateFilter(obj);
+ },
+
serializeData: function () {
return _.extend(BaseFacet.prototype.serializeData.apply(this, arguments), {
values: this.getValues(),
lib.changeWorkingDirectory('coding-rules-page-quality-profile-facet');
-casper.test.begin('coding-rules-page-quality-profile-facet', 5, function (test) {
+casper.test.begin('coding-rules-page-quality-profile-facet', 6, function (test) {
casper
.start(lib.buildUrl('coding-rules'), function () {
lib.setDefaultViewport();
test.assertSelectorContains('#coding-rules-total', '407');
test.assertExists('.js-facet[data-value="java-default-with-mojo-conventions-49307"] .js-active.facet-toggle-active');
casper.click('.js-facet[data-value="java-default-with-mojo-conventions-49307"] .js-inactive');
- lib.capture();
casper.waitForSelectorTextChange('#coding-rules-total');
})
.then(function () {
test.assertSelectorContains('#coding-rules-total', '408');
test.assertExists('.js-facet[data-value="java-default-with-mojo-conventions-49307"] .js-inactive.facet-toggle-active');
+ casper.click('[data-property="qprofile"] .js-facet-toggle');
+ lib.capture();
+ casper.waitForSelectorTextChange('#coding-rules-total');
+ })
+
+ .then(function () {
+ test.assertSelectorContains('#coding-rules-total', '609');
})
.run(function () {