diff --git a/public/app/features/logs/components/panel/LogList.test.tsx b/public/app/features/logs/components/panel/LogList.test.tsx
index 0131f9e5bed..66c9f11d468 100644
--- a/public/app/features/logs/components/panel/LogList.test.tsx
+++ b/public/app/features/logs/components/panel/LogList.test.tsx
@@ -125,8 +125,18 @@ describe('LogList', () => {
const onLogOptionsChange = jest.fn();
const setDisplayedFields = jest.fn();
+ const logsWithDetectedLevel = [
+ createLogRow({ uid: '1', labels: { [TABLE_DETECTED_LEVEL_FIELD_NAME]: 'info' } }),
+ createLogRow({ uid: '2', labels: { [TABLE_DETECTED_LEVEL_FIELD_NAME]: 'debug' } }),
+ ];
+
render(
-
+
);
expect(screen.getByText('log message 1')).toBeInTheDocument();
// Even when OTel is disabled, we still report table defaults
@@ -150,8 +160,18 @@ describe('LogList', () => {
const onLogOptionsChange = jest.fn();
const setDisplayedFields = jest.fn();
+ const logsWithDetectedLevel = [
+ createLogRow({ uid: '1', labels: { [TABLE_DETECTED_LEVEL_FIELD_NAME]: 'info' } }),
+ createLogRow({ uid: '2', labels: { [TABLE_DETECTED_LEVEL_FIELD_NAME]: 'debug' } }),
+ ];
+
render(
-
+
);
expect(screen.getByText('log message 1')).toBeInTheDocument();
// For non-OTel logs, we report table defaults only (no OTel attributes field)
@@ -176,7 +196,12 @@ describe('LogList', () => {
const onLogOptionsChange = jest.fn();
const setDisplayedFields = jest.fn();
- const logs = [createLogRow({ uid: '1', labels: { [OTEL_PROBE_FIELD]: '1' } })];
+ const logs = [
+ createLogRow({
+ uid: '1',
+ labels: { [OTEL_PROBE_FIELD]: '1', [TABLE_DETECTED_LEVEL_FIELD_NAME]: 'info' },
+ }),
+ ];
render(