electron.spec.tsx 608 B

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