diff --git a/test/ArrayField_test.js b/test/ArrayField_test.js
index 299b670904..d111af65af 100644
--- a/test/ArrayField_test.js
+++ b/test/ArrayField_test.js
@@ -64,6 +64,16 @@ describe("ArrayField", () => {
expect(description.id).eql("root__description");
});
+ it("should render a hidden list", () => {
+ const { node } = createFormComponent({
+ schema,
+ uiSchema: {
+ "ui:widget": "hidden",
+ },
+ });
+ expect(node.querySelector("div.hidden > fieldset")).to.exist;
+ });
+
it("should render a customized title", () => {
const CustomTitleField = ({ title }) =>
{title}
;
diff --git a/test/ObjectField_test.js b/test/ObjectField_test.js
index 2e115813d6..c9e83611b3 100644
--- a/test/ObjectField_test.js
+++ b/test/ObjectField_test.js
@@ -54,6 +54,16 @@ describe("ObjectField", () => {
expect(legend.id).eql("root__title");
});
+ it("should render a hidden object", () => {
+ const { node } = createFormComponent({
+ schema,
+ uiSchema: {
+ "ui:widget": "hidden",
+ },
+ });
+ expect(node.querySelector("div.hidden > fieldset")).to.exist;
+ });
+
it("should render a customized title", () => {
const CustomTitleField = ({ title }) => {title}
;