spring.spec.tsx 725 B

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