|
|
|
@ -110,11 +110,12 @@ describe('addPanelToDashboard', () => { |
|
|
|
expectedPanel: string; |
|
|
|
expectedPanel: string; |
|
|
|
}; |
|
|
|
}; |
|
|
|
it.each` |
|
|
|
it.each` |
|
|
|
framesType | expectedPanel |
|
|
|
framesType | expectedPanel |
|
|
|
${'logsFrames'} | ${'logs'} |
|
|
|
${'logsFrames'} | ${'logs'} |
|
|
|
${'graphFrames'} | ${'timeseries'} |
|
|
|
${'graphFrames'} | ${'timeseries'} |
|
|
|
${'nodeGraphFrames'} | ${'nodeGraph'} |
|
|
|
${'nodeGraphFrames'} | ${'nodeGraph'} |
|
|
|
${'traceFrames'} | ${'traces'} |
|
|
|
${'flameGraphFrames'} | ${'flamegraph'} |
|
|
|
|
|
|
|
${'traceFrames'} | ${'traces'} |
|
|
|
`(
|
|
|
|
`(
|
|
|
|
'Sets visualization to $expectedPanel if there are $frameType frames', |
|
|
|
'Sets visualization to $expectedPanel if there are $frameType frames', |
|
|
|
async ({ framesType, expectedPanel }: TestArgs) => { |
|
|
|
async ({ framesType, expectedPanel }: TestArgs) => { |
|
|
|
|