remix.spec.tsx 892 B

1234567891011121314151617181920212223
  1. import {renderWithOnboardingLayout} from 'sentry-test/onboarding/renderWithOnboardingLayout';
  2. import {screen} from 'sentry-test/reactTestingLibrary';
  3. import {textWithMarkupMatcher} from 'sentry-test/utils';
  4. import docs from './remix';
  5. describe('javascript-remix onboarding docs', function () {
  6. it('renders onboarding docs correctly', () => {
  7. renderWithOnboardingLayout(docs);
  8. // Renders main headings
  9. expect(screen.getByRole('heading', {name: 'Install'})).toBeInTheDocument();
  10. expect(screen.getByRole('heading', {name: 'Configure SDK'})).toBeInTheDocument();
  11. // Includes minimum required Astro version
  12. expect(screen.getByText(textWithMarkupMatcher(/Remix 1.0.0/))).toBeInTheDocument();
  13. // Includes wizard command statement
  14. expect(
  15. screen.getByText(textWithMarkupMatcher(/npx @sentry\/wizard@latest -i remix/))
  16. ).toBeInTheDocument();
  17. });
  18. });