mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
ff0642bf6e
* fix some e2e flows types * some type fixes * must... fix... more... * MOAR * MOREMOREMORE * 1 more
16 lines
456 B
TypeScript
16 lines
456 B
TypeScript
import { v4 as uuidv4 } from 'uuid';
|
|
|
|
import { getScenarioContext } from '../support/scenarioContext';
|
|
|
|
import { configurePanel, PartialAddPanelConfig } from './configurePanel';
|
|
|
|
export const addPanel = (config?: Partial<PartialAddPanelConfig>) =>
|
|
getScenarioContext().then(({ lastAddedDataSource }) =>
|
|
configurePanel({
|
|
dataSourceName: lastAddedDataSource,
|
|
panelTitle: `e2e-${uuidv4()}`,
|
|
...config,
|
|
isEdit: false,
|
|
})
|
|
);
|