@@ -55,7 +55,6 @@ const mockEventTimestampMs = mockEventTimestamp.getTime();
5555// Get replay data with the mocked replay reader params
5656const mockReplay = ReplayReader . factory ( {
5757 replayRecord : ReplayRecordFixture ( {
58- id : REPLAY_ID_1 ,
5958 browser : {
6059 name : 'Chrome' ,
6160 version : '110.0.0' ,
@@ -84,7 +83,7 @@ mockUseReplayReader.mockImplementation(() => {
8483 projectSlug : ProjectFixture ( ) . slug ,
8584 replay : mockReplay ,
8685 replayId : REPLAY_ID_1 ,
87- replayRecord : ReplayRecordFixture ( { id : REPLAY_ID_1 } ) ,
86+ replayRecord : ReplayRecordFixture ( ) ,
8887 } ;
8988} ) ;
9089
@@ -371,7 +370,7 @@ describe('GroupReplays', () => {
371370 count_errors : 1 ,
372371 duration : 52346 ,
373372 finished_at : new Date ( '2022-09-15T06:54:00+00:00' ) ,
374- id : REPLAY_ID_1 ,
373+ id : '346789a703f6454384f1de473b8b9fcc' ,
375374 started_at : new Date ( '2022-09-15T06:50:00+00:00' ) ,
376375 urls : [
377376 'https://dev.getsentry.net:7999/replays/' ,
@@ -383,7 +382,7 @@ describe('GroupReplays', () => {
383382 count_errors : 4 ,
384383 duration : 400 ,
385384 finished_at : new Date ( '2022-09-21T21:40:38+00:00' ) ,
386- id : REPLAY_ID_2 ,
385+ id : 'b05dae9b6be54d21a4d5ad9f8f02b780' ,
387386 started_at : new Date ( '2022-09-21T21:30:44+00:00' ) ,
388387 urls : [
389388 'https://dev.getsentry.net:7999/organizations/org-slug/replays/?project=2&statsPeriod=24h' ,
@@ -476,7 +475,7 @@ describe('GroupReplays', () => {
476475 count_errors : 1 ,
477476 duration : 52346 ,
478477 finished_at : new Date ( '2022-09-15T06:54:00+00:00' ) ,
479- id : REPLAY_ID_1 ,
478+ id : '346789a703f6454384f1de473b8b9fcc' ,
480479 started_at : new Date ( '2022-09-15T06:50:00+00:00' ) ,
481480 urls : [
482481 'https://dev.getsentry.net:7999/replays/' ,
@@ -488,7 +487,7 @@ describe('GroupReplays', () => {
488487 count_errors : 4 ,
489488 duration : 400 ,
490489 finished_at : new Date ( '2022-09-21T21:40:38+00:00' ) ,
491- id : REPLAY_ID_2 ,
490+ id : 'b05dae9b6be54d21a4d5ad9f8f02b780' ,
492491 started_at : new Date ( '2022-09-21T21:30:44+00:00' ) ,
493492 urls : [
494493 'https://dev.getsentry.net:7999/organizations/org-slug/replays/?project=2&statsPeriod=24h' ,
@@ -532,7 +531,6 @@ describe('GroupReplays', () => {
532531 organizationProps : { features : [ 'session-replay' ] } ,
533532 } ) ) ;
534533 const mockGroup = GroupFixture ( ) ;
535- const mockReplayRecord = mockReplay ?. getReplay ( ) ;
536534
537535 const mockReplayCountApi = MockApiClient . addMockResponse ( {
538536 url : mockReplayCountUrl ,
@@ -550,7 +548,7 @@ describe('GroupReplays', () => {
550548 count_errors : 1 ,
551549 duration : 52346 ,
552550 finished_at : new Date ( '2022-09-15T06:54:00+00:00' ) ,
553- id : REPLAY_ID_1 ,
551+ id : '346789a703f6454384f1de473b8b9fcc' ,
554552 started_at : new Date ( '2022-09-15T06:50:00+00:00' ) ,
555553 urls : [
556554 'https://dev.getsentry.net:7999/replays/' ,
@@ -562,7 +560,7 @@ describe('GroupReplays', () => {
562560 count_errors : 4 ,
563561 duration : 400 ,
564562 finished_at : new Date ( '2022-09-21T21:40:38+00:00' ) ,
565- id : REPLAY_ID_2 ,
563+ id : 'b05dae9b6be54d21a4d5ad9f8f02b780' ,
566564 started_at : new Date ( '2022-09-21T21:30:44+00:00' ) ,
567565 urls : [
568566 'https://dev.getsentry.net:7999/organizations/org-slug/replays/?project=2&statsPeriod=24h' ,
@@ -577,10 +575,6 @@ describe('GroupReplays', () => {
577575 } ) ) ,
578576 } ,
579577 } ) ;
580- MockApiClient . addMockResponse ( {
581- method : 'POST' ,
582- url : `/projects/${ organization . slug } /${ mockReplayRecord ?. project_id } /replays/${ mockReplayRecord ?. id } /viewed-by/` ,
583- } ) ;
584578
585579 render ( < GroupReplays group = { mockGroup } /> , {
586580 context : routerContext ,
0 commit comments