Skip to content

Commit

Permalink
ref(onboarding-docs): Convert react-native platform (#63084)
Browse files Browse the repository at this point in the history
- part of #56549
  • Loading branch information
ArthurKnaus authored Jan 12, 2024
1 parent 718b1d1 commit ac63e37
Show file tree
Hide file tree
Showing 2 changed files with 273 additions and 277 deletions.
26 changes: 13 additions & 13 deletions static/app/gettingStartedDocs/react-native/react-native.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import {render, screen} from 'sentry-test/reactTestingLibrary';
import {renderWithOnboardingLayout} from 'sentry-test/onboarding/renderWithOnboardingLayout';
import {screen} from 'sentry-test/reactTestingLibrary';

import {StepTitle} from 'sentry/components/onboarding/gettingStartedDoc/step';
import docs from './react-native';

import {GettingStartedWithReactNative, steps} from './react-native';
describe('GettingStartedWithSpring', function () {
it('renders docs correctly', function () {
renderWithOnboardingLayout(docs);

describe('GettingStartedWithDjango', function () {
it('renders doc correctly', function () {
render(<GettingStartedWithReactNative dsn="test-dsn" projectSlug="test-project" />);

// Steps
for (const step of steps()) {
expect(
screen.getByRole('heading', {name: step.title ?? StepTitle[step.type]})
).toBeInTheDocument();
}
// 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();
expect(screen.getByRole('heading', {name: 'Performance'})).toBeInTheDocument();
expect(screen.getByRole('heading', {name: 'Debug Symbols'})).toBeInTheDocument();
expect(screen.getByRole('heading', {name: 'Source Context'})).toBeInTheDocument();
});
});
Loading

0 comments on commit ac63e37

Please sign in to comment.