Although we have a dedicated e2e test suite for custom IDs, tests for custom unnamed tab and row IDs were still located within the admin test suite. This consolidates these tests into the appropriate test suite as expected.
26 lines
430 B
TypeScript
26 lines
430 B
TypeScript
import type { CollectionConfig } from 'payload'
|
|
|
|
import { customRowIDSlug } from '../../slugs.js'
|
|
|
|
export const CustomRowID: CollectionConfig = {
|
|
slug: customRowIDSlug,
|
|
admin: {
|
|
useAsTitle: 'id',
|
|
},
|
|
fields: [
|
|
{
|
|
type: 'row',
|
|
fields: [
|
|
{
|
|
name: 'id',
|
|
type: 'text',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
labels: {
|
|
plural: 'Custom Row IDs',
|
|
singular: 'Custom Row ID',
|
|
},
|
|
}
|