[ML] Add data-test-subj to some job management elements (#35284) (#35456)

Backports the following commits to 7.0:
- [ML] Add data-test-subj to some job management elements (#35284)
This commit is contained in:
Robert Oskamp 2019-04-23 13:48:58 +02:00 committed by GitHub
parent 45d56248c0
commit d28f6ab82c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 1 deletions

View file

@ -109,6 +109,7 @@ export const DeleteJobModal = injectI18n(class extends Component {
modal = (
<EuiOverlayMask>
<EuiConfirmModal
data-test-subj="mlDeleteJobConfirmModal"
ref={this.setEL}
title={title}
onCancel={this.closeModal}

View file

@ -136,7 +136,7 @@ class JobFilterBarUI extends Component {
return (
<EuiFlexGroup direction="column">
<EuiFlexItem grow={false}>
<EuiFlexItem data-test-subj="mlJobListSearchBar" grow={false}>
<EuiSearchBar
box={{
incremental: true,

View file

@ -255,6 +255,7 @@ class JobsListUI extends Component {
return (
<EuiBasicTable
data-test-subj="mlJobListTable"
loading={loading === true}
noItemsMessage={loading ?
intl.formatMessage({

View file

@ -24,6 +24,7 @@ export function NewJobButton() {
const buttonEnabled = (checkPermission('canCreateJob') && mlNodesAvailable());
return (
<EuiButton
data-test-subj="mlCreateNewJobButton"
onClick={newJob}
size="s"
disabled={(buttonEnabled === false)}

View file

@ -17,6 +17,7 @@ import { FormattedMessage } from '@kbn/i18n/react';
export const RefreshJobsListButton = ({ onRefreshClick, isRefreshing }) => (
<EuiButtonEmpty
data-test-subj="mlRefreshJobListButton"
onClick={onRefreshClick}
isLoading={isRefreshing}
>