chore: Added data-test attributes for testing (#11254)

* Added data-test attributes for testing

* fixed incorrect naming change

* review changes
This commit is contained in:
adam-stasiak-polidea
2020-10-15 01:12:01 +02:00
committed by GitHub
parent 0262daa228
commit fc03549299
51 changed files with 229 additions and 72 deletions

View File

@@ -113,6 +113,7 @@ class AnnotationLayerControl extends React.PureComponent {
const { theme } = this.props;
return (
<Popover
data-test="annotation-popover"
style={{ maxWidth: 'none' }}
title={
annotation ? t('Edit Annotation Layer') : t('Add Annotation Layer')
@@ -188,7 +189,11 @@ class AnnotationLayerControl extends React.PureComponent {
overlay={this.renderPopover('overlay-new')}
>
<ListGroupItem>
<i className="fa fa-plus" /> &nbsp; {t('Add Annotation Layer')}
<i
data-test="add-annotation-layer-button"
className="fa fa-plus"
/>{' '}
&nbsp; {t('Add Annotation Layer')}
</ListGroupItem>
</OverlayTrigger>
</ListGroup>