mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
test: allow check for Table as well as Graph for Explore e2e flow (#31290)
* use table for explore flow screenshot * reverse logic * update matchExploreTable type
This commit is contained in:
parent
e932d5bb09
commit
7f8fb2b55f
@ -34,6 +34,7 @@ interface ConfigurePanelOptional {
|
|||||||
panelTitle?: string;
|
panelTitle?: string;
|
||||||
timeRange?: TimeRangeConfig;
|
timeRange?: TimeRangeConfig;
|
||||||
visualizationName?: string;
|
visualizationName?: string;
|
||||||
|
matchExploreTable?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ConfigurePanelRequired {
|
interface ConfigurePanelRequired {
|
||||||
@ -75,6 +76,7 @@ export const configurePanel = (config: PartialAddPanelConfig | PartialEditPanelC
|
|||||||
dataSourceName,
|
dataSourceName,
|
||||||
isEdit,
|
isEdit,
|
||||||
isExplore,
|
isExplore,
|
||||||
|
matchExploreTable,
|
||||||
matchScreenshot,
|
matchScreenshot,
|
||||||
panelTitle,
|
panelTitle,
|
||||||
queriesForm,
|
queriesForm,
|
||||||
@ -200,7 +202,7 @@ export const configurePanel = (config: PartialAddPanelConfig | PartialEditPanelC
|
|||||||
let visualization;
|
let visualization;
|
||||||
|
|
||||||
if (isExplore) {
|
if (isExplore) {
|
||||||
visualization = e2e.pages.Explore.General.graph();
|
visualization = matchExploreTable ? e2e.pages.Explore.General.table() : e2e.pages.Explore.General.graph();
|
||||||
} else {
|
} else {
|
||||||
visualization = e2e.components.Panels.Panel.containerByTitle(panelTitle).find('.panel-content');
|
visualization = e2e.components.Panels.Panel.containerByTitle(panelTitle).find('.panel-content');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user