diff --git a/apps/vr-tests-react-components/src/stories/Table.stories.tsx b/apps/vr-tests-react-components/src/stories/Table.stories.tsx index 1cdbaef5daf7cd..7cc6d55f519e73 100644 --- a/apps/vr-tests-react-components/src/stories/Table.stories.tsx +++ b/apps/vr-tests-react-components/src/stories/Table.stories.tsx @@ -21,6 +21,7 @@ import { TableCellLayout, TableSelectionCell, TableCellActions, + TableProps, } from '@fluentui/react-table'; import { Button } from '@fluentui/react-button'; import { storiesOf } from '@storybook/react'; @@ -72,474 +73,487 @@ const columns = [ { columnKey: 'lastUpdate', label: 'Last update' }, ]; -storiesOf('Table - cell actions', module) - .addDecorator(story => ( - {story()} - )) - .addStory( - 'default', - () => ( - - - - {columns.map(column => ( - {column.label} - ))} - - - - {items.map(item => ( - - - - {item.file.label} - -
- ), - { includeDarkMode: true, includeHighContrast: true, includeRtl: true }, - ) - .addStory( - 'always visible', - () => ( - - - - {columns.map(column => ( - {column.label} - ))} - - - - {items.map(item => ( - - - - {item.file.label} - -
- ), - { includeDarkMode: true, includeHighContrast: true, includeRtl: true }, - ) - .addStory('in header cell', () => ( - - - - {columns.map(column => ( - {column.label} - ))} +interface SharedVrTestArgs { + noNativeElements: TableProps['noNativeElements']; +} + +const CellActionsDefault: React.FC = ({ noNativeElements }) => ( +
+ + + {columns.map(column => ( + {column.label} + ))} + + + + {items.map(item => ( + + + + {item.file.label} + +
+); + +const CellActionsAlwaysVisible: React.FC = ({ noNativeElements }) => ( + + + + {columns.map(column => ( + {column.label} ))} - -
- )); + + + + {items.map(item => ( + + + + {item.file.label} + +