mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
41 lines
936 B
TypeScript
41 lines
936 B
TypeScript
import {render} from 'sentry-test/reactTestingLibrary';
|
|
|
|
import DetailedError from 'sentry/components/errors/detailedError';
|
|
|
|
describe('DetailedError', function () {
|
|
it('renders', function () {
|
|
render(<DetailedError heading="Error heading" message={<div>Message</div>} />);
|
|
});
|
|
|
|
it('renders with "Retry" button', function () {
|
|
render(
|
|
<DetailedError
|
|
onRetry={() => {}}
|
|
heading="Error heading"
|
|
message={<div>Message</div>}
|
|
/>
|
|
);
|
|
});
|
|
|
|
it('can hide support links', function () {
|
|
render(
|
|
<DetailedError
|
|
hideSupportLinks
|
|
onRetry={() => {}}
|
|
heading="Error heading"
|
|
message={<div>Message</div>}
|
|
/>
|
|
);
|
|
});
|
|
|
|
it('hides footer when no "Retry" and no support links', function () {
|
|
render(
|
|
<DetailedError
|
|
hideSupportLinks
|
|
heading="Error heading"
|
|
message={<div>Message</div>}
|
|
/>
|
|
);
|
|
});
|
|
});
|