spring-boot.spec.tsx 755 B

12345678910111213141516171819202122232425262728
  1. import {render, screen} from 'sentry-test/reactTestingLibrary';
  2. import {StepTitle} from 'sentry/components/onboarding/gettingStartedDoc/step';
  3. import {
  4. GettingStartedWithSpringBoot,
  5. PackageManager,
  6. SpringBootVersion,
  7. steps,
  8. } from './spring-boot';
  9. describe('GettingStartedWithSpringBoot', function () {
  10. it('renders doc correctly', function () {
  11. render(<GettingStartedWithSpringBoot dsn="test-dsn" />);
  12. // Steps
  13. for (const step of steps({
  14. dsn: 'test-dsn',
  15. springBootVersion: SpringBootVersion.V2,
  16. packageManager: PackageManager.MAVEN,
  17. hasPerformance: true,
  18. })) {
  19. expect(
  20. screen.getByRole('heading', {name: step.title ?? StepTitle[step.type]})
  21. ).toBeInTheDocument();
  22. }
  23. });
  24. });