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

import workflowRoutes from '../routes/modules/workflow';

describe('workflow design route', () => {
  it('uses the authenticated standalone shell without exposing a menu or tab', () => {
    const designRoute = workflowRoutes.find(
      (route) => route.name === 'WorkflowDesign',
    );

    expect(designRoute).toBeDefined();
    expect(designRoute?.path).toBe('/ai/workflow/design');
    expect(designRoute?.meta).toMatchObject({
      activePath: '/ai/workflow',
      hideInBreadcrumb: true,
      hideInMenu: true,
      hideInTab: true,
      noBasicLayout: true,
    });
    expect(designRoute?.meta?.ignoreAccess).not.toBe(true);
    expect(designRoute?.component).toBeTypeOf('function');
  });
});
