chore: adds to fields test suite array collection

This commit is contained in:
Jessica Chowdhury
2025-02-26 13:39:33 +00:00
parent 7d36abc660
commit b4189a5913

View File

@@ -260,6 +260,42 @@ const ArrayFields: CollectionConfig = {
},
],
},
{
name: 'nestedArrayWithLabels',
type: 'array',
labels: {
singular: 'Nested Array With Labels',
plural: 'Nested Arrays With Labels',
},
fields: [
{
name: 'firstChildArray',
type: 'array',
label: 'First Child Array Label',
fields: [
{
name: 'secondChildArray',
type: 'array',
label: 'Second Child Array Label',
fields: [
{
name: 'childWithoutLabel',
type: 'array',
fields: [
{
name: 'text',
label: 'Custom Text Label',
type: 'text',
required: true,
},
],
},
],
},
],
},
],
},
],
slug: arrayFieldsSlug,
versions: true,