diff --git a/static/app/components/events/eventReplay/index.spec.tsx b/static/app/components/events/eventReplay/index.spec.tsx index 4fb13fe49de40f..11c3addb902ade 100644 --- a/static/app/components/events/eventReplay/index.spec.tsx +++ b/static/app/components/events/eventReplay/index.spec.tsx @@ -21,7 +21,6 @@ import type {RawReplayError} from 'sentry/utils/replays/types'; jest.mock('sentry/utils/replays/hooks/useReplayOnboarding'); jest.mock('sentry/utils/replays/hooks/useLoadReplayReader'); -jest.mock('sentry/utils/replays/hooks/useReplayOnboarding'); // Replay clip preview is very heavy, mock it out jest.mock( 'sentry/components/events/eventReplay/replayClipPreview', @@ -30,6 +29,12 @@ jest.mock( return
; } ); +jest.mock('sentry/components/events/eventReplay/replayInlineOnboardingPanel', () => ({ + __esModule: true, + default: function MockReplayOnboardingPanel() { + return
; + }, +})); const mockEventTimestamp = new Date('2022-09-22T16:59:41Z'); const mockReplayId = '761104e184c64d439ee1014b72b4d83b'; @@ -136,15 +141,9 @@ describe('EventReplay', () => { MockUseReplayOnboardingSidebarPanel.mockReturnValue({ activateSidebar: jest.fn(), }); - MockApiClient.addMockResponse({ - url: '/organizations/org-slug/prompts-activity/', - body: {data: {dismissed_ts: null}}, - }); render(, {organization}); - expect( - await screen.findByText('Watch the errors and latency issues your users face') - ).toBeInTheDocument(); + expect(await screen.findByTestId('replay-inline-onboarding')).toBeInTheDocument(); }); it('should render a replay when there is a replayId from tags', async () => {