Skip to content

Commit cd31754

Browse files
committed
test(AnalyticalTable): disable all chromatic snapshots
1 parent bbbc703 commit cd31754

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

packages/main/src/components/AnalyticalTable/AnalyticalTable.stories.tsx

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const meta = {
3838
title: 'Data Display / AnalyticalTable',
3939
component: AnalyticalTable,
4040
parameters: {
41-
chromatic: { delay: 1000, diffThreshold: 0.5 }
41+
chromatic: { disableSnapshot: true }
4242
},
4343
args: {
4444
data: dataLarge,
@@ -156,9 +156,6 @@ export const Default: Story = {};
156156

157157
export const PluginDisableRowSelection: Story = {
158158
name: 'Plugin: useRowDisableSelection',
159-
parameters: {
160-
chromatic: { disableSnapshot: true }
161-
},
162159
args: {
163160
data: dataLarge.map((item) => ({ ...item, disableSelection: Math.random() < 0.5 })),
164161
selectionMode: AnalyticalTableSelectionMode.MultiSelect
@@ -233,9 +230,6 @@ export const PluginIndeterminateRowSelection: Story = {
233230

234231
export const PluginManualRowSelect: Story = {
235232
name: 'Plugin: useManualRowSelect',
236-
parameters: {
237-
chromatic: { disableSnapshot: true }
238-
},
239233
args: {
240234
data: dataManualSelect
241235
},
@@ -372,9 +366,6 @@ const orderedMultiSortData = [
372366
];
373367

374368
export const PluginOrderedMultiSort = {
375-
parameters: {
376-
chromatic: { disableSnapshot: true }
377-
},
378369
name: 'Plugin: useOrderedMultiSort',
379370
args: { orderedIds: ['name', 'name2', 'age', 'age2'] },
380371
argTypes: {
@@ -406,9 +397,6 @@ export const TreeTable: Story = {
406397
};
407398

408399
export const InfiniteScrolling: Story = {
409-
parameters: {
410-
chromatic: { disableSnapshot: true }
411-
},
412400
render: (args) => {
413401
const [data, setData] = useState(args.data.slice(0, 50));
414402
const [loading, setLoading] = useState(false);
@@ -507,9 +495,6 @@ export const DynamicRowCount = {
507495
'Select an option to change the height of the surrounding container of the table (in `px`). <br /> __Note__: This is not an actual prop of the table.'
508496
}
509497
},
510-
parameters: {
511-
chromatic: { disableSnapshot: true }
512-
},
513498
render: (args) => {
514499
return (
515500
<div style={{ height: `${args.containerHeight}px` }}>
@@ -605,9 +590,6 @@ export const ResponsiveColumns: Story = {
605590

606591
export const NavigationIndicator: Story = {
607592
args: { withNavigationHighlight: true, selectionMode: AnalyticalTableSelectionMode.MultiSelect, data: dataLarge },
608-
parameters: {
609-
chromatic: { disableSnapshot: true }
610-
},
611593
render: (args) => {
612594
const [selectedRow, setSelectedRow] = useState();
613595
const onRowSelect = (e) => {

0 commit comments

Comments
 (0)