mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Backports the following commits to 7.0: - [ML] Add data-test-subj to some job management elements (#35284)
This commit is contained in:
parent
45d56248c0
commit
d28f6ab82c
5 changed files with 5 additions and 1 deletions
|
@ -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}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -255,6 +255,7 @@ class JobsListUI extends Component {
|
|||
|
||||
return (
|
||||
<EuiBasicTable
|
||||
data-test-subj="mlJobListTable"
|
||||
loading={loading === true}
|
||||
noItemsMessage={loading ?
|
||||
intl.formatMessage({
|
||||
|
|
|
@ -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)}
|
||||
|
|
|
@ -17,6 +17,7 @@ import { FormattedMessage } from '@kbn/i18n/react';
|
|||
|
||||
export const RefreshJobsListButton = ({ onRefreshClick, isRefreshing }) => (
|
||||
<EuiButtonEmpty
|
||||
data-test-subj="mlRefreshJobListButton"
|
||||
onClick={onRefreshClick}
|
||||
isLoading={isRefreshing}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue