import { Table, Button, Flex, MenuButton, Ref, tableRowClassName, tableCellClassName, buttonClassName, tableSlotClassNames, } from '@fluentui/react-northstar'; import { gridNestedBehavior, gridCellWithFocusableElementBehavior, gridCellMultipleFocusableBehavior, } from '@fluentui/accessibility'; import * as React from 'react'; export const selectors = { buttonClassName, tableHeaderClass: tableSlotClassNames.header, row: tableRowClassName, cell: tableCellClassName, beforeTableId: 'before-table', afterTableId: 'after-table', moreOptionsButtonId: 'more-options', rowOnclickTestId: 'row-onclick', buttonInCellOnclickTestId: 'button-in-cell-onlick', }; const rowOnclickTestRef = React.createRef(); const buttonInCellOnclickTestRef = React.createRef(); function handleRowClick(index) { rowOnclickTestRef.current.focus(); } const header = { key: 'header', items: [ { content: 'id', key: 'id' }, { content: 'Name', key: 'name' }, { content: 'Picture', key: 'pic' }, { content: 'Age', key: 'action' }, { content: 'Tags', key: 'tags' }, { key: 'more options', 'aria-label': 'options' }, ], }; const moreOptionCell = { content: