Skip to content

Commit

Permalink
add data-test-subj where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Mar 16, 2020
1 parent 96ac1aa commit f4dc420
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export class Table extends PureComponent {
{ defaultMessage: 'Type of the saved object' }
),
sortable: false,
'data-test-subj': 'savedObjectsTableRowType',
render: (type, object) => {
return (
<EuiToolTip position="top" content={getSavedObjectLabel(type)}>
Expand All @@ -201,6 +202,7 @@ export class Table extends PureComponent {
),
dataType: 'string',
sortable: false,
'data-test-subj': 'savedObjectsTableRowTitle',
render: (title, object) => {
const { path } = object.meta.inAppUrl || {};
const canGoInApp = this.props.canGoInApp(object);
Expand Down Expand Up @@ -372,6 +374,9 @@ export class Table extends PureComponent {
pagination={pagination}
selection={selection}
onChange={onTableChange}
rowProps={item => ({
'data-test-subj': `savedObjectsTableRow row-${item.id}`,
})}
/>
</div>
</Fragment>
Expand Down

0 comments on commit f4dc420

Please sign in to comment.