import { describe, expect, it } from 'vitest'

import { PRODUCT_NAV_SECTIONS } from '../navigation/product-ia'

const navIds = PRODUCT_NAV_SECTIONS.flatMap(section => section.items.map(item => item.id))

describe('product IA navigation', () => {
  it('keeps secondary operational routes visible in the canonical nav map', () => {
    expect(navIds).toEqual(expect.arrayContaining([
      'awooop-runs',
      'awooop-approvals',
      'awooop-contracts',
      'alerts',
      'reports',
      'terminal',
      'classic',
    ]))
  })

  it('keeps IwoooS related security routes integrated instead of removing them', () => {
    expect(navIds).toEqual(expect.arrayContaining([
      'iwooos-security',
      'iwooos-security-compliance',
      'governance-security',
    ]))
  })
})
