mirror of
https://github.com/apache/superset.git
synced 2026-05-10 18:35:40 +00:00
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:
committed by
GitHub
parent
0262daa228
commit
fc03549299
@@ -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" /> {t('Add Annotation Layer')}
|
||||
<i
|
||||
data-test="add-annotation-layer-button"
|
||||
className="fa fa-plus"
|
||||
/>{' '}
|
||||
{t('Add Annotation Layer')}
|
||||
</ListGroupItem>
|
||||
</OverlayTrigger>
|
||||
</ListGroup>
|
||||
|
||||
Reference in New Issue
Block a user