chore: adds to fields test suite array collection
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user