Fix field edition for vocabulary

This commit is contained in:
Nicolas Le Goff
2013-10-31 14:38:35 +01:00
parent 36f7b24f26
commit 409a43db0c
3 changed files with 22 additions and 0 deletions

View File

@@ -225,6 +225,15 @@ define([
assert.isTrue(view.$('input#tag').closest(".control-group").hasClass("error"));
});
it("should uncheck vocabulary restricted if provided vocabulary is empty", function() {
var view = this.view.render();
view.$('input#vocabulary-restricted').attr("checked", true);
view.$('input#vocabulary-type option').first().attr("selected", true);
assert.isTrue(false === view.$('input#vocabulary-restricted').is(":checked"));
});
});
describe("FieldError Views", function() {