log4j2.spec.tsx 573 B

1234567891011121314151617181920
  1. import {render, screen} from 'sentry-test/reactTestingLibrary';
  2. import {StepTitle} from 'sentry/components/onboarding/gettingStartedDoc/step';
  3. import {GettingStartedWithLog4j2, steps} from './log4j2';
  4. describe('GettingStartedWithLog4j2', function () {
  5. it('renders doc correctly', function () {
  6. render(<GettingStartedWithLog4j2 dsn="test-dsn" />);
  7. // Steps
  8. for (const step of steps({
  9. dsn: 'test-dsn',
  10. })) {
  11. expect(
  12. screen.getByRole('heading', {name: step.title ?? StepTitle[step.type]})
  13. ).toBeInTheDocument();
  14. }
  15. });
  16. });