Skip to content

Commit f4dc420

Browse files
committed
add data-test-subj where possible
1 parent 96ac1aa commit f4dc420

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • src/legacy/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table

src/legacy/core_plugins/kibana/public/management/sections/objects/components/objects_table/components/table/table.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ export class Table extends PureComponent {
178178
{ defaultMessage: 'Type of the saved object' }
179179
),
180180
sortable: false,
181+
'data-test-subj': 'savedObjectsTableRowType',
181182
render: (type, object) => {
182183
return (
183184
<EuiToolTip position="top" content={getSavedObjectLabel(type)}>
@@ -201,6 +202,7 @@ export class Table extends PureComponent {
201202
),
202203
dataType: 'string',
203204
sortable: false,
205+
'data-test-subj': 'savedObjectsTableRowTitle',
204206
render: (title, object) => {
205207
const { path } = object.meta.inAppUrl || {};
206208
const canGoInApp = this.props.canGoInApp(object);
@@ -372,6 +374,9 @@ export class Table extends PureComponent {
372374
pagination={pagination}
373375
selection={selection}
374376
onChange={onTableChange}
377+
rowProps={item => ({
378+
'data-test-subj': `savedObjectsTableRow row-${item.id}`,
379+
})}
375380
/>
376381
</div>
377382
</Fragment>

0 commit comments

Comments
 (0)