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.
22 lines
358 B
TypeScript
22 lines
358 B
TypeScript
import type { CollectionConfig } from 'payload'
|
|
|
|
import { customIDSlug } from '../../slugs.js'
|
|
|
|
export const CustomID: CollectionConfig = {
|
|
slug: customIDSlug,
|
|
versions: true,
|
|
admin: {
|
|
useAsTitle: 'id',
|
|
},
|
|
fields: [
|
|
{
|
|
name: 'id',
|
|
type: 'text',
|
|
},
|
|
],
|
|
labels: {
|
|
plural: 'Custom IDs',
|
|
singular: 'Custom ID',
|
|
},
|
|
}
|