unreal.spec.tsx 941 B

1234567891011121314151617181920212223242526272829
  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 './unreal';
  5. function renderMockRequests() {
  6. MockApiClient.addMockResponse({
  7. url: '/projects/org-slug/project-slug/',
  8. body: [ProjectFixture()],
  9. });
  10. }
  11. describe('getting started with unreal', function () {
  12. it('renders docs correctly', function () {
  13. renderMockRequests();
  14. renderWithOnboardingLayout(docs);
  15. // Renders main headings
  16. expect(screen.getByRole('heading', {name: 'Install'})).toBeInTheDocument();
  17. expect(screen.getByRole('heading', {name: 'Configure SDK'})).toBeInTheDocument();
  18. expect(screen.getByRole('heading', {name: 'Verify'})).toBeInTheDocument();
  19. expect(
  20. screen.getByRole('heading', {name: 'Upload Debug Symbols'})
  21. ).toBeInTheDocument();
  22. });
  23. });