import { render, screen } from '@testing-library/react';
import Shortcut from './Shortcut';
describe('Shortcut component', () => {
it('should render correctly', () => {
expect(render()).toMatchSnapshot();
});
it('should render custom i18n labels for mouse actions', () => {
render(
);
expect(screen.getByText('Survoler')).toBeInTheDocument();
expect(screen.getByText('Cliquer')).toBeInTheDocument();
expect(screen.getByText('Clic droit')).toBeInTheDocument();
expect(screen.getByText('Glisser')).toBeInTheDocument();
expect(screen.getByText('Glisser + Déposer')).toBeInTheDocument();
});
});