Files
2024-02-15 17:01:50 +00:00

28 lines
957 B
TypeScript

import {renderWithOnboardingLayout} from 'sentry-test/onboarding/renderWithOnboardingLayout';
import {screen} from 'sentry-test/reactTestingLibrary';
import {textWithMarkupMatcher} from 'sentry-test/utils';
import docs from './pyramid';
describe('aiohttp onboarding docs', function () {
it('renders doc correctly', function () {
renderWithOnboardingLayout(docs);
// Renders main headings
expect(screen.getByRole('heading', {name: 'Install'})).toBeInTheDocument();
expect(screen.getByRole('heading', {name: 'Configure SDK'})).toBeInTheDocument();
expect(screen.getByRole('heading', {name: 'Verify'})).toBeInTheDocument();
// Renders install instructions
expect(
screen.getByText(textWithMarkupMatcher(/pip install --upgrade sentry-sdk/))
).toBeInTheDocument();
});
it('renders without performance monitoring', function () {
renderWithOnboardingLayout(docs, {
selectedProducts: [],
});
});
});