serverlesscloud.spec.tsx 618 B

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