Skip to content

Commit 1462fcf

Browse files
test(table): add sparkline test case
1 parent aa6aa58 commit 1462fcf

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

components/table/stories/table.test.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,31 @@ export const TableGroup = Variants({
457457
isSelected: true,
458458
}
459459
],
460+
},
461+
{
462+
testHeading: "Sparkline charts",
463+
hasChartContent: true,
464+
rowItems: [
465+
{ cellContent: ["Informative sparkline", "200", "sparkline-informative.svg"],
466+
textAlignment: {
467+
1: "end"
468+
}
469+
},
470+
{ cellContent: ["Negative sparkline", "0", "sparkline-negative.svg"],
471+
textAlignment: {
472+
1: "end"
473+
}
474+
},
475+
{ cellContent: ["Positive sparkline", "600", "sparkline-positive.svg"],
476+
textAlignment: {
477+
1: "end"
478+
}
479+
},{ cellContent: ["Notice sparkline", "400", "sparkline-notice.svg"],
480+
textAlignment: {
481+
1: "end"
482+
}
483+
},
484+
]
460485
}
461486
],
462487
});

0 commit comments

Comments
 (0)