switch.spec.tsx 624 B

1234567891011121314151617
  1. import {renderWithOnboardingLayout} from 'sentry-test/onboarding/renderWithOnboardingLayout';
  2. import {screen} from 'sentry-test/reactTestingLibrary';
  3. import docs from './switch';
  4. describe('Nintendo onboarding docs', function () {
  5. it('renders docs correctly', function () {
  6. renderWithOnboardingLayout(docs);
  7. // Renders main headings
  8. expect(screen.getByRole('heading', {name: 'Install'})).toBeInTheDocument();
  9. expect(
  10. screen.queryByRole('heading', {name: 'Configure SDK'})
  11. ).not.toBeInTheDocument();
  12. expect(screen.queryByRole('heading', {name: 'Verify'})).not.toBeInTheDocument();
  13. });
  14. });