mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
Fix field edition for vocabulary
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user