bottle.spec.tsx 583 B

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