feat: consolidate shared UI and harden browser authority for release
This commit is contained in:
@@ -144,6 +144,17 @@ const fixedCoverMarkup = renderToStaticMarkup(
|
||||
getRowKey={(row) => row.id}
|
||||
/>
|
||||
);
|
||||
assertEqual(fixedCoverMarkup.includes('class="data-grid-scroll-region" tabindex="0" role="region"'), true, "horizontal scrolling is keyboard accessible and labelled");
|
||||
|
||||
const resizeMarkup = renderToStaticMarkup(<DataGrid
|
||||
id="resize-control-regression"
|
||||
rows={[] as FilterRow[]}
|
||||
columns={[{ id: "name", header: "Name", resizable: true }, { id: "actions", header: "Actions", columnType: "actions" }]}
|
||||
getRowKey={(row) => row.id}
|
||||
/>);
|
||||
assertEqual(resizeMarkup.includes('role="separator" aria-orientation="vertical"'), true, "resizers expose a focusable vertical separator");
|
||||
assertEqual(resizeMarkup.includes('aria-valuemin="92"'), true, "resizers expose their effective accessible minimum");
|
||||
assertEqual(resizeMarkup.includes('aria-description='), true, "resizers explain keyboard interaction and reset");
|
||||
assertEqual(
|
||||
fixedCoverMarkup.includes("data-grid-buffer-cell"),
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user