|
@@ -55,7 +55,6 @@ const mockEventTimestampMs = mockEventTimestamp.getTime();
|
|
|
// Get replay data with the mocked replay reader params
|
|
|
const mockReplay = ReplayReader.factory({
|
|
|
replayRecord: ReplayRecordFixture({
|
|
|
- id: REPLAY_ID_1,
|
|
|
browser: {
|
|
|
name: 'Chrome',
|
|
|
version: '110.0.0',
|
|
@@ -84,7 +83,7 @@ mockUseReplayReader.mockImplementation(() => {
|
|
|
projectSlug: ProjectFixture().slug,
|
|
|
replay: mockReplay,
|
|
|
replayId: REPLAY_ID_1,
|
|
|
- replayRecord: ReplayRecordFixture({id: REPLAY_ID_1}),
|
|
|
+ replayRecord: ReplayRecordFixture(),
|
|
|
};
|
|
|
});
|
|
|
|
|
@@ -371,7 +370,7 @@ describe('GroupReplays', () => {
|
|
|
count_errors: 1,
|
|
|
duration: 52346,
|
|
|
finished_at: new Date('2022-09-15T06:54:00+00:00'),
|
|
|
- id: REPLAY_ID_1,
|
|
|
+ id: '346789a703f6454384f1de473b8b9fcc',
|
|
|
started_at: new Date('2022-09-15T06:50:00+00:00'),
|
|
|
urls: [
|
|
|
'https://dev.getsentry.net:7999/replays/',
|
|
@@ -383,7 +382,7 @@ describe('GroupReplays', () => {
|
|
|
count_errors: 4,
|
|
|
duration: 400,
|
|
|
finished_at: new Date('2022-09-21T21:40:38+00:00'),
|
|
|
- id: REPLAY_ID_2,
|
|
|
+ id: 'b05dae9b6be54d21a4d5ad9f8f02b780',
|
|
|
started_at: new Date('2022-09-21T21:30:44+00:00'),
|
|
|
urls: [
|
|
|
'https://dev.getsentry.net:7999/organizations/org-slug/replays/?project=2&statsPeriod=24h',
|
|
@@ -476,7 +475,7 @@ describe('GroupReplays', () => {
|
|
|
count_errors: 1,
|
|
|
duration: 52346,
|
|
|
finished_at: new Date('2022-09-15T06:54:00+00:00'),
|
|
|
- id: REPLAY_ID_1,
|
|
|
+ id: '346789a703f6454384f1de473b8b9fcc',
|
|
|
started_at: new Date('2022-09-15T06:50:00+00:00'),
|
|
|
urls: [
|
|
|
'https://dev.getsentry.net:7999/replays/',
|
|
@@ -488,7 +487,7 @@ describe('GroupReplays', () => {
|
|
|
count_errors: 4,
|
|
|
duration: 400,
|
|
|
finished_at: new Date('2022-09-21T21:40:38+00:00'),
|
|
|
- id: REPLAY_ID_2,
|
|
|
+ id: 'b05dae9b6be54d21a4d5ad9f8f02b780',
|
|
|
started_at: new Date('2022-09-21T21:30:44+00:00'),
|
|
|
urls: [
|
|
|
'https://dev.getsentry.net:7999/organizations/org-slug/replays/?project=2&statsPeriod=24h',
|
|
@@ -532,7 +531,6 @@ describe('GroupReplays', () => {
|
|
|
organizationProps: {features: ['session-replay']},
|
|
|
}));
|
|
|
const mockGroup = GroupFixture();
|
|
|
- const mockReplayRecord = mockReplay?.getReplay();
|
|
|
|
|
|
const mockReplayCountApi = MockApiClient.addMockResponse({
|
|
|
url: mockReplayCountUrl,
|
|
@@ -550,7 +548,7 @@ describe('GroupReplays', () => {
|
|
|
count_errors: 1,
|
|
|
duration: 52346,
|
|
|
finished_at: new Date('2022-09-15T06:54:00+00:00'),
|
|
|
- id: REPLAY_ID_1,
|
|
|
+ id: '346789a703f6454384f1de473b8b9fcc',
|
|
|
started_at: new Date('2022-09-15T06:50:00+00:00'),
|
|
|
urls: [
|
|
|
'https://dev.getsentry.net:7999/replays/',
|
|
@@ -562,7 +560,7 @@ describe('GroupReplays', () => {
|
|
|
count_errors: 4,
|
|
|
duration: 400,
|
|
|
finished_at: new Date('2022-09-21T21:40:38+00:00'),
|
|
|
- id: REPLAY_ID_2,
|
|
|
+ id: 'b05dae9b6be54d21a4d5ad9f8f02b780',
|
|
|
started_at: new Date('2022-09-21T21:30:44+00:00'),
|
|
|
urls: [
|
|
|
'https://dev.getsentry.net:7999/organizations/org-slug/replays/?project=2&statsPeriod=24h',
|
|
@@ -577,10 +575,6 @@ describe('GroupReplays', () => {
|
|
|
})),
|
|
|
},
|
|
|
});
|
|
|
- MockApiClient.addMockResponse({
|
|
|
- method: 'POST',
|
|
|
- url: `/projects/${organization.slug}/${mockReplayRecord?.project_id}/replays/${mockReplayRecord?.id}/viewed-by/`,
|
|
|
- });
|
|
|
|
|
|
render(<GroupReplays group={mockGroup} />, {
|
|
|
context: routerContext,
|