mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
22 lines
813 B
TypeScript
22 lines
813 B
TypeScript
import {renderWithOnboardingLayout} from 'sentry-test/onboarding/renderWithOnboardingLayout';
|
|
import {screen} from 'sentry-test/reactTestingLibrary';
|
|
import {textWithMarkupMatcher} from 'sentry-test/utils';
|
|
|
|
import docs from './pylons';
|
|
|
|
describe('pylons 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: 'Logger setup'})).toBeInTheDocument();
|
|
|
|
// Renders install instructions
|
|
expect(
|
|
screen.getByText(textWithMarkupMatcher(/pip install raven --upgrade/))
|
|
).toBeInTheDocument();
|
|
});
|
|
});
|