mirror of
https://github.com/apache/superset.git
synced 2026-05-11 10:55:43 +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
@@ -210,6 +210,7 @@ class DatasourceControl extends React.PureComponent {
|
||||
className=""
|
||||
bsSize="sm"
|
||||
id="datasource_menu"
|
||||
data-test="datasource-menu"
|
||||
>
|
||||
<MenuItem eventKey="3" onClick={this.toggleChangeDatasourceModal}>
|
||||
{t('Change Dataset')}
|
||||
@@ -225,7 +226,11 @@ class DatasourceControl extends React.PureComponent {
|
||||
</MenuItem>
|
||||
)}
|
||||
{this.props.isEditable && (
|
||||
<MenuItem eventKey="3" onClick={this.toggleEditDatasourceModal}>
|
||||
<MenuItem
|
||||
data-test="edit-dataset"
|
||||
eventKey="3"
|
||||
onClick={this.toggleEditDatasourceModal}
|
||||
>
|
||||
{t('Edit Dataset')}
|
||||
</MenuItem>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user