Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

622 B
Raw Blame
import { describe, it, expect } from 'vitest';

import { flowCanvasLayoutConsts } from '@/app/builder/flow-canvas/utils/layout-consts';

describe('flowCanvasLayoutConsts', () => {
  it('keeps horizontal step labels narrower than the node center-to-center distance so adjacent labels cannot overlap', () => {
    const { stepAlongSize, spaceAlongBetweenSteps } =
      flowCanvasLayoutConsts.ORIENTATION_LAYOUT.horizontal;
    const centerToCenterDistance = stepAlongSize + spaceAlongBetweenSteps;

    expect(flowCanvasLayoutConsts.HORIZONTAL_STEP_LABEL_WIDTH).toBeLessThan(
      centerToCenterDistance,
    );
  });
});