Migrate ZoomButtons-test
to react-testing-library (#10104)
This commit is contained in:
parent
cb67457860
commit
2c30e6d909
4 changed files with 29 additions and 80 deletions
|
@ -39,7 +39,7 @@ const ZoomButtons: React.FC<Props> = ({ map }) => {
|
|||
<div className="mx_ZoomButtons">
|
||||
<AccessibleButton
|
||||
onClick={onZoomIn}
|
||||
data-test-id="map-zoom-in-button"
|
||||
data-testid="map-zoom-in-button"
|
||||
title={_t("Zoom in")}
|
||||
className="mx_ZoomButtons_button"
|
||||
>
|
||||
|
@ -47,7 +47,7 @@ const ZoomButtons: React.FC<Props> = ({ map }) => {
|
|||
</AccessibleButton>
|
||||
<AccessibleButton
|
||||
onClick={onZoomOut}
|
||||
data-test-id="map-zoom-out-button"
|
||||
data-testid="map-zoom-out-button"
|
||||
title={_t("Zoom out")}
|
||||
className="mx_ZoomButtons_button"
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue