feat(cms): add network page video upload
This commit is contained in:
@@ -99,6 +99,11 @@ describe('Payload field inventory', () => {
|
||||
'pressIndex.events.statusLabels',
|
||||
'pressIndex.downloads.contactName',
|
||||
'netzwerk.jury.members',
|
||||
'netzwerk.patronage.greetingVideo',
|
||||
'netzwerk.patronage.greetingVideoButtonLabel',
|
||||
'netzwerk.patronage.greetingVideoTitle',
|
||||
'netzwerk.patronage.greetingVideoDescription',
|
||||
'netzwerk.patronage.greetingVideoCloseLabel',
|
||||
'netzwerk.partners.tiers',
|
||||
'netzwerk.partners.modal.websiteLabel',
|
||||
'netzwerk.sponsoringForm.steps',
|
||||
@@ -130,4 +135,19 @@ describe('Payload field inventory', () => {
|
||||
maxRows: 2,
|
||||
})
|
||||
})
|
||||
|
||||
it('limits the Netzwerk greeting upload to video media', () => {
|
||||
const field = findField(netzwerkFields, 'netzwerk.patronage.greetingVideo')
|
||||
|
||||
expect(field).toMatchObject({
|
||||
type: 'upload',
|
||||
relationTo: 'media',
|
||||
filterOptions: {
|
||||
mimeType: {
|
||||
contains: 'video',
|
||||
},
|
||||
},
|
||||
})
|
||||
expect(field).not.toHaveProperty('defaultValue')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user