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.
31 lines
525 B
TypeScript
31 lines
525 B
TypeScript
import type { CollectionConfig } from 'payload'
|
|
|
|
import { customTabIDSlug } from '../../slugs.js'
|
|
|
|
export const CustomTabID: CollectionConfig = {
|
|
slug: customTabIDSlug,
|
|
admin: {
|
|
useAsTitle: 'id',
|
|
},
|
|
fields: [
|
|
{
|
|
type: 'tabs',
|
|
tabs: [
|
|
{
|
|
fields: [
|
|
{
|
|
name: 'id',
|
|
type: 'text',
|
|
},
|
|
],
|
|
label: 'Tab 1',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
labels: {
|
|
plural: 'Custom Tab IDs',
|
|
singular: 'Custom Tab ID',
|
|
},
|
|
}
|