mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
logs: log-details: updated test for more complete mock data (#71941)
logs: updated test for more realistic mock data
This commit is contained in:
@@ -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.
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user