native-qt.spec.tsx 579 B

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