minidump.spec.tsx 719 B

1234567891011121314151617181920212223242526
  1. import {ProjectFixture} from 'sentry-fixture/project';
  2. import {renderWithOnboardingLayout} from 'sentry-test/onboarding/renderWithOnboardingLayout';
  3. import {screen} from 'sentry-test/reactTestingLibrary';
  4. import docs from './minidump';
  5. function renderMockRequests() {
  6. MockApiClient.addMockResponse({
  7. url: '/projects/org-slug/project-slug/',
  8. body: [ProjectFixture()],
  9. });
  10. }
  11. describe('getting started with minidump', function () {
  12. it('renders gradle docs correctly', function () {
  13. renderMockRequests();
  14. renderWithOnboardingLayout(docs);
  15. // Renders main headings
  16. expect(
  17. screen.getByRole('heading', {name: 'Creating and Uploading Minidumps'})
  18. ).toBeInTheDocument();
  19. });
  20. });