Primary}
secondaryCta={}
/>,
);
const primary = getByTestId('primary');
const secondary = getByTestId('secondary');
expect(primary).toBeInTheDocument();
expect(secondary).toBeInTheDocument();
// Both CTAs share the same flex/cluster parent
expect(primary.parentElement).toBe(secondary.parentElement);
expect(primary.parentElement?.className).toContain('flex');
});
it('omits subline div when subline prop not provided', () => {
const { container } = render(
,
);
// No element should be rendered because there's no subline
const paragraphs = container.querySelectorAll('p');
expect(paragraphs.length).toBe(0);
});
});