diff --git a/public/app/features/logs/components/LogDetails.test.tsx b/public/app/features/logs/components/LogDetails.test.tsx index 53e7a80b523..b22af38a95c 100644 --- a/public/app/features/logs/components/LogDetails.test.tsx +++ b/public/app/features/logs/components/LogDetails.test.tsx @@ -1,7 +1,7 @@ import { render, screen, within } from '@testing-library/react'; import React from 'react'; -import { Field, LogLevel, LogRowModel, MutableDataFrame, createTheme } from '@grafana/data'; +import { Field, LogLevel, LogRowModel, MutableDataFrame, createTheme, FieldType } from '@grafana/data'; import { LogDetails, Props } from './LogDetails'; import { createLogRow } from './__mocks__/logRow'; @@ -82,6 +82,7 @@ describe('LogDetails', () => { const entry = 'traceId=1234 msg="some message"'; const dataFrame = new MutableDataFrame({ fields: [ + { name: 'timestamp', config: {}, type: FieldType.time, values: [1] }, { name: 'entry', values: [entry] }, // As we have traceId in message already this will shadow it. {