Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ module.exports = {
},
{
files: [
'x-pack/plugins/aiops/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/apm/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/exploratory_view/**/*.{js,mjs,ts,tsx}',
'x-pack/plugins/infra/**/*.{js,mjs,ts,tsx}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ const FieldPanel: FC<FieldPanelProps> = ({
<EuiSpacer size={'m'} />

<EuiButton
data-test-subj="aiopsChangePointDetectionSubmitDashboardAttachButton"
fill
type={'submit'}
fullWidth
Expand Down Expand Up @@ -441,6 +442,7 @@ const FieldPanel: FC<FieldPanelProps> = ({
<EuiFlexGroup alignItems={'center'} gutterSize={'s'}>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="aiopsChangePointDetectionExpandConfigButton"
iconType={isExpanded ? 'arrowDown' : 'arrowRight'}
onClick={setIsExpanded.bind(null, (prevState) => !prevState)}
aria-label={i18n.translate('xpack.aiops.changePointDetection.expandConfigLabel', {
Expand Down Expand Up @@ -480,6 +482,7 @@ const FieldPanel: FC<FieldPanelProps> = ({
id={`panelContextMenu_${panelIndex}`}
button={
<EuiButtonIcon
data-test-subj="aiopsChangePointDetectionContextMenuButton"
aria-label={i18n.translate(
'xpack.aiops.changePointDetection.configActionsLabel',
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const MaxSeriesControl: FC<{
label={inline ? undefined : label}
>
<EuiFieldNumber
data-test-subj="aiopsMaxSeriesControlFieldNumber"
disabled={disabled}
prepend={inline ? label : undefined}
append={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const TableHeader: FC<Props> = ({
<>
<EuiFlexItem grow={false}>
<EuiButtonEmpty
data-test-subj="aiopsLogPatternAnalysisOpenInDiscoverIncludeButton"
size="s"
onClick={() => openInDiscover(QUERY_MODE.INCLUDE)}
iconType="plusInCircle"
Expand All @@ -61,6 +62,7 @@ export const TableHeader: FC<Props> = ({
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonEmpty
data-test-subj="aiopsLogPatternAnalysisOpenInDiscoverExcludeButton"
size="s"
onClick={() => openInDiscover(QUERY_MODE.EXCLUDE)}
iconType="minusInCircle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ export const LoadingCategorization: FC<Props> = ({ onClose }) => (
<EuiFlexItem>
<EuiFlexGroup justifyContent="spaceAround">
<EuiFlexItem grow={false} css={{ textAlign: 'center' }}>
<EuiButton onClick={() => onClose()}>Cancel</EuiButton>
<EuiButton
data-test-subj="aiopsLoadingCategorizationCancelButton"
onClick={() => onClose()}
>
Cancel
</EuiButton>
</EuiFlexItem>
</EuiFlexGroup>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,12 @@ export const LogCategorizationPage: FC = () => {
/>
</EuiButton>
) : (
<EuiButton onClick={() => cancelRequest()}>Cancel</EuiButton>
<EuiButton
data-test-subj="aiopsLogCategorizationPageCancelButton"
onClick={() => cancelRequest()}
>
Cancel
</EuiButton>
)}
</EuiFlexItem>
<EuiFlexItem />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const RandomSamplerRangeSlider = ({
data-test-subj="dvRandomSamplerProbabilityRange"
append={
<EuiButton
data-test-subj="aiopsRandomSamplerRangeSliderApplyButton"
disabled={isInvalidSamplingProbabilityInput}
onClick={() => {
if (setSamplingProbability && isDefined(samplingProbabilityInput)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export const SamplingMenu: FC<Props> = ({ randomSampler, reload }) => {
id="aiopsSamplingOptions"
button={
<EuiButtonEmpty
data-test-subj="aiopsLogPatternAnalysisShowSamplingOptionsButton"
onClick={() => setShowSamplingOptionsPopover(!showSamplingOptionsPopover)}
iconSide="right"
iconType="arrowDown"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,11 @@ export const LogRateAnalysisResults: FC<LogRateAnalysisResultsProps> = ({
)}
{overrides !== undefined ? (
<p>
<EuiButton size="s" onClick={() => startHandler(true)}>
<EuiButton
data-test-subj="aiopsLogRateAnalysisResultsTryToContinueAnalysisButton"
size="s"
onClick={() => startHandler(true)}
>
<FormattedMessage
id="xpack.aiops.logRateAnalysis.page.tryToContinueAnalysisButtonText"
defaultMessage="Try to continue analysis"
Expand Down