1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import {duration} from 'moment-timezone';
- import type {ReplayListRecord} from 'sentry/views/replays/types';
- export function ReplayListFixture(
- replayListRecords: ReplayListRecord[] = []
- ): ReplayListRecord[] {
- if (replayListRecords.length) {
- return replayListRecords;
- }
- return [
- {
- activity: 1,
- browser: {
- name: 'Firefox',
- version: '111.0',
- },
- count_dead_clicks: 0,
- count_rage_clicks: 0,
- count_errors: 0,
- duration: duration(30000),
- finished_at: new Date('2022-09-15T06:54:00+00:00'),
- has_viewed: false,
- id: '346789a703f6454384f1de473b8b9fcc',
- is_archived: false,
- os: {
- name: 'sentry.javascript.react',
- version: '7.42.0',
- },
- project_id: '2',
- started_at: new Date('2022-09-15T06:50:03+00:00'),
- user: {
- display_name: 'testDisplayName',
- email: '',
- id: '147086',
- ip: '127.0.0.1',
- username: 'testDisplayName',
- },
- },
- ];
- }
|