import React from 'react'; import { render, screen } from '@testing-library/react'; import PullRequestViewer from './PullRequestViewer'; describe('PullRequestViewer', () => { it('renders the component title', () => { render(); const titleElement = screen.getByText(/Pull Request Viewer/i); expect(titleElement).toBeInTheDocument(); }); it('renders the repository select dropdown', () => { render(); const selectElement = screen.getByRole('combobox', { name: /select a repository/i }); expect(selectElement).toBeInTheDocument(); }); });