remix.spec.tsx 707 B

123456789101112131415161718192021
  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(
  10. screen.getByRole('heading', {name: 'Automatic Configuration (Recommended)'})
  11. ).toBeInTheDocument();
  12. // Includes configure statement
  13. expect(
  14. screen.getByText(textWithMarkupMatcher(/npx @sentry\/wizard@latest -i remix/))
  15. ).toBeInTheDocument();
  16. });
  17. });