import { render, screen } from '@testing-library/react';
import { describe, expect, it } from 'vitest';
import { Button } from './Button';
import { Group } from './Group';
describe('Group', () => {
it('renders grouped controls with separators', () => {
render(
,
);
expect(screen.getByRole('group', { name: 'Actions' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'One' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Two' })).toBeInTheDocument();
});
it('supports vertical orientation', () => {
render(
,
);
expect(screen.getByTestId('group')).toHaveAttribute(
'data-orientation',
'vertical',
);
});
});