import { describe, expect, it } from 'vitest'
import { searchListRecipe } from '../screenRecipe'

describe('T01 screen recipe adoption', () => {
  it('preserves the KBX recovery and security policies as immutable metadata', () => {
    expect(searchListRecipe.id).toBe('T01')
    expect(searchListRecipe.recoveryPolicies).toEqual([
      'idle-before-first-search',
      'retain-grid-during-refresh',
      'retry-with-search-context',
      'partial-bulk-result',
    ])
    expect(searchListRecipe.securityPolicies).toContain('masked-sensitive-cells')
    expect(Object.isFrozen(searchListRecipe)).toBe(true)
  })
})
