12345678910111213141516171819202122232425262728293031 |
- import {renderWithOnboardingLayout} from 'sentry-test/onboarding/renderWithOnboardingLayout';
- import {screen} from 'sentry-test/reactTestingLibrary';
- import docs, {CapacitorVersion} from './capacitor';
- describe('capacitor onboarding docs', function () {
- it('renders docs correctly', function () {
- renderWithOnboardingLayout(docs);
- // Renders main headings
- expect(screen.getByRole('heading', {name: 'Install'})).toBeInTheDocument();
- expect(screen.getByRole('heading', {name: 'Configure SDK'})).toBeInTheDocument();
- expect(screen.getByRole('heading', {name: 'Verify'})).toBeInTheDocument();
- });
- it('renders capacitor 2 docs correctly', function () {
- renderWithOnboardingLayout(docs, {
- selectedOptions: {
- capacitorVersion: CapacitorVersion.V2,
- },
- });
- // Renders main headings
- expect(screen.getByRole('heading', {name: 'Install'})).toBeInTheDocument();
- expect(screen.getByRole('heading', {name: 'Configure SDK'})).toBeInTheDocument();
- expect(
- screen.getByRole('heading', {name: 'Capacitor 2 - Android'})
- ).toBeInTheDocument();
- expect(screen.getByRole('heading', {name: 'Verify'})).toBeInTheDocument();
- });
- });
|