logback.spec.tsx 665 B

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