import {render, screen, userEvent} from 'sentry-test/reactTestingLibrary'; import {GithubFeedbackTooltip} from 'sentry/components/githubFeedbackTooltip'; describe('GithubFeedbackTooltip', function () { it('renders', async function () { render( ); const anchor = screen.getByTestId('anchor'); await userEvent.hover(anchor); // Renders custom title text expect(await screen.findByText('My custom title text')).toBeInTheDocument(); // Renders link with given href const link = screen.getByRole('link', {name: 'GitHub'}); expect(link).toBeInTheDocument(); expect(link.href).toBe('https://example.com/my-test-url'); }); });