Skip to content

Commit

Permalink
fix(DatatableV2): expose item count for tests
Browse files Browse the repository at this point in the history
Closes UXD-1660
  • Loading branch information
ajkl2533 committed Oct 31, 2024
1 parent 1dbf935 commit 5311fb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/DatatableV2/toolbar/TopToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ function TopToolbar<D>({ table }: { table: DatatableInstance<D> }) {
<Skeleton width={80} />
</div>
) : (
<Text>
<Text
className="sscds-test-itemCounter"
data-test-itemcount={totalRowCount}
>
{t('sscds|datatable.topToolbar.itemCounter', {
count: totalRowCount,
totalRowCount: abbreviateNumber(totalRowCount, lng),
Expand Down

0 comments on commit 5311fb1

Please sign in to comment.