feat(cms): add network page video upload

This commit is contained in:
syntaxbullet
2026-07-31 15:08:34 +02:00
parent ab47571139
commit e3c47c4500
11 changed files with 366 additions and 22 deletions

View File

@@ -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')
})
})