zzz / tests /unit /resolver /mock_output /repo /src /PullRequestViewer.test.tsx
ar08's picture
Upload 1040 files
246d201 verified
raw
history blame contribute delete
633 Bytes
import React from 'react';
import { render, screen } from '@testing-library/react';
import PullRequestViewer from './PullRequestViewer';
describe('PullRequestViewer', () => {
it('renders the component title', () => {
render(<PullRequestViewer />);
const titleElement = screen.getByText(/Pull Request Viewer/i);
expect(titleElement).toBeInTheDocument();
});
it('renders the repository select dropdown', () => {
render(<PullRequestViewer />);
const selectElement = screen.getByRole('combobox', { name: /select a repository/i });
expect(selectElement).toBeInTheDocument();
});
});