Skip to content

Commit

Permalink
Merge pull request #1782 from cozy/fix/viewerToolbar
Browse files Browse the repository at this point in the history
fix: Add data-testid on Viewer Toolbar
  • Loading branch information
JF-Cozy authored Mar 24, 2021
2 parents ddb94ae + 39ebedf commit 5cad3be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react/Viewer/Toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const Toolbar = ({
return (
<div
ref={toolbarRef}
data-testid="viewer-toolbar"
className={cx(styles['viewer-toolbar'], {
[styles['viewer-toolbar--hidden']]: hidden
})}
Expand Down Expand Up @@ -80,7 +81,7 @@ Toolbar.propTypes = {
onMouseEnter: PropTypes.func.isRequired,
onMouseLeave: PropTypes.func.isRequired,
file: PropTypes.object.isRequired,
onClose: PropTypes.func.isRequired
onClose: PropTypes.func
}

export default withViewerLocales(Toolbar)

0 comments on commit 5cad3be

Please sign in to comment.