@@ -55,7 +55,6 @@ const mockEventTimestampMs = mockEventTimestamp.getTime();
55
55
// Get replay data with the mocked replay reader params
56
56
const mockReplay = ReplayReader . factory ( {
57
57
replayRecord : ReplayRecordFixture ( {
58
- id : REPLAY_ID_1 ,
59
58
browser : {
60
59
name : 'Chrome' ,
61
60
version : '110.0.0' ,
@@ -84,7 +83,7 @@ mockUseReplayReader.mockImplementation(() => {
84
83
projectSlug : ProjectFixture ( ) . slug ,
85
84
replay : mockReplay ,
86
85
replayId : REPLAY_ID_1 ,
87
- replayRecord : ReplayRecordFixture ( { id : REPLAY_ID_1 } ) ,
86
+ replayRecord : ReplayRecordFixture ( ) ,
88
87
} ;
89
88
} ) ;
90
89
@@ -371,7 +370,7 @@ describe('GroupReplays', () => {
371
370
count_errors : 1 ,
372
371
duration : 52346 ,
373
372
finished_at : new Date ( '2022-09-15T06:54:00+00:00' ) ,
374
- id : REPLAY_ID_1 ,
373
+ id : '346789a703f6454384f1de473b8b9fcc' ,
375
374
started_at : new Date ( '2022-09-15T06:50:00+00:00' ) ,
376
375
urls : [
377
376
'https://dev.getsentry.net:7999/replays/' ,
@@ -383,7 +382,7 @@ describe('GroupReplays', () => {
383
382
count_errors : 4 ,
384
383
duration : 400 ,
385
384
finished_at : new Date ( '2022-09-21T21:40:38+00:00' ) ,
386
- id : REPLAY_ID_2 ,
385
+ id : 'b05dae9b6be54d21a4d5ad9f8f02b780' ,
387
386
started_at : new Date ( '2022-09-21T21:30:44+00:00' ) ,
388
387
urls : [
389
388
'https://dev.getsentry.net:7999/organizations/org-slug/replays/?project=2&statsPeriod=24h' ,
@@ -476,7 +475,7 @@ describe('GroupReplays', () => {
476
475
count_errors : 1 ,
477
476
duration : 52346 ,
478
477
finished_at : new Date ( '2022-09-15T06:54:00+00:00' ) ,
479
- id : REPLAY_ID_1 ,
478
+ id : '346789a703f6454384f1de473b8b9fcc' ,
480
479
started_at : new Date ( '2022-09-15T06:50:00+00:00' ) ,
481
480
urls : [
482
481
'https://dev.getsentry.net:7999/replays/' ,
@@ -488,7 +487,7 @@ describe('GroupReplays', () => {
488
487
count_errors : 4 ,
489
488
duration : 400 ,
490
489
finished_at : new Date ( '2022-09-21T21:40:38+00:00' ) ,
491
- id : REPLAY_ID_2 ,
490
+ id : 'b05dae9b6be54d21a4d5ad9f8f02b780' ,
492
491
started_at : new Date ( '2022-09-21T21:30:44+00:00' ) ,
493
492
urls : [
494
493
'https://dev.getsentry.net:7999/organizations/org-slug/replays/?project=2&statsPeriod=24h' ,
@@ -532,7 +531,6 @@ describe('GroupReplays', () => {
532
531
organizationProps : { features : [ 'session-replay' ] } ,
533
532
} ) ) ;
534
533
const mockGroup = GroupFixture ( ) ;
535
- const mockReplayRecord = mockReplay ?. getReplay ( ) ;
536
534
537
535
const mockReplayCountApi = MockApiClient . addMockResponse ( {
538
536
url : mockReplayCountUrl ,
@@ -550,7 +548,7 @@ describe('GroupReplays', () => {
550
548
count_errors : 1 ,
551
549
duration : 52346 ,
552
550
finished_at : new Date ( '2022-09-15T06:54:00+00:00' ) ,
553
- id : REPLAY_ID_1 ,
551
+ id : '346789a703f6454384f1de473b8b9fcc' ,
554
552
started_at : new Date ( '2022-09-15T06:50:00+00:00' ) ,
555
553
urls : [
556
554
'https://dev.getsentry.net:7999/replays/' ,
@@ -562,7 +560,7 @@ describe('GroupReplays', () => {
562
560
count_errors : 4 ,
563
561
duration : 400 ,
564
562
finished_at : new Date ( '2022-09-21T21:40:38+00:00' ) ,
565
- id : REPLAY_ID_2 ,
563
+ id : 'b05dae9b6be54d21a4d5ad9f8f02b780' ,
566
564
started_at : new Date ( '2022-09-21T21:30:44+00:00' ) ,
567
565
urls : [
568
566
'https://dev.getsentry.net:7999/organizations/org-slug/replays/?project=2&statsPeriod=24h' ,
@@ -577,10 +575,6 @@ describe('GroupReplays', () => {
577
575
} ) ) ,
578
576
} ,
579
577
} ) ;
580
- MockApiClient . addMockResponse ( {
581
- method : 'POST' ,
582
- url : `/projects/${ organization . slug } /${ mockReplayRecord ?. project_id } /replays/${ mockReplayRecord ?. id } /viewed-by/` ,
583
- } ) ;
584
578
585
579
render ( < GroupReplays group = { mockGroup } /> , {
586
580
context : routerContext ,
0 commit comments