mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import {renderWithOnboardingLayout} from 'sentry-test/onboarding/renderWithOnboardingLayout';
|
|
import {screen} from 'sentry-test/reactTestingLibrary';
|
|
import {textWithMarkupMatcher} from 'sentry-test/utils';
|
|
|
|
import docs from './aspnet';
|
|
|
|
describe('aspnet onboarding docs', function () {
|
|
it('renders docs correctly', async function () {
|
|
renderWithOnboardingLayout(docs, {
|
|
releaseRegistry: {
|
|
'sentry.dotnet.aspnet': {
|
|
version: '1.99.9',
|
|
},
|
|
},
|
|
});
|
|
|
|
// Renders main headings
|
|
expect(screen.getByRole('heading', {name: 'Install'})).toBeInTheDocument();
|
|
expect(screen.getByRole('heading', {name: 'Configure SDK'})).toBeInTheDocument();
|
|
expect(screen.getByRole('heading', {name: 'Documentation'})).toBeInTheDocument();
|
|
expect(screen.getByRole('heading', {name: 'Samples'})).toBeInTheDocument();
|
|
|
|
// Renders SDK version from registry
|
|
expect(
|
|
await screen.findByText(
|
|
textWithMarkupMatcher(/Install-Package Sentry.AspNet -Version 1\.99\.9/)
|
|
)
|
|
).toBeInTheDocument();
|
|
});
|
|
});
|