elixir.spec.tsx 945 B

123456789101112131415161718192021222324
  1. import {renderWithOnboardingLayout} from 'sentry-test/onboarding/renderWithOnboardingLayout';
  2. import {screen} from 'sentry-test/reactTestingLibrary';
  3. import docs from './elixir';
  4. describe('elixir onboarding docs', function () {
  5. it('renders docs correctly', function () {
  6. renderWithOnboardingLayout(docs);
  7. // Renders main headings
  8. expect(screen.getByRole('heading', {name: 'Install'})).toBeInTheDocument();
  9. expect(screen.getByRole('heading', {name: 'Configure SDK'})).toBeInTheDocument();
  10. expect(
  11. screen.getByRole('heading', {name: 'Package Source Code'})
  12. ).toBeInTheDocument();
  13. expect(
  14. screen.getByRole('heading', {name: 'Setup for Plug and Phoenix Applications'})
  15. ).toBeInTheDocument();
  16. expect(
  17. screen.getByRole('heading', {name: 'Capture Crashed Process Exceptions'})
  18. ).toBeInTheDocument();
  19. expect(screen.getByRole('heading', {name: 'Verify'})).toBeInTheDocument();
  20. });
  21. });