feat(webui): synchronize external DataGrid queries
This commit is contained in:
@@ -117,3 +117,15 @@ const clearedFilterMarkup = renderToStaticMarkup(
|
||||
);
|
||||
assertEqual(clearedFilterMarkup.includes("Ordinary row"), true, "clearing filters restores the first unfiltered row");
|
||||
assertEqual(/of(?:<!-- -->)?\s*(?:<!-- -->)?6/.test(clearedFilterMarkup), true, "clearing filters restores the full pagination total");
|
||||
|
||||
const externalShortcutMarkup = renderToStaticMarkup(
|
||||
<DataGrid
|
||||
id="external-query-shortcut-regression"
|
||||
rows={filterRows}
|
||||
columns={filterColumns}
|
||||
getRowKey={(row) => row.id}
|
||||
query={{ sort: null, filters: { name: "target" } }}
|
||||
/>
|
||||
);
|
||||
assertEqual(externalShortcutMarkup.includes("Target alpha"), true, "an external count shortcut synchronizes the grid query");
|
||||
assertEqual(externalShortcutMarkup.includes("Ordinary row"), false, "the synchronized query does not disagree with visible rows");
|
||||
|
||||
Reference in New Issue
Block a user