Skip to content

Commit

Permalink
chore: paginationItem button testid (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChitlangeSahas authored Oct 20, 2021
1 parent c17f289 commit cdd462f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion giraffe/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@influxdata/giraffe",
"version": "2.18.9",
"version": "2.18.10",
"main": "dist/index.js",
"module": "src/index.js",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,16 @@ export const PaginationItem = forwardRef<
data-testid={testID}
ref={ref}
>
<Button onClick={onClick} active={isActive} text={page}></Button>
<Button
onClick={onClick}
active={isActive}
text={page}
testID={
isActive
? `pagination-item-${page}-active`
: `pagination-item-${page}`
}
/>
</li>
)
})
Expand Down

0 comments on commit cdd462f

Please sign in to comment.