[release-12.2.1] Table: Restore previous footer behavior of reducers applying to filtered data (#111041) (#111109)
Table: Restore previous footer behavior of reducers applying to filtered data (#111041)
* Table: Restore previous footer behavior of reducers applying to filtered data
* update e2e to match new behavior
(cherry picked from commit f258d8a417)
This commit is contained in:
@@ -11,7 +11,7 @@ const waitForTableLoad = async (loc: Page | Locator) => {
|
||||
};
|
||||
|
||||
test.describe('Panels test: Table - Footer', { tag: ['@panels', '@table'] }, () => {
|
||||
test('Footer unaffected by filtering', async ({ gotoDashboardPage, selectors, page }) => {
|
||||
test('Footer affected by filtering', async ({ gotoDashboardPage, selectors, page }) => {
|
||||
const dashboardPage = await gotoDashboardPage({
|
||||
uid: DASHBOARD_UID,
|
||||
queryParams: new URLSearchParams({ editPanel: '4' }),
|
||||
@@ -51,7 +51,7 @@ test.describe('Panels test: Table - Footer', { tag: ['@panels', '@table'] }, ()
|
||||
dashboardPage
|
||||
.getByGrafanaSelector(selectors.components.Panels.Visualization.TableNG.Footer.Value)
|
||||
.nth(minColumnIdx)
|
||||
).toHaveText(minReducerValue);
|
||||
).not.toHaveText(minReducerValue);
|
||||
});
|
||||
|
||||
test('Footer unaffected by sorting', async ({ gotoDashboardPage, selectors, page }) => {
|
||||
|
||||
@@ -677,7 +677,7 @@ export function TableNG(props: TableNGProps) {
|
||||
),
|
||||
renderSummaryCell: () => (
|
||||
<SummaryCell
|
||||
rows={rows}
|
||||
rows={sortedRows}
|
||||
footers={footers}
|
||||
field={field}
|
||||
colIdx={i}
|
||||
@@ -707,10 +707,11 @@ export function TableNG(props: TableNGProps) {
|
||||
maxRowHeight,
|
||||
numFrozenColsFullyInView,
|
||||
onCellFilterAdded,
|
||||
rows,
|
||||
rowHeight,
|
||||
rowHeightFn,
|
||||
rows,
|
||||
setFilter,
|
||||
sortedRows,
|
||||
showTypeIcons,
|
||||
theme,
|
||||
timeRange,
|
||||
|
||||
Reference in New Issue
Block a user