import { render, screen } from '@testing-library/react'; import YourContributionSection from './YourContributionSection'; describe('YourContributionSection', () => { it('renders metrics correctly', () => { render( k} /> ); expect(screen.getByText('dashboard.myOrganizations')).toBeInTheDocument(); expect(screen.getByText('3')).toBeInTheDocument(); expect(screen.getByText('dashboard.myProposals')).toBeInTheDocument(); expect(screen.getByText('5')).toBeInTheDocument(); expect(screen.getByText('dashboard.myPendingProposals')).toBeInTheDocument(); expect(screen.getByText('1')).toBeInTheDocument(); }); });