Upgrade EUI to v19.0.0 (#57284)

* eui to v19.0.0

* typescript updates; idAria removal

* src snapshot updates

* mock euicode and euicodeblock for jest

* x-pack snapshot updates

* mock euicode for jest

* more euicode snapshots

* mock euicode in storyshots

* types/enzyme yarn.lock

* sidenav type update
This commit is contained in:
Greg Thompson 2020-02-14 13:06:31 -06:00 committed by GitHub
parent 356e3a4776
commit 0abfd3c72f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
82 changed files with 616 additions and 1536 deletions

View file

@ -120,7 +120,7 @@
"@elastic/charts": "^17.0.2", "@elastic/charts": "^17.0.2",
"@elastic/datemath": "5.0.2", "@elastic/datemath": "5.0.2",
"@elastic/ems-client": "7.6.0", "@elastic/ems-client": "7.6.0",
"@elastic/eui": "18.3.0", "@elastic/eui": "19.0.0",
"@elastic/filesaver": "1.1.2", "@elastic/filesaver": "1.1.2",
"@elastic/good": "8.1.1-kibana2", "@elastic/good": "8.1.1-kibana2",
"@elastic/numeral": "2.3.5", "@elastic/numeral": "2.3.5",

View file

@ -11,7 +11,7 @@
"devDependencies": { "devDependencies": {
"@elastic/charts": "^17.0.2", "@elastic/charts": "^17.0.2",
"abort-controller": "^3.0.0", "abort-controller": "^3.0.0",
"@elastic/eui": "18.3.0", "@elastic/eui": "19.0.0",
"@kbn/dev-utils": "1.0.0", "@kbn/dev-utils": "1.0.0",
"@kbn/i18n": "1.0.0", "@kbn/i18n": "1.0.0",
"@yarnpkg/lockfile": "^1.1.0", "@yarnpkg/lockfile": "^1.1.0",

View file

@ -77,12 +77,8 @@ Array [
<dd <dd
class="euiDescriptionList__description" class="euiDescriptionList__description"
> >
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
200 200
</code> </code>
</span> </span>
@ -101,12 +97,8 @@ Array [
<dd <dd
class="euiDescriptionList__description" class="euiDescriptionList__description"
> >
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
status:200 status:200
</code> </code>
</span> </span>
@ -125,12 +117,8 @@ Array [
<dd <dd
class="euiDescriptionList__description" class="euiDescriptionList__description"
> >
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
status:[400 TO 499] status:[400 TO 499]
</code> </code>
</span> </span>
@ -149,12 +137,8 @@ Array [
<dd <dd
class="euiDescriptionList__description" class="euiDescriptionList__description"
> >
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
status:[400 TO 499] AND extension:PHP status:[400 TO 499] AND extension:PHP
</code> </code>
</span> </span>
@ -173,12 +157,8 @@ Array [
<dd <dd
class="euiDescriptionList__description" class="euiDescriptionList__description"
> >
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
status:[400 TO 499] AND (extension:php OR extension:html) status:[400 TO 499] AND (extension:php OR extension:html)
</code> </code>
</span> </span>
@ -291,15 +271,9 @@ Array [
<div <div
class="euiSpacer euiSpacer--s" class="euiSpacer euiSpacer--s"
/> />
<div <div>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingSmall" <pre>
> <code>
<pre
class="euiCodeBlock__pre"
>
<code
class="euiCodeBlock__code"
>
{"reason":"Awful error"} {"reason":"Awful error"}
</code> </code>
</pre> </pre>
@ -320,15 +294,9 @@ Array [
<div <div
class="euiSpacer euiSpacer--s" class="euiSpacer euiSpacer--s"
/> />
<div <div>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingSmall" <pre>
> <code>
<pre
class="euiCodeBlock__pre"
>
<code
class="euiCodeBlock__code"
>
{"reason":"Bad error"} {"reason":"Bad error"}
</code> </code>
</pre> </pre>

View file

@ -41,7 +41,7 @@ import {
} from '@elastic/charts'; } from '@elastic/charts';
import { i18n } from '@kbn/i18n'; import { i18n } from '@kbn/i18n';
import { EuiChartThemeType } from '@elastic/eui/src/themes/charts/themes'; import { EuiChartThemeType } from '@elastic/eui/dist/eui_charts_theme';
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import { getServices, timezoneProvider } from '../../../kibana_services'; import { getServices, timezoneProvider } from '../../../kibana_services';

View file

@ -36,6 +36,31 @@ jest.mock('../../../kibana_services', () => {
}; };
}); });
// Mocking to prevent errors with React portal.
// Temporary until https://github.com/elastic/kibana/pull/55877 provides other alternatives.
jest.mock('@elastic/eui/lib/components/code/code_block', () => {
const React = require.requireActual('react');
return {
EuiCodeBlock: ({ children }) => (
<div>
<pre>
<code>{children}</code>
</pre>
</div>
),
};
});
jest.mock('@elastic/eui/lib/components/code/code', () => {
const React = require.requireActual('react');
return {
EuiCode: ({ children }) => (
<span>
<code>{children}</code>
</span>
),
};
});
beforeEach(() => { beforeEach(() => {
jest.clearAllMocks(); jest.clearAllMocks();
}); });

View file

@ -47,28 +47,7 @@ it('builds light themed SASS', async () => {
expect(readFileSync(targetPath, 'utf8').replace(/(\/\*# sourceMappingURL=).*( \*\/)/, '$1...$2')) expect(readFileSync(targetPath, 'utf8').replace(/(\/\*# sourceMappingURL=).*( \*\/)/, '$1...$2'))
.toMatchInlineSnapshot(` .toMatchInlineSnapshot(`
"/* 1 */ "foo bar {
/* 1 */
/**
* 1. Extend beta badges to at least 40% of the container's width
* 2. Fix for IE to ensure badges are visible outside of a <button> tag
*/
/**
* 1. Apply margin to all but last item in the flex.
* 2. Margin gets flipped because of the row-reverse.
*/
/**
* 3. Must supply both values to background-size or some browsers apply the single value to both directions
*/
/**
* 4. Override invalid state with focus state.
*/
/**
* Mixin for use in:
* - EuiCard
* - EuiPageContent
*/
foo bar {
display: -webkit-box; display: -webkit-box;
display: -webkit-flex; display: -webkit-flex;
display: -ms-flexbox; display: -ms-flexbox;
@ -93,28 +72,7 @@ it('builds dark themed SASS', async () => {
expect(readFileSync(targetPath, 'utf8').replace(/(\/\*# sourceMappingURL=).*( \*\/)/, '$1...$2')) expect(readFileSync(targetPath, 'utf8').replace(/(\/\*# sourceMappingURL=).*( \*\/)/, '$1...$2'))
.toMatchInlineSnapshot(` .toMatchInlineSnapshot(`
"/* 1 */ "foo bar {
/* 1 */
/**
* 1. Extend beta badges to at least 40% of the container's width
* 2. Fix for IE to ensure badges are visible outside of a <button> tag
*/
/**
* 1. Apply margin to all but last item in the flex.
* 2. Margin gets flipped because of the row-reverse.
*/
/**
* 3. Must supply both values to background-size or some browsers apply the single value to both directions
*/
/**
* 4. Override invalid state with focus state.
*/
/**
* Mixin for use in:
* - EuiCard
* - EuiPageContent
*/
foo bar {
display: -webkit-box; display: -webkit-box;
display: -webkit-flex; display: -webkit-flex;
display: -ms-flexbox; display: -ms-flexbox;
@ -143,28 +101,7 @@ it('rewrites url imports', async () => {
expect(readFileSync(targetPath, 'utf8').replace(/(\/\*# sourceMappingURL=).*( \*\/)/, '$1...$2')) expect(readFileSync(targetPath, 'utf8').replace(/(\/\*# sourceMappingURL=).*( \*\/)/, '$1...$2'))
.toMatchInlineSnapshot(` .toMatchInlineSnapshot(`
"/* 1 */ "foo bar {
/* 1 */
/**
* 1. Extend beta badges to at least 40% of the container's width
* 2. Fix for IE to ensure badges are visible outside of a <button> tag
*/
/**
* 1. Apply margin to all but last item in the flex.
* 2. Margin gets flipped because of the row-reverse.
*/
/**
* 3. Must supply both values to background-size or some browsers apply the single value to both directions
*/
/**
* 4. Override invalid state with focus state.
*/
/**
* Mixin for use in:
* - EuiCard
* - EuiPageContent
*/
foo bar {
display: -webkit-box; display: -webkit-box;
display: -webkit-flex; display: -webkit-flex;
display: -ms-flexbox; display: -ms-flexbox;

View file

@ -20,16 +20,12 @@ exports[`Field for array setting should render as read only if saving is disable
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="array:test:setting-aria"
title={ title={
<h3> <h3>
Array test setting Array test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -108,16 +104,12 @@ exports[`Field for array setting should render as read only with help text if ov
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="array:test:setting-aria"
title={ title={
<h3> <h3>
Array test setting Array test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -184,9 +176,6 @@ exports[`Field for array setting should render custom setting icon if it is cust
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="array:test:setting-aria"
title={ title={
<h3> <h3>
Array test setting Array test setting
@ -204,7 +193,6 @@ exports[`Field for array setting should render custom setting icon if it is cust
/> />
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -261,16 +249,12 @@ exports[`Field for array setting should render default value if there is no user
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="array:test:setting-aria"
title={ title={
<h3> <h3>
Array test setting Array test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -349,16 +333,12 @@ exports[`Field for array setting should render user value if there is user value
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="array:test:setting-aria"
title={ title={
<h3> <h3>
Array test setting Array test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -432,16 +412,12 @@ exports[`Field for boolean setting should render as read only if saving is disab
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="boolean:test:setting-aria"
title={ title={
<h3> <h3>
Boolean test setting Boolean test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -526,16 +502,12 @@ exports[`Field for boolean setting should render as read only with help text if
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="boolean:test:setting-aria"
title={ title={
<h3> <h3>
Boolean test setting Boolean test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -608,9 +580,6 @@ exports[`Field for boolean setting should render custom setting icon if it is cu
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="boolean:test:setting-aria"
title={ title={
<h3> <h3>
Boolean test setting Boolean test setting
@ -628,7 +597,6 @@ exports[`Field for boolean setting should render custom setting icon if it is cu
/> />
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -691,16 +659,12 @@ exports[`Field for boolean setting should render default value if there is no us
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="boolean:test:setting-aria"
title={ title={
<h3> <h3>
Boolean test setting Boolean test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -785,16 +749,12 @@ exports[`Field for boolean setting should render user value if there is user val
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="boolean:test:setting-aria"
title={ title={
<h3> <h3>
Boolean test setting Boolean test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -874,16 +834,12 @@ exports[`Field for image setting should render as read only if saving is disable
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="image:test:setting-aria"
title={ title={
<h3> <h3>
Image test setting Image test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -963,16 +919,12 @@ exports[`Field for image setting should render as read only with help text if ov
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="image:test:setting-aria"
title={ title={
<h3> <h3>
Image test setting Image test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -1036,9 +988,6 @@ exports[`Field for image setting should render custom setting icon if it is cust
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="image:test:setting-aria"
title={ title={
<h3> <h3>
Image test setting Image test setting
@ -1056,7 +1005,6 @@ exports[`Field for image setting should render custom setting icon if it is cust
/> />
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -1114,16 +1062,12 @@ exports[`Field for image setting should render default value if there is no user
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="image:test:setting-aria"
title={ title={
<h3> <h3>
Image test setting Image test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -1203,16 +1147,12 @@ exports[`Field for image setting should render user value if there is user value
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="image:test:setting-aria"
title={ title={
<h3> <h3>
Image test setting Image test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -1321,16 +1261,12 @@ exports[`Field for json setting should render as read only if saving is disabled
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="json:test:setting-aria"
title={ title={
<h3> <h3>
Json test setting Json test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -1431,16 +1367,12 @@ exports[`Field for json setting should render as read only with help text if ove
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="json:test:setting-aria"
title={ title={
<h3> <h3>
Json test setting Json test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -1526,9 +1458,6 @@ exports[`Field for json setting should render custom setting icon if it is custo
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="json:test:setting-aria"
title={ title={
<h3> <h3>
Json test setting Json test setting
@ -1546,7 +1475,6 @@ exports[`Field for json setting should render custom setting icon if it is custo
/> />
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -1647,16 +1575,12 @@ exports[`Field for json setting should render default value if there is no user
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="json:test:setting-aria"
title={ title={
<h3> <h3>
Json test setting Json test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -1774,16 +1698,12 @@ exports[`Field for json setting should render user value if there is user value
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="json:test:setting-aria"
title={ title={
<h3> <h3>
Json test setting Json test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -1876,16 +1796,12 @@ exports[`Field for markdown setting should render as read only if saving is disa
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="markdown:test:setting-aria"
title={ title={
<h3> <h3>
Markdown test setting Markdown test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -1983,16 +1899,12 @@ exports[`Field for markdown setting should render as read only with help text if
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="markdown:test:setting-aria"
title={ title={
<h3> <h3>
Markdown test setting Markdown test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -2078,9 +1990,6 @@ exports[`Field for markdown setting should render custom setting icon if it is c
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="markdown:test:setting-aria"
title={ title={
<h3> <h3>
Markdown test setting Markdown test setting
@ -2098,7 +2007,6 @@ exports[`Field for markdown setting should render custom setting icon if it is c
/> />
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -2174,16 +2082,12 @@ exports[`Field for markdown setting should render default value if there is no u
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="markdown:test:setting-aria"
title={ title={
<h3> <h3>
Markdown test setting Markdown test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -2281,16 +2185,12 @@ exports[`Field for markdown setting should render user value if there is user va
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="markdown:test:setting-aria"
title={ title={
<h3> <h3>
Markdown test setting Markdown test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -2383,16 +2283,12 @@ exports[`Field for number setting should render as read only if saving is disabl
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="number:test:setting-aria"
title={ title={
<h3> <h3>
Number test setting Number test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -2471,16 +2367,12 @@ exports[`Field for number setting should render as read only with help text if o
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="number:test:setting-aria"
title={ title={
<h3> <h3>
Number test setting Number test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -2547,9 +2439,6 @@ exports[`Field for number setting should render custom setting icon if it is cus
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="number:test:setting-aria"
title={ title={
<h3> <h3>
Number test setting Number test setting
@ -2567,7 +2456,6 @@ exports[`Field for number setting should render custom setting icon if it is cus
/> />
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -2624,16 +2512,12 @@ exports[`Field for number setting should render default value if there is no use
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="number:test:setting-aria"
title={ title={
<h3> <h3>
Number test setting Number test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -2712,16 +2596,12 @@ exports[`Field for number setting should render user value if there is user valu
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="number:test:setting-aria"
title={ title={
<h3> <h3>
Number test setting Number test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -2795,16 +2675,12 @@ exports[`Field for select setting should render as read only if saving is disabl
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="select:test:setting-aria"
title={ title={
<h3> <h3>
Select test setting Select test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -2899,16 +2775,12 @@ exports[`Field for select setting should render as read only with help text if o
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="select:test:setting-aria"
title={ title={
<h3> <h3>
Select test setting Select test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -2991,9 +2863,6 @@ exports[`Field for select setting should render custom setting icon if it is cus
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="select:test:setting-aria"
title={ title={
<h3> <h3>
Select test setting Select test setting
@ -3011,7 +2880,6 @@ exports[`Field for select setting should render custom setting icon if it is cus
/> />
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -3084,16 +2952,12 @@ exports[`Field for select setting should render default value if there is no use
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="select:test:setting-aria"
title={ title={
<h3> <h3>
Select test setting Select test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -3188,16 +3052,12 @@ exports[`Field for select setting should render user value if there is user valu
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="select:test:setting-aria"
title={ title={
<h3> <h3>
Select test setting Select test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -3287,16 +3147,12 @@ exports[`Field for string setting should render as read only if saving is disabl
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="string:test:setting-aria"
title={ title={
<h3> <h3>
String test setting String test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -3375,16 +3231,12 @@ exports[`Field for string setting should render as read only with help text if o
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="string:test:setting-aria"
title={ title={
<h3> <h3>
String test setting String test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -3451,9 +3303,6 @@ exports[`Field for string setting should render custom setting icon if it is cus
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="string:test:setting-aria"
title={ title={
<h3> <h3>
String test setting String test setting
@ -3471,7 +3320,6 @@ exports[`Field for string setting should render custom setting icon if it is cus
/> />
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -3528,16 +3376,12 @@ exports[`Field for string setting should render default value if there is no use
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="string:test:setting-aria"
title={ title={
<h3> <h3>
String test setting String test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -3616,16 +3460,12 @@ exports[`Field for string setting should render user value if there is user valu
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="string:test:setting-aria"
title={ title={
<h3> <h3>
String test setting String test setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -3699,16 +3539,12 @@ exports[`Field for stringWithValidation setting should render as read only if sa
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="string:test-validation:setting-aria"
title={ title={
<h3> <h3>
String test validation setting String test validation setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -3787,16 +3623,12 @@ exports[`Field for stringWithValidation setting should render as read only with
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="string:test-validation:setting-aria"
title={ title={
<h3> <h3>
String test validation setting String test validation setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -3863,9 +3695,6 @@ exports[`Field for stringWithValidation setting should render custom setting ico
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="string:test-validation:setting-aria"
title={ title={
<h3> <h3>
String test validation setting String test validation setting
@ -3883,7 +3712,6 @@ exports[`Field for stringWithValidation setting should render custom setting ico
/> />
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -3940,16 +3768,12 @@ exports[`Field for stringWithValidation setting should render default value if t
/> />
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="string:test-validation:setting-aria"
title={ title={
<h3> <h3>
String test validation setting String test validation setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
@ -4028,16 +3852,12 @@ exports[`Field for stringWithValidation setting should render user value if ther
</React.Fragment> </React.Fragment>
</React.Fragment> </React.Fragment>
} }
fullWidth={false}
gutterSize="l"
idAria="string:test-validation:setting-aria"
title={ title={
<h3> <h3>
String test validation setting String test validation setting
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"

View file

@ -815,7 +815,6 @@ export class Field extends PureComponent<FieldProps, FieldState> {
className="mgtAdvancedSettings__fieldWrapper" className="mgtAdvancedSettings__fieldWrapper"
title={this.renderTitle(setting)} title={this.renderTitle(setting)}
description={this.renderDescription(setting)} description={this.renderDescription(setting)}
idAria={`${setting.name}-aria`}
> >
<EuiFormRow <EuiFormRow
isInvalid={isInvalid} isInvalid={isInvalid}
@ -824,7 +823,6 @@ export class Field extends PureComponent<FieldProps, FieldState> {
helpText={this.renderHelpText(setting)} helpText={this.renderHelpText(setting)}
describedByIds={[`${setting.name}-aria`]} describedByIds={[`${setting.name}-aria`]}
className="mgtAdvancedSettings__fieldRow" className="mgtAdvancedSettings__fieldRow"
// @ts-ignore
hasChildLabel={setting.type !== 'boolean'} hasChildLabel={setting.type !== 'boolean'}
> >
{this.renderField(setting)} {this.renderField(setting)}

View file

@ -23,7 +23,6 @@ import { FieldHook, FIELD_TYPES } from '../hook_form_lib';
interface Props { interface Props {
field: FieldHook; field: FieldHook;
euiFieldProps?: { [key: string]: any }; euiFieldProps?: { [key: string]: any };
idAria?: string;
[key: string]: any; [key: string]: any;
} }

View file

@ -28,12 +28,15 @@ interface Props {
description?: string | JSX.Element; description?: string | JSX.Element;
field?: FieldHook; field?: FieldHook;
euiFieldProps?: Record<string, any>; euiFieldProps?: Record<string, any>;
idAria?: string;
titleTag?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; titleTag?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
children?: React.ReactNode; children?: React.ReactNode;
[key: string]: any; [key: string]: any;
} }
function isTitleString(title: any): title is string {
return typeof title === 'string' || title.type.name === 'FormattedMessage';
}
export const FormRow = ({ export const FormRow = ({
title, title,
idAria, idAria,
@ -43,14 +46,15 @@ export const FormRow = ({
titleTag = 'h4', titleTag = 'h4',
...rest ...rest
}: Props) => { }: Props) => {
let titleWrapped = title; let titleWrapped;
// If a string is provided, create a default Euititle of size "m" // If a string is provided, create a default Euititle of size "m"
const isTitleString = typeof title === 'string' || title.type.name === 'FormattedMessage'; if (isTitleString(title)) {
if (isTitleString) {
// Create the correct title tag // Create the correct title tag
const titleWithHTag = React.createElement(titleTag, undefined, title); const titleWithHTag = React.createElement(titleTag, undefined, title);
titleWrapped = <EuiTitle size="s">{titleWithHTag}</EuiTitle>; titleWrapped = <EuiTitle size="s">{titleWithHTag}</EuiTitle>;
} else {
titleWrapped = title;
} }
if (!children && !field) { if (!children && !field) {
@ -58,8 +62,8 @@ export const FormRow = ({
} }
return ( return (
<EuiDescribedFormGroup title={titleWrapped} description={description} idAria={idAria} fullWidth> <EuiDescribedFormGroup title={titleWrapped} description={description} fullWidth>
{children ? children : <Field field={field!} idAria={idAria} {...rest} />} {children ? children : <Field field={field!} {...rest} />}
</EuiDescribedFormGroup> </EuiDescribedFormGroup>
); );
}; };

View file

@ -21,8 +21,7 @@ import React, { Component } from 'react';
import { I18nProvider } from '@kbn/i18n/react'; import { I18nProvider } from '@kbn/i18n/react';
import { i18n } from '@kbn/i18n'; import { i18n } from '@kbn/i18n';
import { EuiContextMenuPanelDescriptor } from '@elastic/eui'; import { EuiContextMenu, EuiContextMenuPanelDescriptor } from '@elastic/eui';
import { EuiContextMenu } from '@elastic/eui';
import { HttpStart } from 'kibana/public'; import { HttpStart } from 'kibana/public';

View file

@ -17,10 +17,7 @@
* under the License. * under the License.
*/ */
import { import { EuiContextMenuPanelDescriptor, EuiContextMenuPanelItemDescriptor } from '@elastic/eui';
EuiContextMenuPanelDescriptor,
EuiContextMenuPanelItemDescriptor,
} from '@elastic/eui/src/components/context_menu/context_menu';
/** /**
* @public * @public
@ -55,7 +52,8 @@ export interface ShareContext {
* used to order the individual items in a flat list returned by all registered * used to order the individual items in a flat list returned by all registered
* menu providers. * menu providers.
* */ * */
export interface ShareContextMenuPanelItem extends EuiContextMenuPanelItemDescriptor { export interface ShareContextMenuPanelItem extends Omit<EuiContextMenuPanelItemDescriptor, 'name'> {
name: string; // EUI will accept a `ReactNode` for the `name` prop, but `ShareContentMenu` assumes a `string`.
sortOrder: number; sortOrder: number;
} }

View file

@ -7,7 +7,7 @@
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@elastic/eui": "18.3.0", "@elastic/eui": "19.0.0",
"react": "^16.12.0", "react": "^16.12.0",
"react-dom": "^16.12.0" "react-dom": "^16.12.0"
} }

View file

@ -7,7 +7,7 @@
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@elastic/eui": "18.3.0", "@elastic/eui": "19.0.0",
"react": "^16.12.0" "react": "^16.12.0"
} }
} }

View file

@ -8,7 +8,7 @@
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@elastic/eui": "18.3.0", "@elastic/eui": "19.0.0",
"react": "^16.12.0" "react": "^16.12.0"
}, },
"scripts": { "scripts": {

View file

@ -8,7 +8,7 @@
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@elastic/eui": "18.3.0", "@elastic/eui": "19.0.0",
"react": "^16.12.0" "react": "^16.12.0"
}, },
"scripts": { "scripts": {

View file

@ -21,8 +21,6 @@ import { Direction } from '@elastic/eui/src/services/sort/sort_direction';
// TODO: Remove once typescript definitions are in EUI // TODO: Remove once typescript definitions are in EUI
declare module '@elastic/eui' { declare module '@elastic/eui' {
export const EuiSideNav: React.FC<any>;
export const EuiDescribedFormGroup: React.FC<any>;
export const EuiCodeEditor: React.FC<any>; export const EuiCodeEditor: React.FC<any>;
export const Query: any; export const Query: any;
} }

View file

@ -120,10 +120,7 @@ exports[`ErrorGroupOverview -> List should render empty state 1`] = `
className="euiTable euiTable--responsive" className="euiTable euiTable--responsive"
> >
<caption <caption
aria-live="polite"
aria-relevant="text"
className="euiScreenReaderOnly euiTableCaption" className="euiScreenReaderOnly euiTableCaption"
role="status"
/> />
<thead> <thead>
<tr> <tr>
@ -478,10 +475,7 @@ exports[`ErrorGroupOverview -> List should render with data 1`] = `
className="euiTable euiTable--responsive" className="euiTable euiTable--responsive"
> >
<caption <caption
aria-live="polite"
aria-relevant="text"
className="euiScreenReaderOnly euiTableCaption" className="euiScreenReaderOnly euiTableCaption"
role="status"
/> />
<thead> <thead>
<tr> <tr>

View file

@ -27,6 +27,19 @@ Date.now = jest.fn(() => testTime);
// Mock EUI generated ids to be consistently predictable for snapshots. // Mock EUI generated ids to be consistently predictable for snapshots.
jest.mock(`@elastic/eui/lib/components/form/form_row/make_id`, () => () => `generated-id`); jest.mock(`@elastic/eui/lib/components/form/form_row/make_id`, () => () => `generated-id`);
// Mocking to prevent errors with React portal.
// Temporary until https://github.com/elastic/kibana/pull/55877 provides other alternatives.
jest.mock('@elastic/eui/lib/components/code/code', () => {
const React = require.requireActual('react');
return {
EuiCode: ({children, className}) => (
<span>
<code>{children}</code>
</span>
),
};
});
// Jest automatically mocks SVGs to be a plain-text string that isn't an SVG. Canvas uses // Jest automatically mocks SVGs to be a plain-text string that isn't an SVG. Canvas uses
// them in examples, so let's mock a few for tests. // them in examples, so let's mock a few for tests.
jest.mock('../canvas_plugin_src/renderers/shape/shapes', () => ({ jest.mock('../canvas_plugin_src/renderers/shape/shapes', () => ({

View file

@ -21,7 +21,6 @@ export const DenseVectorRequiredParameters = () => {
defaultMessage: defaultMessage:
'Each documents dense vector is encoded as a binary doc value. Its size in bytes is equal to 4 * dimensions + 4.', 'Each documents dense vector is encoded as a binary doc value. Its size in bytes is equal to 4 * dimensions + 4.',
})} })}
idAria="mappingsEditorDimsParameter"
> >
<UseField path="dims" config={getFieldConfig('dims')} component={Field} /> <UseField path="dims" config={getFieldConfig('dims')} component={Field} />
</FormRow> </FormRow>

View file

@ -15,7 +15,6 @@ export const ScaledFloatTypeRequiredParameters = () => {
<FormRow <FormRow
title={<h3>{PARAMETERS_DEFINITION.scaling_factor.title}</h3>} title={<h3>{PARAMETERS_DEFINITION.scaling_factor.title}</h3>}
description={PARAMETERS_DEFINITION.scaling_factor.description} description={PARAMETERS_DEFINITION.scaling_factor.description}
idAria="mappingsEditorScalingFactorParameter"
> >
<UseField path="scaling_factor" config={getFieldConfig('scaling_factor')} component={Field} /> <UseField path="scaling_factor" config={getFieldConfig('scaling_factor')} component={Field} />
</FormRow> </FormRow>

View file

@ -29,7 +29,6 @@ export const TokenCountTypeRequiredParameters = () => {
'The analyzer which should be used to analyze the string value. For best performance, use an analyzer without token filters.', 'The analyzer which should be used to analyze the string value. For best performance, use an analyzer without token filters.',
} }
)} )}
idAria="mappingsEditorAnalyzerParameter"
> >
<AnalyzerParameter <AnalyzerParameter
path="analyzer" path="analyzer"

View file

@ -32,7 +32,6 @@ const fieldsMeta = {
description: i18n.translate('xpack.idxMgmt.templateForm.stepLogistics.nameDescription', { description: i18n.translate('xpack.idxMgmt.templateForm.stepLogistics.nameDescription', {
defaultMessage: 'A unique identifier for this template.', defaultMessage: 'A unique identifier for this template.',
}), }),
idAria: 'stepLogisticsNameDescription',
testSubject: 'nameField', testSubject: 'nameField',
}, },
indexPatterns: { indexPatterns: {
@ -45,7 +44,6 @@ const fieldsMeta = {
defaultMessage: 'The index patterns to apply to the template.', defaultMessage: 'The index patterns to apply to the template.',
} }
), ),
idAria: 'stepLogisticsIndexPatternsDescription',
testSubject: 'indexPatternsField', testSubject: 'indexPatternsField',
}, },
order: { order: {
@ -55,7 +53,6 @@ const fieldsMeta = {
description: i18n.translate('xpack.idxMgmt.templateForm.stepLogistics.orderDescription', { description: i18n.translate('xpack.idxMgmt.templateForm.stepLogistics.orderDescription', {
defaultMessage: 'The merge order when multiple templates match an index.', defaultMessage: 'The merge order when multiple templates match an index.',
}), }),
idAria: 'stepLogisticsOrderDescription',
testSubject: 'orderField', testSubject: 'orderField',
}, },
version: { version: {
@ -65,7 +62,6 @@ const fieldsMeta = {
description: i18n.translate('xpack.idxMgmt.templateForm.stepLogistics.versionDescription', { description: i18n.translate('xpack.idxMgmt.templateForm.stepLogistics.versionDescription', {
defaultMessage: 'A number that identifies the template to external management systems.', defaultMessage: 'A number that identifies the template to external management systems.',
}), }),
idAria: 'stepLogisticsVersionDescription',
testSubject: 'versionField', testSubject: 'versionField',
}, },
}; };
@ -123,11 +119,10 @@ export const StepLogistics: React.FunctionComponent<StepProps> = ({
</EuiFlexGroup> </EuiFlexGroup>
<EuiSpacer size="l" /> <EuiSpacer size="l" />
{/* Name */} {/* Name */}
<FormRow title={name.title} description={name.description} idAria={name.idAria}> <FormRow title={name.title} description={name.description}>
<UseField <UseField
path="name" path="name"
componentProps={{ componentProps={{
idAria: name.idAria,
['data-test-subj']: name.testSubject, ['data-test-subj']: name.testSubject,
euiFieldProps: { disabled: isEditing }, euiFieldProps: { disabled: isEditing },
}} }}
@ -135,35 +130,28 @@ export const StepLogistics: React.FunctionComponent<StepProps> = ({
/> />
</FormRow> </FormRow>
{/* Index patterns */} {/* Index patterns */}
<FormRow <FormRow title={indexPatterns.title} description={indexPatterns.description}>
title={indexPatterns.title}
description={indexPatterns.description}
idAria={indexPatterns.idAria}
>
<UseField <UseField
path="indexPatterns" path="indexPatterns"
componentProps={{ componentProps={{
idAria: indexPatterns.idAria,
['data-test-subj']: indexPatterns.testSubject, ['data-test-subj']: indexPatterns.testSubject,
}} }}
/> />
</FormRow> </FormRow>
{/* Order */} {/* Order */}
<FormRow title={order.title} description={order.description} idAria={order.idAria}> <FormRow title={order.title} description={order.description}>
<UseField <UseField
path="order" path="order"
componentProps={{ componentProps={{
idAria: order.idAria,
['data-test-subj']: order.testSubject, ['data-test-subj']: order.testSubject,
}} }}
/> />
</FormRow> </FormRow>
{/* Version */} {/* Version */}
<FormRow title={version.title} description={version.description} idAria={version.idAria}> <FormRow title={version.title} description={version.description}>
<UseField <UseField
path="version" path="version"
componentProps={{ componentProps={{
idAria: version.idAria,
['data-test-subj']: version.testSubject, ['data-test-subj']: version.testSubject,
}} }}
/> />

View file

@ -58,7 +58,6 @@ export const AnalysisSetupIndicesForm: React.FunctionComponent<{
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="indices"
title={ title={
<h3> <h3>
<FormattedMessage <FormattedMessage
@ -75,13 +74,7 @@ export const AnalysisSetupIndicesForm: React.FunctionComponent<{
} }
> >
<LoadingOverlayWrapper isLoading={isValidating}> <LoadingOverlayWrapper isLoading={isValidating}>
<EuiFormRow <EuiFormRow fullWidth isInvalid={!valid} label={indicesSelectionLabel} labelType="legend">
describedByIds={['indices']}
fullWidth
isInvalid={!valid}
label={indicesSelectionLabel}
labelType="legend"
>
<>{choices}</> <>{choices}</>
</EuiFormRow> </EuiFormRow>
</LoadingOverlayWrapper> </LoadingOverlayWrapper>

View file

@ -59,7 +59,6 @@ export const AnalysisSetupTimerangeForm: React.FunctionComponent<{
}, [endTime]); }, [endTime]);
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="timeRange"
title={ title={
<h3> <h3>
<FormattedMessage <FormattedMessage
@ -75,13 +74,7 @@ export const AnalysisSetupTimerangeForm: React.FunctionComponent<{
/> />
} }
> >
<EuiFormRow <EuiFormRow error={false} fullWidth isInvalid={false} label={startTimeLabel}>
describedByIds={['timeRange']}
error={false}
fullWidth
isInvalid={false}
label={startTimeLabel}
>
<EuiFlexGroup gutterSize="s"> <EuiFlexGroup gutterSize="s">
<EuiFormControlLayout <EuiFormControlLayout
clear={startTime && !disabled ? { onClick: () => setStartTime(undefined) } : undefined} clear={startTime && !disabled ? { onClick: () => setStartTime(undefined) } : undefined}
@ -98,13 +91,7 @@ export const AnalysisSetupTimerangeForm: React.FunctionComponent<{
</EuiFormControlLayout> </EuiFormControlLayout>
</EuiFlexGroup> </EuiFlexGroup>
</EuiFormRow> </EuiFormRow>
<EuiFormRow <EuiFormRow error={false} fullWidth isInvalid={false} label={endTimeLabel}>
describedByIds={['timeRange']}
error={false}
fullWidth
isInvalid={false}
label={endTimeLabel}
>
<EuiFlexGroup gutterSize="s"> <EuiFlexGroup gutterSize="s">
<EuiFormControlLayout <EuiFormControlLayout
clear={endTime && !disabled ? { onClick: () => setEndTime(undefined) } : undefined} clear={endTime && !disabled ? { onClick: () => setEndTime(undefined) } : undefined}

View file

@ -95,7 +95,6 @@ export const FieldsConfigurationPanel = ({
</EuiCallOut> </EuiCallOut>
<EuiSpacer size="m" /> <EuiSpacer size="m" />
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="timestampField"
title={ title={
<h4> <h4>
<FormattedMessage <FormattedMessage
@ -112,7 +111,6 @@ export const FieldsConfigurationPanel = ({
} }
> >
<EuiFormRow <EuiFormRow
describedByIds={['timestampField']}
error={timestampFieldProps.error} error={timestampFieldProps.error}
fullWidth fullWidth
helpText={ helpText={
@ -144,7 +142,6 @@ export const FieldsConfigurationPanel = ({
{displaySettings === 'logs' && ( {displaySettings === 'logs' && (
<> <>
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="tiebreakerField"
title={ title={
<h4> <h4>
<FormattedMessage <FormattedMessage
@ -161,7 +158,6 @@ export const FieldsConfigurationPanel = ({
} }
> >
<EuiFormRow <EuiFormRow
describedByIds={['tiebreakerField']}
error={tiebreakerFieldProps.error} error={tiebreakerFieldProps.error}
fullWidth fullWidth
helpText={ helpText={
@ -195,7 +191,6 @@ export const FieldsConfigurationPanel = ({
{displaySettings === 'metrics' && ( {displaySettings === 'metrics' && (
<> <>
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="containerField"
title={ title={
<h4> <h4>
<FormattedMessage <FormattedMessage
@ -212,7 +207,6 @@ export const FieldsConfigurationPanel = ({
} }
> >
<EuiFormRow <EuiFormRow
describedByIds={['containerField']}
error={containerFieldProps.error} error={containerFieldProps.error}
fullWidth fullWidth
helpText={ helpText={
@ -242,7 +236,6 @@ export const FieldsConfigurationPanel = ({
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="hostNameField"
title={ title={
<h4> <h4>
<FormattedMessage <FormattedMessage
@ -259,7 +252,6 @@ export const FieldsConfigurationPanel = ({
} }
> >
<EuiFormRow <EuiFormRow
describedByIds={['hostNameField']}
error={hostFieldProps.error} error={hostFieldProps.error}
fullWidth fullWidth
helpText={ helpText={
@ -289,7 +281,6 @@ export const FieldsConfigurationPanel = ({
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="podField"
title={ title={
<h4> <h4>
<FormattedMessage <FormattedMessage
@ -306,7 +297,6 @@ export const FieldsConfigurationPanel = ({
} }
> >
<EuiFormRow <EuiFormRow
describedByIds={['podField']}
error={podFieldProps.error} error={podFieldProps.error}
fullWidth fullWidth
helpText={ helpText={

View file

@ -45,7 +45,6 @@ export const IndicesConfigurationPanel = ({
<EuiSpacer size="m" /> <EuiSpacer size="m" />
{displaySettings === 'metrics' && ( {displaySettings === 'metrics' && (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="metricIndices"
title={ title={
<h4> <h4>
<FormattedMessage <FormattedMessage
@ -62,7 +61,6 @@ export const IndicesConfigurationPanel = ({
} }
> >
<EuiFormRow <EuiFormRow
describedByIds={['metricIndices']}
error={metricAliasFieldProps.error} error={metricAliasFieldProps.error}
fullWidth fullWidth
helpText={ helpText={
@ -95,7 +93,6 @@ export const IndicesConfigurationPanel = ({
)} )}
{displaySettings === 'logs' && ( {displaySettings === 'logs' && (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="logIndices"
title={ title={
<h4> <h4>
<FormattedMessage <FormattedMessage
@ -112,7 +109,6 @@ export const IndicesConfigurationPanel = ({
} }
> >
<EuiFormRow <EuiFormRow
describedByIds={['logIndices']}
error={logAliasFieldProps.error} error={logAliasFieldProps.error}
fullWidth fullWidth
helpText={ helpText={

View file

@ -39,7 +39,6 @@ export const NameConfigurationPanel = ({
</EuiTitle> </EuiTitle>
<EuiSpacer size="m" /> <EuiSpacer size="m" />
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="name"
title={ title={
<h4> <h4>
<FormattedMessage id="xpack.infra.sourceConfiguration.nameLabel" defaultMessage="Name" /> <FormattedMessage id="xpack.infra.sourceConfiguration.nameLabel" defaultMessage="Name" />
@ -53,7 +52,6 @@ export const NameConfigurationPanel = ({
} }
> >
<EuiFormRow <EuiFormRow
describedByIds={['name']}
error={nameFieldProps.error} error={nameFieldProps.error}
fullWidth fullWidth
isInvalid={nameFieldProps.isInvalid} isInvalid={nameFieldProps.isInvalid}

View file

@ -26,23 +26,6 @@ declare module '@elastic/eui' {
onClick?: React.MouseEventHandler<Element>; onClick?: React.MouseEventHandler<Element>;
} }
type EuiSideNavProps = CommonProps & {
style?: any;
items: Array<{
id: string | number;
name: string;
items: Array<{
id: string;
name: string;
onClick?: () => void;
}>;
}>;
mobileTitle?: React.ReactNode;
toggleOpenOnMobile?: () => void;
isOpenOnMobile?: boolean;
};
export const EuiSideNav: React.FC<EuiSideNavProps>;
type EuiSizesResponsive = 'xs' | 's' | 'm' | 'l' | 'xl'; type EuiSizesResponsive = 'xs' | 's' | 'm' | 'l' | 'xl';
type EuiResponsiveProps = CommonProps & { type EuiResponsiveProps = CommonProps & {
children: React.ReactNode; children: React.ReactNode;

View file

@ -7,7 +7,7 @@
import { ReactWrapper, ShallowWrapper } from 'enzyme'; import { ReactWrapper, ShallowWrapper } from 'enzyme';
import React from 'react'; import React from 'react';
import { act } from 'react-dom/test-utils'; import { act } from 'react-dom/test-utils';
import { EuiComboBox, EuiSideNav, EuiPopover } from '@elastic/eui'; import { EuiComboBox, EuiSideNav, EuiSideNavItemType, EuiPopover } from '@elastic/eui';
import { changeColumn } from '../state_helpers'; import { changeColumn } from '../state_helpers';
import { import {
IndexPatternDimensionPanel, IndexPatternDimensionPanel,
@ -303,11 +303,12 @@ describe('IndexPatternDimensionPanel', () => {
openPopover(); openPopover();
const options = (wrapper.find(EuiSideNav).prop('items')[0].items as unknown) as Array<{ interface ItemType {
name: string; name: string;
className: string;
'data-test-subj': string; 'data-test-subj': string;
}>; }
const items: Array<EuiSideNavItemType<ItemType>> = wrapper.find(EuiSideNav).prop('items');
const options = (items[0].items as unknown) as ItemType[];
expect(options.find(({ name }) => name === 'Minimum')!['data-test-subj']).not.toContain( expect(options.find(({ name }) => name === 'Minimum')!['data-test-subj']).not.toContain(
'Incompatible' 'Incompatible'
@ -883,12 +884,20 @@ describe('IndexPatternDimensionPanel', () => {
openPopover(); openPopover();
expect( interface ItemType {
wrapper name: React.ReactNode;
.find(EuiSideNav) }
.prop('items')[0] const items: Array<EuiSideNavItemType<ItemType>> = wrapper.find(EuiSideNav).prop('items');
.items.map(({ name }) => name) const options = (items[0].items as unknown) as ItemType[];
).toEqual(['Unique count', 'Average', 'Count', 'Maximum', 'Minimum', 'Sum']);
expect(options.map(({ name }: { name: React.ReactNode }) => name)).toEqual([
'Unique count',
'Average',
'Count',
'Maximum',
'Minimum',
'Sum',
]);
}); });
it('should add a column on selection of a field', () => { it('should add a column on selection of a field', () => {

View file

@ -23,7 +23,6 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
); );
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -32,12 +31,7 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
/> />
} }
> >
<EuiFormRow <EuiFormRow label={title} error={validation.message} isInvalid={validation.valid === false}>
label={title}
describedByIds={['description']}
error={validation.message}
isInvalid={validation.valid === false}
>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -20,7 +20,6 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -29,12 +28,7 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
/> />
} }
> >
<EuiFormRow <EuiFormRow label={title} error={validation.message} isInvalid={validation.valid === false}>
label={title}
describedByIds={['description']}
error={validation.message}
isInvalid={validation.valid === false}
>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -20,7 +20,6 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -29,12 +28,7 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
/> />
} }
> >
<EuiFormRow <EuiFormRow label={title} error={validation.message} isInvalid={validation.valid === false}>
label={title}
describedByIds={['description']}
error={validation.message}
isInvalid={validation.valid === false}
>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -20,7 +20,6 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -29,12 +28,7 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
/> />
} }
> >
<EuiFormRow <EuiFormRow label={title} error={validation.message} isInvalid={validation.valid === false}>
label={title}
describedByIds={['description']}
error={validation.message}
isInvalid={validation.valid === false}
>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -15,7 +15,6 @@ export const Description: FC = memo(({ children }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -24,7 +23,7 @@ export const Description: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -24,7 +24,6 @@ export const Description: FC = memo(({ children }) => {
); );
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="calendars_description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -43,7 +42,7 @@ export const Description: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow describedByIds={['calendars_description']}> <EuiFormRow>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -26,7 +26,6 @@ export const Description: FC = memo(({ children }) => {
<EuiDescribedFormGroup <EuiDescribedFormGroup
fullWidth fullWidth
className="ml-custom-urls-selection" className="ml-custom-urls-selection"
idAria="custom_urls_description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -45,7 +44,7 @@ export const Description: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow describedByIds={['custom_urls_description']} fullWidth> <EuiFormRow fullWidth>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -18,7 +18,6 @@ export const Description: FC = memo(({ children }) => {
); );
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -27,7 +26,7 @@ export const Description: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -18,7 +18,6 @@ export const Description: FC = memo(({ children }) => {
); );
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -27,7 +26,7 @@ export const Description: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -20,7 +20,6 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -29,12 +28,7 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
/> />
} }
> >
<EuiFormRow <EuiFormRow label={title} error={validation.message} isInvalid={validation.valid === false}>
label={title}
describedByIds={['description']}
error={validation.message}
isInvalid={validation.valid === false}
>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -15,7 +15,6 @@ export const Description: FC = memo(({ children }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -24,7 +23,7 @@ export const Description: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -22,13 +22,8 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
'A unique identifier for the job. Spaces and the characters / ? , " < > | * are not allowed', 'A unique identifier for the job. Spaces and the characters / ? , " < > | * are not allowed',
}); });
return ( return (
<EuiDescribedFormGroup idAria="description" title={<h3>{title}</h3>} description={description}> <EuiDescribedFormGroup title={<h3>{title}</h3>} description={description}>
<EuiFormRow <EuiFormRow label={title} error={validation.message} isInvalid={validation.valid === false}>
label={title}
describedByIds={['description']}
error={validation.message}
isInvalid={validation.valid === false}
>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -18,7 +18,6 @@ export const AggDescription: FC = memo(({ children }) => {
); );
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -27,7 +26,7 @@ export const AggDescription: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>
@ -43,7 +42,6 @@ export const FieldDescription: FC = memo(({ children }) => {
); );
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -52,7 +50,7 @@ export const FieldDescription: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>
@ -68,7 +66,6 @@ export const ByFieldDescription: FC = memo(({ children }) => {
); );
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -77,7 +74,7 @@ export const ByFieldDescription: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>
@ -93,7 +90,6 @@ export const OverFieldDescription: FC = memo(({ children }) => {
); );
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -102,7 +98,7 @@ export const OverFieldDescription: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>
@ -118,7 +114,6 @@ export const PartitionFieldDescription: FC = memo(({ children }) => {
); );
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -127,7 +122,7 @@ export const PartitionFieldDescription: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>
@ -143,7 +138,6 @@ export const ExcludeFrequentDescription: FC = memo(({ children }) => {
); );
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -152,7 +146,7 @@ export const ExcludeFrequentDescription: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>
@ -169,7 +163,6 @@ export const DescriptionDescription: FC = memo(({ children }) => {
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
fullWidth={true} fullWidth={true}
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -178,7 +171,7 @@ export const DescriptionDescription: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']} fullWidth={true}> <EuiFormRow label={title} fullWidth={true}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -20,7 +20,6 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -29,12 +28,7 @@ export const Description: FC<Props> = memo(({ children, validation }) => {
/> />
} }
> >
<EuiFormRow <EuiFormRow label={title} error={validation.message} isInvalid={validation.valid === false}>
label={title}
describedByIds={['description']}
error={validation.message}
isInvalid={validation.valid === false}
>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -18,7 +18,6 @@ export const Description: FC<Props> = memo(({ children, isOptional }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<> <>
@ -36,7 +35,7 @@ export const Description: FC<Props> = memo(({ children, isOptional }) => {
</> </>
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -15,7 +15,6 @@ export const Description: FC = memo(({ children }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -24,7 +23,7 @@ export const Description: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -15,7 +15,6 @@ export const Description: FC = memo(({ children }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -24,7 +23,7 @@ export const Description: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -22,7 +22,6 @@ export const Description: FC<Props> = memo(({ children, jobType }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -31,7 +30,7 @@ export const Description: FC<Props> = memo(({ children, jobType }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>
@ -42,7 +41,6 @@ export const Description: FC<Props> = memo(({ children, jobType }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -51,7 +49,7 @@ export const Description: FC<Props> = memo(({ children, jobType }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -15,7 +15,6 @@ export const Description: FC = memo(({ children }) => {
}); });
return ( return (
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="description"
title={<h3>{title}</h3>} title={<h3>{title}</h3>}
description={ description={
<FormattedMessage <FormattedMessage
@ -24,7 +23,7 @@ export const Description: FC = memo(({ children }) => {
/> />
} }
> >
<EuiFormRow label={title} describedByIds={['description']}> <EuiFormRow label={title}>
<>{children}</> <>{children}</>
</EuiFormRow> </EuiFormRow>
</EuiDescribedFormGroup> </EuiDescribedFormGroup>

View file

@ -98,7 +98,6 @@ export const JobSettingsForm: FC<JobSettingsFormProps> = ({
<> <>
<EuiForm> <EuiForm>
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="ml_aria_label_new_job_recognizer_job_prefix"
title={ title={
<h4> <h4>
<FormattedMessage <FormattedMessage
@ -121,7 +120,6 @@ export const JobSettingsForm: FC<JobSettingsFormProps> = ({
defaultMessage="Job ID prefix" defaultMessage="Job ID prefix"
/> />
} }
describedByIds={['ml_aria_label_new_job_recognizer_job_prefix']}
isInvalid={!!validationResult.jobPrefix} isInvalid={!!validationResult.jobPrefix}
error={ error={
<> <>
@ -209,7 +207,7 @@ export const JobSettingsForm: FC<JobSettingsFormProps> = ({
<EuiSpacer size="l" /> <EuiSpacer size="l" />
<EuiAccordion <EuiAccordion
id="advancedOptions" id="advancedOptions"
area-label={i18n.translate('xpack.ml.newJob.recognize.advancedSettingsAriaLabel', { aria-label={i18n.translate('xpack.ml.newJob.recognize.advancedSettingsAriaLabel', {
defaultMessage: 'Advanced settings', defaultMessage: 'Advanced settings',
})} })}
buttonContent={ buttonContent={
@ -221,7 +219,6 @@ export const JobSettingsForm: FC<JobSettingsFormProps> = ({
paddingSize="l" paddingSize="l"
> >
<EuiDescribedFormGroup <EuiDescribedFormGroup
idAria="ml_aria_label_new_job_dedicated_index"
title={ title={
<h4> <h4>
<FormattedMessage <FormattedMessage
@ -265,7 +262,7 @@ export const JobSettingsForm: FC<JobSettingsFormProps> = ({
onClick={() => { onClick={() => {
onSubmit(formState); onSubmit(formState);
}} }}
area-label={i18n.translate('xpack.ml.newJob.recognize.createJobButtonAriaLabel', { aria-label={i18n.translate('xpack.ml.newJob.recognize.createJobButtonAriaLabel', {
defaultMessage: 'Create Job', defaultMessage: 'Create Job',
})} })}
> >

View file

@ -193,15 +193,22 @@ exports[`ExplainCollectionEnabled should explain about xpack.monitoring.collecti
paddingSize="l" paddingSize="l"
transparentBackground={false} transparentBackground={false}
> >
<Portal
containerInfo={
<div>
xpack.monitoring.collection.enabled
</div>
}
>
xpack.monitoring.collection.enabled
</Portal>
<span <span
className="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" className="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline"
style={Object {}} style={Object {}}
> >
<code <code
className="euiCodeBlock__code" className="euiCodeBlock__code"
> />
xpack.monitoring.collection.enabled
</code>
</span> </span>
</EuiCodeBlockImpl> </EuiCodeBlockImpl>
</EuiCode> </EuiCode>
@ -214,15 +221,22 @@ exports[`ExplainCollectionEnabled should explain about xpack.monitoring.collecti
paddingSize="l" paddingSize="l"
transparentBackground={false} transparentBackground={false}
> >
<Portal
containerInfo={
<div>
-1
</div>
}
>
-1
</Portal>
<span <span
className="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" className="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline"
style={Object {}} style={Object {}}
> >
<code <code
className="euiCodeBlock__code" className="euiCodeBlock__code"
> />
-1
</code>
</span> </span>
</EuiCodeBlockImpl> </EuiCodeBlockImpl>
</EuiCode> </EuiCode>

View file

@ -366,15 +366,22 @@ exports[`ExplainCollectionInterval collection interval setting updates should sh
paddingSize="l" paddingSize="l"
transparentBackground={false} transparentBackground={false}
> >
<Portal
containerInfo={
<div>
xpack.monitoring.collection.interval
</div>
}
>
xpack.monitoring.collection.interval
</Portal>
<span <span
className="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" className="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline"
style={Object {}} style={Object {}}
> >
<code <code
className="euiCodeBlock__code" className="euiCodeBlock__code"
> />
xpack.monitoring.collection.interval
</code>
</span> </span>
</EuiCodeBlockImpl> </EuiCodeBlockImpl>
</EuiCode> </EuiCode>
@ -387,15 +394,22 @@ exports[`ExplainCollectionInterval collection interval setting updates should sh
paddingSize="l" paddingSize="l"
transparentBackground={false} transparentBackground={false}
> >
<Portal
containerInfo={
<div>
-1
</div>
}
>
-1
</Portal>
<span <span
className="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" className="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline"
style={Object {}} style={Object {}}
> >
<code <code
className="euiCodeBlock__code" className="euiCodeBlock__code"
> />
-1
</code>
</span> </span>
</EuiCodeBlockImpl> </EuiCodeBlockImpl>
</EuiCode> </EuiCode>
@ -682,15 +696,22 @@ exports[`ExplainCollectionInterval should explain about xpack.monitoring.collect
paddingSize="l" paddingSize="l"
transparentBackground={false} transparentBackground={false}
> >
<Portal
containerInfo={
<div>
xpack.monitoring.collection.interval
</div>
}
>
xpack.monitoring.collection.interval
</Portal>
<span <span
className="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" className="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline"
style={Object {}} style={Object {}}
> >
<code <code
className="euiCodeBlock__code" className="euiCodeBlock__code"
> />
xpack.monitoring.collection.interval
</code>
</span> </span>
</EuiCodeBlockImpl> </EuiCodeBlockImpl>
</EuiCode> </EuiCode>
@ -703,15 +724,22 @@ exports[`ExplainCollectionInterval should explain about xpack.monitoring.collect
paddingSize="l" paddingSize="l"
transparentBackground={false} transparentBackground={false}
> >
<Portal
containerInfo={
<div>
-1
</div>
}
>
-1
</Portal>
<span <span
className="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" className="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline"
style={Object {}} style={Object {}}
> >
<code <code
className="euiCodeBlock__code" className="euiCodeBlock__code"
> />
-1
</code>
</span> </span>
</EuiCodeBlockImpl> </EuiCodeBlockImpl>
</EuiCode> </EuiCode>

View file

@ -26,32 +26,20 @@ Array [
> >
<p> <p>
We checked the We checked the
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
esProd001 esProd001
</code> </code>
</span> </span>
settings for settings for
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.exporters xpack.monitoring.exporters
</code> </code>
</span> </span>
, and found the reason: , and found the reason:
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
myMonitoringClusterExporter1 myMonitoringClusterExporter1
</code> </code>
</span> </span>
@ -59,32 +47,20 @@ Array [
</p> </p>
<p> <p>
Using monitoring exporters to ship the monitoring data to a remote monitoring cluster is highly recommended as it keeps the integrity of the monitoring data safe no matter what the state of the production cluster. However, as this instance of Kibana could not find any monitoring data, there seems to be a problem with the Using monitoring exporters to ship the monitoring data to a remote monitoring cluster is highly recommended as it keeps the integrity of the monitoring data safe no matter what the state of the production cluster. However, as this instance of Kibana could not find any monitoring data, there seems to be a problem with the
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.exporters xpack.monitoring.exporters
</code> </code>
</span> </span>
configuration, or the configuration, or the
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.elasticsearch xpack.monitoring.elasticsearch
</code> </code>
</span> </span>
settings in settings in
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
kibana.yml kibana.yml
</code> </code>
</span> </span>
@ -92,22 +68,14 @@ Array [
</p> </p>
<p> <p>
Check that the intended exporters are enabled for sending statistics to the monitoring cluster, and that the monitoring cluster host matches the Check that the intended exporters are enabled for sending statistics to the monitoring cluster, and that the monitoring cluster host matches the
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.elasticsearch xpack.monitoring.elasticsearch
</code> </code>
</span> </span>
setting in setting in
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
kibana.yml kibana.yml
</code> </code>
</span> </span>

View file

@ -8,6 +8,19 @@ import React from 'react';
import { renderWithIntl } from '../../../../../../../../../test_utils/enzyme_helpers'; import { renderWithIntl } from '../../../../../../../../../test_utils/enzyme_helpers';
import { ExplainExporters, ExplainExportersCloud } from '../exporters'; import { ExplainExporters, ExplainExportersCloud } from '../exporters';
// Mocking to prevent errors with React portal.
// Temporary until https://github.com/elastic/kibana/pull/55877 provides other alternatives.
jest.mock('@elastic/eui/lib/components/code/code', () => {
const React = require.requireActual('react');
return {
EuiCode: ({ children }) => (
<span>
<code>{children}</code>
</span>
),
};
});
describe('ExplainExporters', () => { describe('ExplainExporters', () => {
test('should explain about xpack.monitoring.exporters setting', () => { test('should explain about xpack.monitoring.exporters setting', () => {
const reason = { const reason = {

View file

@ -26,32 +26,20 @@ Array [
> >
<p> <p>
We checked the cluster settings and found that We checked the cluster settings and found that
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.enabled xpack.monitoring.enabled
</code> </code>
</span> </span>
is set to is set to
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
false false
</code> </code>
</span> </span>
set, which disables monitoring. Removing the set, which disables monitoring. Removing the
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.enabled: false xpack.monitoring.enabled: false
</code> </code>
</span> </span>

View file

@ -8,6 +8,19 @@ import React from 'react';
import { renderWithIntl } from '../../../../../../../../../test_utils/enzyme_helpers'; import { renderWithIntl } from '../../../../../../../../../test_utils/enzyme_helpers';
import { ExplainPluginEnabled } from '../plugin_enabled'; import { ExplainPluginEnabled } from '../plugin_enabled';
// Mocking to prevent errors with React portal.
// Temporary until https://github.com/elastic/kibana/pull/55877 provides other alternatives.
jest.mock('@elastic/eui/lib/components/code/code', () => {
const React = require.requireActual('react');
return {
EuiCode: ({ children }) => (
<span>
<code>{children}</code>
</span>
),
};
});
describe('ExplainPluginEnabled', () => { describe('ExplainPluginEnabled', () => {
test('should explain about xpack.monitoring.enabled setting', () => { test('should explain about xpack.monitoring.enabled setting', () => {
const reason = { const reason = {

View file

@ -26,22 +26,14 @@ Array [
> >
<p> <p>
We checked the cluster settings and found that We checked the cluster settings and found that
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.collection.interval xpack.monitoring.collection.interval
</code> </code>
</span> </span>
is set to is set to
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
-1 -1
</code> </code>
</span> </span>
@ -109,32 +101,20 @@ Array [
> >
<p> <p>
We checked the We checked the
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
node001foo node001foo
</code> </code>
</span> </span>
settings for settings for
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.exporters xpack.monitoring.exporters
</code> </code>
</span> </span>
, and found the reason: , and found the reason:
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
myMonitoringClusterExporter1 myMonitoringClusterExporter1
</code> </code>
</span> </span>
@ -142,32 +122,20 @@ Array [
</p> </p>
<p> <p>
Using monitoring exporters to ship the monitoring data to a remote monitoring cluster is highly recommended as it keeps the integrity of the monitoring data safe no matter what the state of the production cluster. However, as this instance of Kibana could not find any monitoring data, there seems to be a problem with the Using monitoring exporters to ship the monitoring data to a remote monitoring cluster is highly recommended as it keeps the integrity of the monitoring data safe no matter what the state of the production cluster. However, as this instance of Kibana could not find any monitoring data, there seems to be a problem with the
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.exporters xpack.monitoring.exporters
</code> </code>
</span> </span>
configuration, or the configuration, or the
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.elasticsearch xpack.monitoring.elasticsearch
</code> </code>
</span> </span>
settings in settings in
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
kibana.yml kibana.yml
</code> </code>
</span> </span>
@ -175,22 +143,14 @@ Array [
</p> </p>
<p> <p>
Check that the intended exporters are enabled for sending statistics to the monitoring cluster, and that the monitoring cluster host matches the Check that the intended exporters are enabled for sending statistics to the monitoring cluster, and that the monitoring cluster host matches the
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.elasticsearch xpack.monitoring.elasticsearch
</code> </code>
</span> </span>
setting in setting in
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
kibana.yml kibana.yml
</code> </code>
</span> </span>
@ -277,32 +237,20 @@ Array [
> >
<p> <p>
We checked the node001foo settings and found that We checked the node001foo settings and found that
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.enabled xpack.monitoring.enabled
</code> </code>
</span> </span>
is set to is set to
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
false false
</code> </code>
</span> </span>
set, which disables monitoring. Removing the set, which disables monitoring. Removing the
<span <span>
class="euiCodeBlock euiCodeBlock--fontSmall euiCodeBlock--paddingLarge euiCodeBlock--inline" <code>
>
<code
class="euiCodeBlock__code"
>
xpack.monitoring.enabled: false xpack.monitoring.enabled: false
</code> </code>
</span> </span>

View file

@ -8,6 +8,19 @@ import React from 'react';
import { renderWithIntl } from '../../../../../../../../test_utils/enzyme_helpers'; import { renderWithIntl } from '../../../../../../../../test_utils/enzyme_helpers';
import { ReasonFound } from '../'; import { ReasonFound } from '../';
// Mocking to prevent errors with React portal.
// Temporary until https://github.com/elastic/kibana/pull/55877 provides other alternatives.
jest.mock('@elastic/eui/lib/components/code/code', () => {
const React = require.requireActual('react');
return {
EuiCode: ({ children }) => (
<span>
<code>{children}</code>
</span>
),
};
});
const enabler = {}; const enabler = {};
describe('ReasonFound', () => { describe('ReasonFound', () => {

View file

@ -5,27 +5,28 @@ Array [
<div <div
class="euiForm" class="euiForm"
> >
<div <fieldset
aria-describedby="mockId"
aria-labelledby="mockId-title"
class="euiDescribedFormGroup euiDescribedFormGroup--fullWidth" class="euiDescribedFormGroup euiDescribedFormGroup--fullWidth"
role="group"
> >
<legend
class="euiScreenReaderOnly"
/>
<div <div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive" class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
> >
<div <div
class="euiFlexItem" class="euiFlexItem"
> >
<h2 <span>
class="euiTitle euiTitle--small euiTitle euiTitle--xsmall euiDescribedFormGroup__title" <h2
id="mockId-title" aria-hidden="true"
> class="euiTitle euiTitle--small euiTitle euiTitle--xsmall euiDescribedFormGroup__title"
Name >
</h2> Name
</h2>
</span>
<div <div
class="euiText euiText--small euiDescribedFormGroup__description" class="euiText euiText--small euiDescribedFormGroup__description"
id="mockId"
> >
<div <div
class="euiTextColor euiTextColor--subdued" class="euiTextColor euiTextColor--subdued"
@ -82,28 +83,29 @@ Array [
</div> </div>
</div> </div>
</div> </div>
</div> </fieldset>
<div <fieldset
aria-describedby="mockId"
aria-labelledby="mockId-title"
class="euiDescribedFormGroup euiDescribedFormGroup--fullWidth" class="euiDescribedFormGroup euiDescribedFormGroup--fullWidth"
role="group"
> >
<legend
class="euiScreenReaderOnly"
/>
<div <div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive" class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
> >
<div <div
class="euiFlexItem" class="euiFlexItem"
> >
<h2 <span>
class="euiTitle euiTitle--small euiTitle euiTitle--xsmall euiDescribedFormGroup__title" <h2
id="mockId-title" aria-hidden="true"
> class="euiTitle euiTitle--small euiTitle euiTitle--xsmall euiDescribedFormGroup__title"
Seed nodes for cluster discovery >
</h2> Seed nodes for cluster discovery
</h2>
</span>
<div <div
class="euiText euiText--small euiDescribedFormGroup__description" class="euiText euiText--small euiDescribedFormGroup__description"
id="mockId"
> >
<div <div
class="euiTextColor euiTextColor--subdued" class="euiTextColor euiTextColor--subdued"
@ -194,28 +196,29 @@ Array [
</div> </div>
</div> </div>
</div> </div>
</div> </fieldset>
<div <fieldset
aria-describedby="mockId"
aria-labelledby="mockId-title"
class="euiDescribedFormGroup euiDescribedFormGroup--fullWidth" class="euiDescribedFormGroup euiDescribedFormGroup--fullWidth"
role="group"
> >
<legend
class="euiScreenReaderOnly"
/>
<div <div
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive" class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
> >
<div <div
class="euiFlexItem" class="euiFlexItem"
> >
<h2 <span>
class="euiTitle euiTitle--small euiTitle euiTitle--xsmall euiDescribedFormGroup__title" <h2
id="mockId-title" aria-hidden="true"
> class="euiTitle euiTitle--small euiTitle euiTitle--xsmall euiDescribedFormGroup__title"
Make remote cluster optional >
</h2> Make remote cluster optional
</h2>
</span>
<div <div
class="euiText euiText--small euiDescribedFormGroup__description" class="euiText euiText--small euiDescribedFormGroup__description"
id="mockId"
> >
<div <div
class="euiTextColor euiTextColor--subdued" class="euiTextColor euiTextColor--subdued"
@ -302,7 +305,7 @@ Array [
</div> </div>
</div> </div>
</div> </div>
</div> </fieldset>
</div>, </div>,
<div <div
class="euiSpacer euiSpacer--l" class="euiSpacer euiSpacer--l"

View file

@ -91,10 +91,7 @@ Array [
> >
<EuiScreenReaderOnly> <EuiScreenReaderOnly>
<caption <caption
aria-live="polite"
aria-relevant="text"
className="euiScreenReaderOnly euiTableCaption" className="euiScreenReaderOnly euiTableCaption"
role="status"
> >
<EuiDelayRender <EuiDelayRender
delay={500} delay={500}
@ -297,10 +294,7 @@ Array [
> >
<EuiScreenReaderOnly> <EuiScreenReaderOnly>
<caption <caption
aria-live="polite"
aria-relevant="text"
className="euiScreenReaderOnly euiTableCaption" className="euiScreenReaderOnly euiTableCaption"
role="status"
> >
<EuiDelayRender <EuiDelayRender
delay={500} delay={500}

View file

@ -333,6 +333,7 @@ exports[`NoteCardBody renders correctly against snapshot 1`] = `
"graphic": "#e7664c", "graphic": "#e7664c",
}, },
}, },
"euiPaletteColorBlindKeys": "'euiColorVis0', 'euiColorVis1', 'euiColorVis2', 'euiColorVis3', 'euiColorVis4', 'euiColorVis5', 'euiColorVis6', 'euiColorVis7', 'euiColorVis8', 'euiColorVis9'",
"euiPanelPaddingModifiers": Object { "euiPanelPaddingModifiers": Object {
"paddingLarge": "24px", "paddingLarge": "24px",
"paddingMedium": "16px", "paddingMedium": "16px",
@ -437,6 +438,54 @@ exports[`NoteCardBody renders correctly against snapshot 1`] = `
"euiTextScale": "2.25 1.75 1.25 1.125 1 0.875 0.75", "euiTextScale": "2.25 1.75 1.25 1.125 1 0.875 0.75",
"euiTitleColor": "#dfe5ef", "euiTitleColor": "#dfe5ef",
"euiToastWidth": "320px", "euiToastWidth": "320px",
"euiTokenGrayColor": "#535966",
"euiTokenTypeKeys": "'euiColorVis0', 'euiColorVis1', 'euiColorVis2', 'euiColorVis3', 'euiColorVis4', 'euiColorVis5', 'euiColorVis6', 'euiColorVis7', 'euiColorVis8', 'euiColorVis9', 'gray'",
"euiTokenTypes": Object {
"euiColorVis0": Object {
"behindText": "#6dccb1",
"graphic": "#54b399",
},
"euiColorVis1": Object {
"behindText": "#79aad9",
"graphic": "#6092c0",
},
"euiColorVis2": Object {
"behindText": "#ee789d",
"graphic": "#d36086",
},
"euiColorVis3": Object {
"behindText": "#a987d1",
"graphic": "#9170b8",
},
"euiColorVis4": Object {
"behindText": "#e4a6c7",
"graphic": "#ca8eae",
},
"euiColorVis5": Object {
"behindText": "#f1d86f",
"graphic": "#d6bf57",
},
"euiColorVis6": Object {
"behindText": "#d2c0a0",
"graphic": "#b9a888",
},
"euiColorVis7": Object {
"behindText": "#f5a35c",
"graphic": "#da8b45",
},
"euiColorVis8": Object {
"behindText": "#c47c6c",
"graphic": "#aa6556",
},
"euiColorVis9": Object {
"behindText": "#ff7e62",
"graphic": "#e7664c",
},
"gray": Object {
"behindText": "#535966",
"graphic": "#535966",
},
},
"euiTooltipAnimations": Object { "euiTooltipAnimations": Object {
"bottom": "euiToolTipLeft", "bottom": "euiToolTipLeft",
"left": "euiToolTipBottom", "left": "euiToolTipBottom",
@ -548,20 +597,6 @@ exports[`NoteCardBody renders correctly against snapshot 1`] = `
"success": "#7de2d1", "success": "#7de2d1",
"warning": "#ffce7a", "warning": "#ffce7a",
}, },
"tokenTypes": Object {
"tokenTint01": "#1ba9f5",
"tokenTint02": "#f990c0",
"tokenTint03": "#9170b8",
"tokenTint04": "#da8b45",
"tokenTint05": "#6092c0",
"tokenTint06": "#e6c220",
"tokenTint07": "#54b399",
"tokenTint08": "#920000",
"tokenTint09": "#ff00ff",
"tokenTint10": "#26ab00",
"tokenTint11": "#4c1604",
"tokenTint12": "#666666",
},
}, },
} }
} }

View file

@ -333,6 +333,7 @@ exports[`Paginated Table Component rendering it renders the default load more ta
"graphic": "#e7664c", "graphic": "#e7664c",
}, },
}, },
"euiPaletteColorBlindKeys": "'euiColorVis0', 'euiColorVis1', 'euiColorVis2', 'euiColorVis3', 'euiColorVis4', 'euiColorVis5', 'euiColorVis6', 'euiColorVis7', 'euiColorVis8', 'euiColorVis9'",
"euiPanelPaddingModifiers": Object { "euiPanelPaddingModifiers": Object {
"paddingLarge": "24px", "paddingLarge": "24px",
"paddingMedium": "16px", "paddingMedium": "16px",
@ -437,6 +438,54 @@ exports[`Paginated Table Component rendering it renders the default load more ta
"euiTextScale": "2.25 1.75 1.25 1.125 1 0.875 0.75", "euiTextScale": "2.25 1.75 1.25 1.125 1 0.875 0.75",
"euiTitleColor": "#dfe5ef", "euiTitleColor": "#dfe5ef",
"euiToastWidth": "320px", "euiToastWidth": "320px",
"euiTokenGrayColor": "#535966",
"euiTokenTypeKeys": "'euiColorVis0', 'euiColorVis1', 'euiColorVis2', 'euiColorVis3', 'euiColorVis4', 'euiColorVis5', 'euiColorVis6', 'euiColorVis7', 'euiColorVis8', 'euiColorVis9', 'gray'",
"euiTokenTypes": Object {
"euiColorVis0": Object {
"behindText": "#6dccb1",
"graphic": "#54b399",
},
"euiColorVis1": Object {
"behindText": "#79aad9",
"graphic": "#6092c0",
},
"euiColorVis2": Object {
"behindText": "#ee789d",
"graphic": "#d36086",
},
"euiColorVis3": Object {
"behindText": "#a987d1",
"graphic": "#9170b8",
},
"euiColorVis4": Object {
"behindText": "#e4a6c7",
"graphic": "#ca8eae",
},
"euiColorVis5": Object {
"behindText": "#f1d86f",
"graphic": "#d6bf57",
},
"euiColorVis6": Object {
"behindText": "#d2c0a0",
"graphic": "#b9a888",
},
"euiColorVis7": Object {
"behindText": "#f5a35c",
"graphic": "#da8b45",
},
"euiColorVis8": Object {
"behindText": "#c47c6c",
"graphic": "#aa6556",
},
"euiColorVis9": Object {
"behindText": "#ff7e62",
"graphic": "#e7664c",
},
"gray": Object {
"behindText": "#535966",
"graphic": "#535966",
},
},
"euiTooltipAnimations": Object { "euiTooltipAnimations": Object {
"bottom": "euiToolTipLeft", "bottom": "euiToolTipLeft",
"left": "euiToolTipBottom", "left": "euiToolTipBottom",
@ -548,20 +597,6 @@ exports[`Paginated Table Component rendering it renders the default load more ta
"success": "#7de2d1", "success": "#7de2d1",
"warning": "#ffce7a", "warning": "#ffce7a",
}, },
"tokenTypes": Object {
"tokenTint01": "#1ba9f5",
"tokenTint02": "#f990c0",
"tokenTint03": "#9170b8",
"tokenTint04": "#da8b45",
"tokenTint05": "#6092c0",
"tokenTint06": "#e6c220",
"tokenTint07": "#54b399",
"tokenTint08": "#920000",
"tokenTint09": "#ff00ff",
"tokenTint10": "#26ab00",
"tokenTint11": "#4c1604",
"tokenTint12": "#666666",
},
}, },
} }
} }

View file

@ -94,7 +94,6 @@ export const PolicyStepLogistics: React.FunctionComponent<StepProps> = ({
defaultMessage="A unique identifier for this policy." defaultMessage="A unique identifier for this policy."
/> />
} }
idAria="nameDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -104,7 +103,6 @@ export const PolicyStepLogistics: React.FunctionComponent<StepProps> = ({
defaultMessage="Name" defaultMessage="Name"
/> />
} }
describedByIds={['nameDescription']}
isInvalid={touched.name && Boolean(errors.name)} isInvalid={touched.name && Boolean(errors.name)}
error={errors.name} error={errors.name}
fullWidth fullWidth
@ -158,7 +156,6 @@ export const PolicyStepLogistics: React.FunctionComponent<StepProps> = ({
defaultMessage="The repository where you want to store the snapshots." defaultMessage="The repository where you want to store the snapshots."
/> />
} }
idAria="policyRepositoryDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -168,7 +165,6 @@ export const PolicyStepLogistics: React.FunctionComponent<StepProps> = ({
defaultMessage="Repository" defaultMessage="Repository"
/> />
} }
describedByIds={['policyRepositoryDescription']}
isInvalid={touched.repository && Boolean(errors.repository)} isInvalid={touched.repository && Boolean(errors.repository)}
error={errors.repository} error={errors.repository}
fullWidth fullWidth
@ -307,7 +303,6 @@ export const PolicyStepLogistics: React.FunctionComponent<StepProps> = ({
defaultMessage="The name for the snapshots. A unique identifier is automatically added to each name." defaultMessage="The name for the snapshots. A unique identifier is automatically added to each name."
/> />
} }
idAria="policySnapshotNameDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -317,7 +312,6 @@ export const PolicyStepLogistics: React.FunctionComponent<StepProps> = ({
defaultMessage="Snapshot name" defaultMessage="Snapshot name"
/> />
} }
describedByIds={['policySnapshotNameDescription']}
isInvalid={touched.snapshotName && Boolean(errors.snapshotName)} isInvalid={touched.snapshotName && Boolean(errors.snapshotName)}
error={errors.snapshotName} error={errors.snapshotName}
helpText={ helpText={
@ -389,7 +383,6 @@ export const PolicyStepLogistics: React.FunctionComponent<StepProps> = ({
defaultMessage="The frequency at which to take the snapshots." defaultMessage="The frequency at which to take the snapshots."
/> />
} }
idAria="policyScheduleDescription"
fullWidth fullWidth
> >
{isAdvancedCronVisible ? ( {isAdvancedCronVisible ? (
@ -401,7 +394,6 @@ export const PolicyStepLogistics: React.FunctionComponent<StepProps> = ({
defaultMessage="Schedule" defaultMessage="Schedule"
/> />
} }
describedByIds={['policyScheduleDescription']}
isInvalid={touched.schedule && Boolean(errors.schedule)} isInvalid={touched.schedule && Boolean(errors.schedule)}
error={errors.schedule} error={errors.schedule}
helpText={ helpText={

View file

@ -73,7 +73,6 @@ export const PolicyStepRetention: React.FunctionComponent<StepProps> = ({
defaultMessage="The time to wait before deleting snapshots." defaultMessage="The time to wait before deleting snapshots."
/> />
} }
idAria="expirationDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -83,7 +82,6 @@ export const PolicyStepRetention: React.FunctionComponent<StepProps> = ({
defaultMessage="Delete after" defaultMessage="Delete after"
/> />
} }
describedByIds={['expirationDescription']}
isInvalid={touched.expireAfterValue && Boolean(errors.expireAfterValue)} isInvalid={touched.expireAfterValue && Boolean(errors.expireAfterValue)}
error={errors.expireAfterValue} error={errors.expireAfterValue}
fullWidth fullWidth
@ -140,7 +138,6 @@ export const PolicyStepRetention: React.FunctionComponent<StepProps> = ({
defaultMessage="The minimum and maximum number of snapshots to store in your cluster." defaultMessage="The minimum and maximum number of snapshots to store in your cluster."
/> />
} }
idAria="countDescription"
fullWidth fullWidth
> >
<EuiFlexGroup> <EuiFlexGroup>
@ -152,7 +149,6 @@ export const PolicyStepRetention: React.FunctionComponent<StepProps> = ({
defaultMessage="Mininum count" defaultMessage="Mininum count"
/> />
} }
describedByIds={['countDescription']}
isInvalid={touched.minCount && Boolean(errors.minCount)} isInvalid={touched.minCount && Boolean(errors.minCount)}
error={errors.minCount} error={errors.minCount}
fullWidth fullWidth
@ -180,7 +176,6 @@ export const PolicyStepRetention: React.FunctionComponent<StepProps> = ({
defaultMessage="Maximum count" defaultMessage="Maximum count"
/> />
} }
describedByIds={['countDescription']}
isInvalid={touched.maxCount && Boolean(errors.maxCount)} isInvalid={touched.maxCount && Boolean(errors.maxCount)}
error={errors.maxCount} error={errors.maxCount}
fullWidth fullWidth

View file

@ -126,10 +126,9 @@ export const PolicyStepSettings: React.FunctionComponent<StepProps> = ({
defaultMessage="Indices to back up." defaultMessage="Indices to back up."
/> />
} }
idAria="indicesDescription"
fullWidth fullWidth
> >
<EuiFormRow hasEmptyLabelSpace fullWidth describedByIds={['indicesDescription']}> <EuiFormRow hasEmptyLabelSpace fullWidth>
<Fragment> <Fragment>
{isManagedPolicy ? ( {isManagedPolicy ? (
<EuiToolTip <EuiToolTip
@ -331,14 +330,9 @@ export const PolicyStepSettings: React.FunctionComponent<StepProps> = ({
defaultMessage="Ignores indices that are unavailable when taking the snapshot. Otherwise, the entire snapshot will fail." defaultMessage="Ignores indices that are unavailable when taking the snapshot. Otherwise, the entire snapshot will fail."
/> />
} }
idAria="policyIgnoreUnavailableDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow hasEmptyLabelSpace fullWidth>
hasEmptyLabelSpace
describedByIds={['policyIgnoreUnavailableDescription']}
fullWidth
>
<EuiSwitch <EuiSwitch
data-test-subj="ignoreUnavailableIndicesToggle" data-test-subj="ignoreUnavailableIndicesToggle"
label={ label={
@ -376,10 +370,9 @@ export const PolicyStepSettings: React.FunctionComponent<StepProps> = ({
defaultMessage="Allows snapshots of indices with primary shards that are unavailable. Otherwise, the entire snapshot will fail." defaultMessage="Allows snapshots of indices with primary shards that are unavailable. Otherwise, the entire snapshot will fail."
/> />
} }
idAria="policyPartialDescription"
fullWidth fullWidth
> >
<EuiFormRow hasEmptyLabelSpace describedByIds={['policyPartialDescription']} fullWidth> <EuiFormRow hasEmptyLabelSpace fullWidth>
<EuiSwitch <EuiSwitch
data-test-subj="partialIndicesToggle" data-test-subj="partialIndicesToggle"
label={ label={
@ -417,14 +410,9 @@ export const PolicyStepSettings: React.FunctionComponent<StepProps> = ({
defaultMessage="Stores the global state of the cluster as part of the snapshot." defaultMessage="Stores the global state of the cluster as part of the snapshot."
/> />
} }
idAria="policyIncludeGlobalStateDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow hasEmptyLabelSpace fullWidth>
hasEmptyLabelSpace
describedByIds={['policyIncludeGlobalStateDescription']}
fullWidth
>
<EuiSwitch <EuiSwitch
data-test-subj="globalStateToggle" data-test-subj="globalStateToggle"
label={ label={

View file

@ -102,7 +102,6 @@ export const RepositoryFormStepOne: React.FunctionComponent<Props> = ({
defaultMessage="A unique name for the repository." defaultMessage="A unique name for the repository."
/> />
} }
idAria="repositoryNameDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -112,7 +111,6 @@ export const RepositoryFormStepOne: React.FunctionComponent<Props> = ({
defaultMessage="Name" defaultMessage="Name"
/> />
} }
describedByIds={['repositoryNameDescription']}
isInvalid={Boolean(hasValidationErrors && validation.errors.name)} isInvalid={Boolean(hasValidationErrors && validation.errors.name)}
error={validation.errors.name} error={validation.errors.name}
fullWidth fullWidth
@ -303,10 +301,9 @@ export const RepositoryFormStepOne: React.FunctionComponent<Props> = ({
/> />
</Fragment> </Fragment>
} }
idAria="sourceOnlyDescription"
fullWidth fullWidth
> >
<EuiFormRow hasEmptyLabelSpace={true} fullWidth describedByIds={['sourceOnlyDescription']}> <EuiFormRow hasEmptyLabelSpace={true} fullWidth>
<EuiSwitch <EuiSwitch
label={ label={
<FormattedMessage <FormattedMessage

View file

@ -77,7 +77,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
defaultMessage="The name of the Azure client." defaultMessage="The name of the Azure client."
/> />
} }
idAria="azureRepositoryClientDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -88,7 +87,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['azureRepositoryClientDescription']}
isInvalid={Boolean(hasErrors && settingErrors.client)} isInvalid={Boolean(hasErrors && settingErrors.client)}
error={settingErrors.client} error={settingErrors.client}
> >
@ -123,7 +121,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
defaultMessage="The name of the Azure container to use for snapshots." defaultMessage="The name of the Azure container to use for snapshots."
/> />
} }
idAria="azureRepositoryContainerDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -134,7 +131,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['azureRepositoryContainerDescription']}
isInvalid={Boolean(hasErrors && settingErrors.container)} isInvalid={Boolean(hasErrors && settingErrors.container)}
error={settingErrors.container} error={settingErrors.container}
> >
@ -169,7 +165,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
defaultMessage="The container path to the repository data." defaultMessage="The container path to the repository data."
/> />
} }
idAria="azureRepositoryBasePathDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -180,7 +175,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['azureRepositoryBasePathDescription']}
isInvalid={Boolean(hasErrors && settingErrors.basePath)} isInvalid={Boolean(hasErrors && settingErrors.basePath)}
error={settingErrors.basePath} error={settingErrors.basePath}
> >
@ -215,13 +209,11 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
defaultMessage="Compresses the index mapping and setting files for snapshots. Data files are not compressed." defaultMessage="Compresses the index mapping and setting files for snapshots. Data files are not compressed."
/> />
} }
idAria="azureRepositoryCompressDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['azureRepositoryCompressDescription']}
isInvalid={Boolean(hasErrors && settingErrors.compress)} isInvalid={Boolean(hasErrors && settingErrors.compress)}
error={settingErrors.compress} error={settingErrors.compress}
> >
@ -261,7 +253,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
defaultMessage="Breaks files into smaller units when taking snapshots." defaultMessage="Breaks files into smaller units when taking snapshots."
/> />
} }
idAria="azureRepositoryChunkSizeDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -272,7 +263,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['azureRepositoryChunkSizeDescription']}
isInvalid={Boolean(hasErrors && settingErrors.chunkSize)} isInvalid={Boolean(hasErrors && settingErrors.chunkSize)}
error={settingErrors.chunkSize} error={settingErrors.chunkSize}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -308,7 +298,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
defaultMessage="The rate for creating snapshots for each node." defaultMessage="The rate for creating snapshots for each node."
/> />
} }
idAria="azureRepositoryMaxSnapshotBytesDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -319,7 +308,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['azureRepositoryMaxSnapshotBytesDescription']}
isInvalid={Boolean(hasErrors && settingErrors.maxSnapshotBytesPerSec)} isInvalid={Boolean(hasErrors && settingErrors.maxSnapshotBytesPerSec)}
error={settingErrors.maxSnapshotBytesPerSec} error={settingErrors.maxSnapshotBytesPerSec}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -355,7 +343,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
defaultMessage="The snapshot restore rate for each node." defaultMessage="The snapshot restore rate for each node."
/> />
} }
idAria="azureRepositoryMaxRestoreBytesDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -366,7 +353,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['azureRepositoryMaxRestoreBytesDescription']}
isInvalid={Boolean(hasErrors && settingErrors.maxRestoreBytesPerSec)} isInvalid={Boolean(hasErrors && settingErrors.maxRestoreBytesPerSec)}
error={settingErrors.maxRestoreBytesPerSec} error={settingErrors.maxRestoreBytesPerSec}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -402,7 +388,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
defaultMessage="The primary or secondary location. If secondary, read-only is true." defaultMessage="The primary or secondary location. If secondary, read-only is true."
/> />
} }
idAria="azureRepositoryLocationModeDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -413,7 +398,6 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['azureRepositoryLocationModeDescription']}
isInvalid={Boolean(hasErrors && settingErrors.locationMode)} isInvalid={Boolean(hasErrors && settingErrors.locationMode)}
error={settingErrors.locationMode} error={settingErrors.locationMode}
> >
@ -450,13 +434,11 @@ export const AzureSettings: React.FunctionComponent<Props> = ({
defaultMessage="Only one cluster should have write access to this repository. All other clusters should be read-only." defaultMessage="Only one cluster should have write access to this repository. All other clusters should be read-only."
/> />
} }
idAria="azureRepositoryReadonlyDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['azureRepositoryReadonlyDescription']}
isInvalid={Boolean(hasErrors && settingErrors.readonly)} isInvalid={Boolean(hasErrors && settingErrors.readonly)}
error={settingErrors.readonly} error={settingErrors.readonly}
> >

View file

@ -73,7 +73,6 @@ export const FSSettings: React.FunctionComponent<Props> = ({
/> />
</Fragment> </Fragment>
} }
idAria="fsRepositoryLocationDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -84,7 +83,6 @@ export const FSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['fsRepositoryLocationDescription']}
isInvalid={Boolean(hasErrors && settingErrors.location)} isInvalid={Boolean(hasErrors && settingErrors.location)}
error={settingErrors.location} error={settingErrors.location}
> >
@ -119,13 +117,11 @@ export const FSSettings: React.FunctionComponent<Props> = ({
defaultMessage="Compresses the index mapping and setting files for snapshots. Data files are not compressed." defaultMessage="Compresses the index mapping and setting files for snapshots. Data files are not compressed."
/> />
} }
idAria="fsRepositoryCompressDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['fsRepositoryCompressDescription']}
isInvalid={Boolean(hasErrors && settingErrors.compress)} isInvalid={Boolean(hasErrors && settingErrors.compress)}
error={settingErrors.compress} error={settingErrors.compress}
> >
@ -165,7 +161,6 @@ export const FSSettings: React.FunctionComponent<Props> = ({
defaultMessage="Breaks files into smaller units when taking snapshots." defaultMessage="Breaks files into smaller units when taking snapshots."
/> />
} }
idAria="fsRepositoryChunkSizeDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -176,7 +171,6 @@ export const FSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['fsRepositoryChunkSizeDescription']}
isInvalid={Boolean(hasErrors && settingErrors.chunkSize)} isInvalid={Boolean(hasErrors && settingErrors.chunkSize)}
error={settingErrors.chunkSize} error={settingErrors.chunkSize}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -212,7 +206,6 @@ export const FSSettings: React.FunctionComponent<Props> = ({
defaultMessage="The rate for creating snapshots for each node." defaultMessage="The rate for creating snapshots for each node."
/> />
} }
idAria="fsRepositoryMaxSnapshotBytesDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -223,7 +216,6 @@ export const FSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['fsRepositoryMaxSnapshotBytesDescription']}
isInvalid={Boolean(hasErrors && settingErrors.maxSnapshotBytesPerSec)} isInvalid={Boolean(hasErrors && settingErrors.maxSnapshotBytesPerSec)}
error={settingErrors.maxSnapshotBytesPerSec} error={settingErrors.maxSnapshotBytesPerSec}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -259,7 +251,6 @@ export const FSSettings: React.FunctionComponent<Props> = ({
defaultMessage="The snapshot restore rate for each node." defaultMessage="The snapshot restore rate for each node."
/> />
} }
idAria="fsRepositoryMaxRestoreBytesDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -270,7 +261,6 @@ export const FSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['fsRepositoryMaxRestoreBytesDescription']}
isInvalid={Boolean(hasErrors && settingErrors.maxRestoreBytesPerSec)} isInvalid={Boolean(hasErrors && settingErrors.maxRestoreBytesPerSec)}
error={settingErrors.maxRestoreBytesPerSec} error={settingErrors.maxRestoreBytesPerSec}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -306,13 +296,11 @@ export const FSSettings: React.FunctionComponent<Props> = ({
defaultMessage="Only one cluster should have write access to this repository. All other clusters should be read-only." defaultMessage="Only one cluster should have write access to this repository. All other clusters should be read-only."
/> />
} }
idAria="fsRepositoryReadonlyDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['fsRepositoryReadonlyDescription']}
isInvalid={Boolean(hasErrors && settingErrors.readonly)} isInvalid={Boolean(hasErrors && settingErrors.readonly)}
error={settingErrors.readonly} error={settingErrors.readonly}
> >

View file

@ -64,7 +64,6 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
defaultMessage="The name of the Google Cloud Storage client." defaultMessage="The name of the Google Cloud Storage client."
/> />
} }
idAria="gcsRepositoryClientDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -75,7 +74,6 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['gcsRepositoryClientDescription']}
isInvalid={Boolean(hasErrors && settingErrors.client)} isInvalid={Boolean(hasErrors && settingErrors.client)}
error={settingErrors.client} error={settingErrors.client}
> >
@ -110,7 +108,6 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
defaultMessage="The name of the Google Cloud Storage bucket to use for snapshots." defaultMessage="The name of the Google Cloud Storage bucket to use for snapshots."
/> />
} }
idAria="gcsRepositoryBucketDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -121,7 +118,6 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['gcsRepositoryBucketDescription']}
isInvalid={Boolean(hasErrors && settingErrors.bucket)} isInvalid={Boolean(hasErrors && settingErrors.bucket)}
error={settingErrors.bucket} error={settingErrors.bucket}
> >
@ -156,7 +152,6 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
defaultMessage="The bucket path to the repository data." defaultMessage="The bucket path to the repository data."
/> />
} }
idAria="gcsRepositoryBasePathDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -167,7 +162,6 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['gcsRepositoryBasePathDescription']}
isInvalid={Boolean(hasErrors && settingErrors.basePath)} isInvalid={Boolean(hasErrors && settingErrors.basePath)}
error={settingErrors.basePath} error={settingErrors.basePath}
> >
@ -202,13 +196,11 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
defaultMessage="Compresses the index mapping and setting files for snapshots. Data files are not compressed." defaultMessage="Compresses the index mapping and setting files for snapshots. Data files are not compressed."
/> />
} }
idAria="gcsRepositoryCompressDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['gcsRepositoryCompressDescription']}
isInvalid={Boolean(hasErrors && settingErrors.compress)} isInvalid={Boolean(hasErrors && settingErrors.compress)}
error={settingErrors.compress} error={settingErrors.compress}
> >
@ -248,7 +240,6 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
defaultMessage="Breaks files into smaller units when taking snapshots." defaultMessage="Breaks files into smaller units when taking snapshots."
/> />
} }
idAria="gcsRepositoryChunkSizeDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -259,7 +250,6 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['gcsRepositoryChunkSizeDescription']}
isInvalid={Boolean(hasErrors && settingErrors.chunkSize)} isInvalid={Boolean(hasErrors && settingErrors.chunkSize)}
error={settingErrors.chunkSize} error={settingErrors.chunkSize}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -295,7 +285,6 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
defaultMessage="The rate for creating snapshots for each node." defaultMessage="The rate for creating snapshots for each node."
/> />
} }
idAria="gcsRepositoryMaxSnapshotBytesDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -306,7 +295,6 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['gcsRepositoryMaxSnapshotBytesDescription']}
isInvalid={Boolean(hasErrors && settingErrors.maxSnapshotBytesPerSec)} isInvalid={Boolean(hasErrors && settingErrors.maxSnapshotBytesPerSec)}
error={settingErrors.maxSnapshotBytesPerSec} error={settingErrors.maxSnapshotBytesPerSec}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -342,7 +330,6 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
defaultMessage="The snapshot restore rate for each node." defaultMessage="The snapshot restore rate for each node."
/> />
} }
idAria="gcsRepositoryMaxRestoreBytesDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -353,7 +340,6 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['gcsRepositoryMaxRestoreBytesDescription']}
isInvalid={Boolean(hasErrors && settingErrors.maxRestoreBytesPerSec)} isInvalid={Boolean(hasErrors && settingErrors.maxRestoreBytesPerSec)}
error={settingErrors.maxRestoreBytesPerSec} error={settingErrors.maxRestoreBytesPerSec}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -389,13 +375,11 @@ export const GCSSettings: React.FunctionComponent<Props> = ({
defaultMessage="Only one cluster should have write access to this repository. All other clusters should be read-only." defaultMessage="Only one cluster should have write access to this repository. All other clusters should be read-only."
/> />
} }
idAria="gcsRepositoryReadonlyDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['gcsRepositoryReadonlyDescription']}
isInvalid={Boolean(hasErrors && settingErrors.readonly)} isInvalid={Boolean(hasErrors && settingErrors.readonly)}
error={settingErrors.readonly} error={settingErrors.readonly}
> >

View file

@ -79,7 +79,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
defaultMessage="The URI address for HDFS." defaultMessage="The URI address for HDFS."
/> />
} }
idAria="hdfsRepositoryUriDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -90,7 +89,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['hdfsRepositoryUriDescription']}
isInvalid={Boolean(hasErrors && settingErrors.uri)} isInvalid={Boolean(hasErrors && settingErrors.uri)}
error={settingErrors.uri} error={settingErrors.uri}
> >
@ -108,7 +106,7 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
uri: e.target.value ? `hdfs://${e.target.value}` : '', uri: e.target.value ? `hdfs://${e.target.value}` : '',
}); });
}} }}
aria-describedby="hdfsRepositoryUriDescription hdfsRepositoryUriProtocolDescription" aria-describedby="hdfsRepositoryUriProtocolDescription"
data-test-subj="uriInput" data-test-subj="uriInput"
/> />
</EuiFormRow> </EuiFormRow>
@ -132,7 +130,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
defaultMessage="The file path where data is stored." defaultMessage="The file path where data is stored."
/> />
} }
idAria="hdfsRepositoryPathDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -143,7 +140,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['hdfsRepositoryPathDescription']}
isInvalid={Boolean(hasErrors && settingErrors.path)} isInvalid={Boolean(hasErrors && settingErrors.path)}
error={settingErrors.path} error={settingErrors.path}
> >
@ -178,13 +174,11 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
defaultMessage="Loads the default Hadoop configuration." defaultMessage="Loads the default Hadoop configuration."
/> />
} }
idAria="hdfsRepositoryLoadDefaultsDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['hdfsRepositoryLoadDefaultsDescription']}
isInvalid={Boolean(hasErrors && settingErrors.loadDefaults)} isInvalid={Boolean(hasErrors && settingErrors.loadDefaults)}
error={settingErrors.loadDefaults} error={settingErrors.loadDefaults}
> >
@ -224,13 +218,11 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
defaultMessage="Compresses the index mapping and setting files for snapshots. Data files are not compressed." defaultMessage="Compresses the index mapping and setting files for snapshots. Data files are not compressed."
/> />
} }
idAria="hdfsRepositoryCompressDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['hdfsRepositoryCompressDescription']}
isInvalid={Boolean(hasErrors && settingErrors.compress)} isInvalid={Boolean(hasErrors && settingErrors.compress)}
error={settingErrors.compress} error={settingErrors.compress}
> >
@ -270,7 +262,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
defaultMessage="Breaks files into smaller units when taking snapshots." defaultMessage="Breaks files into smaller units when taking snapshots."
/> />
} }
idAria="hdfsRepositoryChunkSizeDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -281,7 +272,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['hdfsRepositoryChunkSizeDescription']}
isInvalid={Boolean(hasErrors && settingErrors.chunkSize)} isInvalid={Boolean(hasErrors && settingErrors.chunkSize)}
error={settingErrors.chunkSize} error={settingErrors.chunkSize}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -317,7 +307,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
defaultMessage="The Kerberos principal to use when connecting to a secured HDFS cluster." defaultMessage="The Kerberos principal to use when connecting to a secured HDFS cluster."
/> />
} }
idAria="hdfsRepositorySecurityPrincipalDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -328,7 +317,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['hdfsRepositorySecurityPrincipalDescription']}
isInvalid={Boolean(hasErrors && settingErrors.securityPrincipal)} isInvalid={Boolean(hasErrors && settingErrors.securityPrincipal)}
error={settingErrors.securityPrincipal} error={settingErrors.securityPrincipal}
> >
@ -365,7 +353,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
/> />
</Fragment> </Fragment>
} }
idAria="hdfsRepositoryConfigurationDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -376,7 +363,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['hdfsRepositoryConfigurationDescription']}
isInvalid={isConfInvalid} isInvalid={isConfInvalid}
error={ error={
<FormattedMessage <FormattedMessage
@ -463,7 +449,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
defaultMessage="The rate for creating snapshots for each node." defaultMessage="The rate for creating snapshots for each node."
/> />
} }
idAria="hdfsRepositoryMaxSnapshotBytesDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -474,7 +459,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['hdfsRepositoryMaxSnapshotBytesDescription']}
isInvalid={Boolean(hasErrors && settingErrors.maxSnapshotBytesPerSec)} isInvalid={Boolean(hasErrors && settingErrors.maxSnapshotBytesPerSec)}
error={settingErrors.maxSnapshotBytesPerSec} error={settingErrors.maxSnapshotBytesPerSec}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -510,7 +494,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
defaultMessage="The snapshot restore rate for each node." defaultMessage="The snapshot restore rate for each node."
/> />
} }
idAria="hdfsRepositoryMaxRestoreBytesDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -521,7 +504,6 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['hdfsRepositoryMaxRestoreBytesDescription']}
isInvalid={Boolean(hasErrors && settingErrors.maxRestoreBytesPerSec)} isInvalid={Boolean(hasErrors && settingErrors.maxRestoreBytesPerSec)}
error={settingErrors.maxRestoreBytesPerSec} error={settingErrors.maxRestoreBytesPerSec}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -557,13 +539,11 @@ export const HDFSSettings: React.FunctionComponent<Props> = ({
defaultMessage="Only one cluster should have write access to this repository. All other clusters should be read-only." defaultMessage="Only one cluster should have write access to this repository. All other clusters should be read-only."
/> />
} }
idAria="hdfsRepositoryReadonlyDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['hdfsRepositoryReadonlyDescription']}
isInvalid={Boolean(hasErrors && settingErrors.readonly)} isInvalid={Boolean(hasErrors && settingErrors.readonly)}
error={settingErrors.readonly} error={settingErrors.readonly}
> >

View file

@ -116,7 +116,6 @@ export const ReadonlySettings: React.FunctionComponent<Props> = ({
/> />
</Fragment> </Fragment>
} }
idAria="readonlyRepositoryUrlDescription"
fullWidth fullWidth
> >
<div> <div>
@ -130,7 +129,6 @@ export const ReadonlySettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['readonlyRepositoryUrlDescription']}
> >
<EuiSelect <EuiSelect
options={schemeOptions} options={schemeOptions}
@ -151,7 +149,7 @@ export const ReadonlySettings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['readonlyRepositoryUrlDescription readonlyRepositoryUrlHelp']} describedByIds={['readonlyRepositoryUrlHelp']}
isInvalid={Boolean(hasErrors && settingErrors.url)} isInvalid={Boolean(hasErrors && settingErrors.url)}
error={settingErrors.url} error={settingErrors.url}
> >

View file

@ -93,7 +93,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
defaultMessage="The name of the AWS S3 client." defaultMessage="The name of the AWS S3 client."
/> />
} }
idAria="s3RepositoryClientDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -104,7 +103,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['s3RepositoryClientDescription']}
isInvalid={Boolean(hasErrors && settingErrors.client)} isInvalid={Boolean(hasErrors && settingErrors.client)}
error={settingErrors.client} error={settingErrors.client}
> >
@ -139,7 +137,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
defaultMessage="The name of the AWS S3 bucket to use for snapshots." defaultMessage="The name of the AWS S3 bucket to use for snapshots."
/> />
} }
idAria="s3RepositoryBucketDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -150,7 +147,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['s3RepositoryBucketDescription']}
isInvalid={Boolean(hasErrors && settingErrors.bucket)} isInvalid={Boolean(hasErrors && settingErrors.bucket)}
error={settingErrors.bucket} error={settingErrors.bucket}
> >
@ -185,7 +181,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
defaultMessage="The bucket path to the repository data." defaultMessage="The bucket path to the repository data."
/> />
} }
idAria="s3RepositoryBasePathDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -196,7 +191,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['s3RepositoryBasePathDescription']}
isInvalid={Boolean(hasErrors && settingErrors.basePath)} isInvalid={Boolean(hasErrors && settingErrors.basePath)}
error={settingErrors.basePath} error={settingErrors.basePath}
> >
@ -231,13 +225,11 @@ export const S3Settings: React.FunctionComponent<Props> = ({
defaultMessage="Compresses the index mapping and setting files for snapshots. Data files are not compressed." defaultMessage="Compresses the index mapping and setting files for snapshots. Data files are not compressed."
/> />
} }
idAria="s3RepositoryCompressDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['s3RepositoryCompressDescription']}
isInvalid={Boolean(hasErrors && settingErrors.compress)} isInvalid={Boolean(hasErrors && settingErrors.compress)}
error={settingErrors.compress} error={settingErrors.compress}
> >
@ -277,7 +269,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
defaultMessage="Breaks files into smaller units when taking snapshots." defaultMessage="Breaks files into smaller units when taking snapshots."
/> />
} }
idAria="s3RepositoryChunkSizeDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -288,7 +279,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['s3RepositoryChunkSizeDescription']}
isInvalid={Boolean(hasErrors && settingErrors.chunkSize)} isInvalid={Boolean(hasErrors && settingErrors.chunkSize)}
error={settingErrors.chunkSize} error={settingErrors.chunkSize}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -324,13 +314,11 @@ export const S3Settings: React.FunctionComponent<Props> = ({
defaultMessage="Encrypts files on the server using AES256 algorithm." defaultMessage="Encrypts files on the server using AES256 algorithm."
/> />
} }
idAria="s3RepositoryServerSideEncryptionDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['s3RepositoryServerSideEncryptionDescription']}
isInvalid={Boolean(hasErrors && settingErrors.serverSideEncryption)} isInvalid={Boolean(hasErrors && settingErrors.serverSideEncryption)}
error={settingErrors.serverSideEncryption} error={settingErrors.serverSideEncryption}
> >
@ -371,7 +359,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
to split the chunk into several parts and upload each in its own request." to split the chunk into several parts and upload each in its own request."
/> />
} }
idAria="s3RepositoryBufferSizeDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -382,7 +369,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['s3RepositoryBufferSizeDescription']}
isInvalid={Boolean(hasErrors && settingErrors.bufferSize)} isInvalid={Boolean(hasErrors && settingErrors.bufferSize)}
error={settingErrors.bufferSize} error={settingErrors.bufferSize}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -418,7 +404,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
defaultMessage="The canned ACL to add to new S3 buckets and objects." defaultMessage="The canned ACL to add to new S3 buckets and objects."
/> />
} }
idAria="s3RepositoryCannedAclDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -429,7 +414,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['s3RepositoryCannedAclDescription']}
isInvalid={Boolean(hasErrors && settingErrors.cannedAcl)} isInvalid={Boolean(hasErrors && settingErrors.cannedAcl)}
error={settingErrors.cannedAcl} error={settingErrors.cannedAcl}
> >
@ -465,7 +449,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
defaultMessage="The storage class for new objects in the S3 repository." defaultMessage="The storage class for new objects in the S3 repository."
/> />
} }
idAria="s3RepositoryStorageClassDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -476,7 +459,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['s3RepositoryStorageClassDescription']}
isInvalid={Boolean(hasErrors && settingErrors.storageClass)} isInvalid={Boolean(hasErrors && settingErrors.storageClass)}
error={settingErrors.storageClass} error={settingErrors.storageClass}
> >
@ -512,7 +494,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
defaultMessage="The rate for creating snapshots for each node." defaultMessage="The rate for creating snapshots for each node."
/> />
} }
idAria="s3RepositoryMaxSnapshotBytesDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -523,7 +504,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['s3RepositoryMaxSnapshotBytesDescription']}
isInvalid={Boolean(hasErrors && settingErrors.maxSnapshotBytesPerSec)} isInvalid={Boolean(hasErrors && settingErrors.maxSnapshotBytesPerSec)}
error={settingErrors.maxSnapshotBytesPerSec} error={settingErrors.maxSnapshotBytesPerSec}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -559,7 +539,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
defaultMessage="The snapshot restore rate for each node." defaultMessage="The snapshot restore rate for each node."
/> />
} }
idAria="s3RepositoryMaxRestoreBytesDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
@ -570,7 +549,6 @@ export const S3Settings: React.FunctionComponent<Props> = ({
/> />
} }
fullWidth fullWidth
describedByIds={['s3RepositoryMaxRestoreBytesDescription']}
isInvalid={Boolean(hasErrors && settingErrors.maxRestoreBytesPerSec)} isInvalid={Boolean(hasErrors && settingErrors.maxRestoreBytesPerSec)}
error={settingErrors.maxRestoreBytesPerSec} error={settingErrors.maxRestoreBytesPerSec}
helpText={textService.getSizeNotationHelpText()} helpText={textService.getSizeNotationHelpText()}
@ -606,13 +584,11 @@ export const S3Settings: React.FunctionComponent<Props> = ({
defaultMessage="Only one cluster should have write access to this repository. All other clusters should be read-only." defaultMessage="Only one cluster should have write access to this repository. All other clusters should be read-only."
/> />
} }
idAria="s3RepositoryReadonlyDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['s3RepositoryReadonlyDescription']}
isInvalid={Boolean(hasErrors && settingErrors.readonly)} isInvalid={Boolean(hasErrors && settingErrors.readonly)}
error={settingErrors.readonly} error={settingErrors.readonly}
> >

View file

@ -141,14 +141,9 @@ export const RestoreSnapshotStepLogistics: React.FunctionComponent<StepProps> =
if they are closed and have the same number of shards as the snapshot index." if they are closed and have the same number of shards as the snapshot index."
/> />
} }
idAria="stepLogisticsIndicesDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow hasEmptyLabelSpace fullWidth>
hasEmptyLabelSpace
fullWidth
describedByIds={['stepLogisticsIndicesDescription']}
>
<Fragment> <Fragment>
<EuiSwitch <EuiSwitch
label={ label={
@ -361,14 +356,9 @@ export const RestoreSnapshotStepLogistics: React.FunctionComponent<StepProps> =
defaultMessage="Renames indices on restore." defaultMessage="Renames indices on restore."
/> />
} }
idAria="stepLogisticsRenameIndicesDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow hasEmptyLabelSpace fullWidth>
hasEmptyLabelSpace
fullWidth
describedByIds={['stepLogisticsRenameIndicesDescription']}
>
<Fragment> <Fragment>
<EuiSwitch <EuiSwitch
label={ label={
@ -481,14 +471,9 @@ export const RestoreSnapshotStepLogistics: React.FunctionComponent<StepProps> =
defaultMessage="Allows restore of indices that dont have snapshots of all shards." defaultMessage="Allows restore of indices that dont have snapshots of all shards."
/> />
} }
idAria="stepLogisticsPartialDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow hasEmptyLabelSpace={true} fullWidth>
hasEmptyLabelSpace={true}
fullWidth
describedByIds={['stepLogisticsPartialDescription']}
>
<EuiSwitch <EuiSwitch
label={ label={
<FormattedMessage <FormattedMessage
@ -521,13 +506,11 @@ export const RestoreSnapshotStepLogistics: React.FunctionComponent<StepProps> =
templates with the same name. Also restores persistent settings." templates with the same name. Also restores persistent settings."
/> />
} }
idAria="stepLogisticsIncludeGlobalStateDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow
hasEmptyLabelSpace={true} hasEmptyLabelSpace={true}
fullWidth fullWidth
describedByIds={['stepLogisticsIncludeGlobalStateDescription']}
helpText={ helpText={
snapshotIncludeGlobalState ? null : ( snapshotIncludeGlobalState ? null : (
<FormattedMessage <FormattedMessage

View file

@ -121,14 +121,9 @@ export const RestoreSnapshotStepSettings: React.FunctionComponent<StepProps> = (
}} }}
/> />
} }
idAria="stepSettingsIndexSettingsDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow hasEmptyLabelSpace fullWidth>
hasEmptyLabelSpace
fullWidth
describedByIds={['stepSettingsIndexSettingsDescription']}
>
<Fragment> <Fragment>
<EuiSwitch <EuiSwitch
label={ label={
@ -162,7 +157,6 @@ export const RestoreSnapshotStepSettings: React.FunctionComponent<StepProps> = (
/> />
} }
fullWidth fullWidth
describedByIds={['stepSettingsIndexSettingsDescription']}
isInvalid={Boolean(errors.indexSettings)} isInvalid={Boolean(errors.indexSettings)}
error={errors.indexSettings} error={errors.indexSettings}
helpText={ helpText={
@ -235,14 +229,9 @@ export const RestoreSnapshotStepSettings: React.FunctionComponent<StepProps> = (
}} }}
/> />
} }
idAria="stepSettingsIgnoreIndexSettingsDescription"
fullWidth fullWidth
> >
<EuiFormRow <EuiFormRow hasEmptyLabelSpace fullWidth>
hasEmptyLabelSpace
fullWidth
describedByIds={['stepSettingsIgnoreIndexSettingsDescription']}
>
<Fragment> <Fragment>
<EuiSwitch <EuiSwitch
label={ label={

View file

@ -156,10 +156,7 @@ exports[`MonitorList component renders the monitor list 1`] = `
class="euiTable euiTable--responsive" class="euiTable euiTable--responsive"
> >
<caption <caption
aria-live="polite"
aria-relevant="text"
class="euiScreenReaderOnly euiTableCaption" class="euiScreenReaderOnly euiTableCaption"
role="status"
/> />
<thead> <thead>
<tr> <tr>

View file

@ -176,7 +176,7 @@
"@elastic/apm-rum-react": "^0.3.2", "@elastic/apm-rum-react": "^0.3.2",
"@elastic/datemath": "5.0.2", "@elastic/datemath": "5.0.2",
"@elastic/ems-client": "7.6.0", "@elastic/ems-client": "7.6.0",
"@elastic/eui": "18.3.0", "@elastic/eui": "19.0.0",
"@elastic/filesaver": "1.1.2", "@elastic/filesaver": "1.1.2",
"@elastic/maki": "6.1.0", "@elastic/maki": "6.1.0",
"@elastic/node-crypto": "^1.0.0", "@elastic/node-crypto": "^1.0.0",

View file

@ -26,8 +26,6 @@ exports[`it renders without crashing 1`] = `
</ForwardRef> </ForwardRef>
</p> </p>
} }
fullWidth={false}
gutterSize="l"
title={ title={
<h3> <h3>
<FormattedMessage <FormattedMessage
@ -37,7 +35,6 @@ exports[`it renders without crashing 1`] = `
/> />
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
describedByIds={Array []} describedByIds={Array []}
@ -92,8 +89,6 @@ exports[`it renders without crashing 1`] = `
</ForwardRef> </ForwardRef>
</p> </p>
} }
fullWidth={false}
gutterSize="l"
title={ title={
<h3> <h3>
<FormattedMessage <FormattedMessage
@ -103,7 +98,6 @@ exports[`it renders without crashing 1`] = `
/> />
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
describedByIds={Array []} describedByIds={Array []}

View file

@ -12,8 +12,6 @@ exports[`<SimplePrivilegeForm> renders without crashing 1`] = `
/> />
</p> </p>
} }
fullWidth={false}
gutterSize="l"
title={ title={
<h3> <h3>
<FormattedMessage <FormattedMessage
@ -23,7 +21,6 @@ exports[`<SimplePrivilegeForm> renders without crashing 1`] = `
/> />
</h3> </h3>
} }
titleSize="xs"
> >
<EuiFormRow <EuiFormRow
describedByIds={Array []} describedByIds={Array []}

View file

@ -294,7 +294,6 @@ export const JsonWatchEditSimulate = ({
<EuiDescribedFormGroup <EuiDescribedFormGroup
fullWidth fullWidth
idAria="simulateExecutionActionModesDescription"
title={ title={
<h2> <h2>
{i18n.translate( {i18n.translate(
@ -323,7 +322,6 @@ export const JsonWatchEditSimulate = ({
} }
> >
<EuiFormRow <EuiFormRow
describedByIds={['simulateExecutionActionModesDescription']}
label={i18n.translate( label={i18n.translate(
'xpack.watcher.sections.watchEdit.simulate.form.actionModesFieldLabel', 'xpack.watcher.sections.watchEdit.simulate.form.actionModesFieldLabel',
{ {
@ -342,7 +340,6 @@ export const JsonWatchEditSimulate = ({
<EuiDescribedFormGroup <EuiDescribedFormGroup
fullWidth fullWidth
idAria="simulateExecutionInputOverridesDescription"
title={ title={
<h2> <h2>
{i18n.translate( {i18n.translate(
@ -361,7 +358,6 @@ export const JsonWatchEditSimulate = ({
> >
<ErrableFormRow <ErrableFormRow
id="executeWatchJson" id="executeWatchJson"
describedByIds={['simulateExecutionInputOverridesDescription']}
label={i18n.translate( label={i18n.translate(
'xpack.watcher.sections.watchEdit.simulate.form.alternativeInputFieldLabel', 'xpack.watcher.sections.watchEdit.simulate.form.alternativeInputFieldLabel',
{ {

View file

@ -7,7 +7,6 @@
// TODO: Remove once typescript definitions are in EUI // TODO: Remove once typescript definitions are in EUI
declare module '@elastic/eui' { declare module '@elastic/eui' {
export const EuiDescribedFormGroup: React.FC<any>;
export const EuiCodeEditor: React.FC<any>; export const EuiCodeEditor: React.FC<any>;
export const Query: any; export const Query: any;
} }

View file

@ -1955,15 +1955,17 @@
tabbable "^1.1.0" tabbable "^1.1.0"
uuid "^3.1.0" uuid "^3.1.0"
"@elastic/eui@18.3.0": "@elastic/eui@19.0.0":
version "18.3.0" version "19.0.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-18.3.0.tgz#e21c6246624f694e2ae1c7c1f1a11b612faf260a" resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-19.0.0.tgz#cf7d644945c95997d442585cf614e853f173746e"
integrity sha512-Rkj1rTtDa6iZMUF7pxYRojku1sLXzTU0FK1D9i0XE3H//exy3VyTV6qUlbdkiKXjO7emrgQqfzKDeXT+ZYztgg== integrity sha512-8/USz56MYhu6bV4oecJct7tsdi0ktErOIFLobNmQIKdxDOni/KpttX6IHqxM7OuIWi1AEMXoIozw68+oyL/uKQ==
dependencies: dependencies:
"@types/chroma-js" "^1.4.3" "@types/chroma-js" "^1.4.3"
"@types/enzyme" "^3.1.13"
"@types/lodash" "^4.14.116" "@types/lodash" "^4.14.116"
"@types/numeral" "^0.0.25" "@types/numeral" "^0.0.25"
"@types/react-beautiful-dnd" "^10.1.0" "@types/react-beautiful-dnd" "^10.1.0"
"@types/react-virtualized" "^9.18.7"
chroma-js "^2.0.4" chroma-js "^2.0.4"
classnames "^2.2.5" classnames "^2.2.5"
highlight.js "^9.12.0" highlight.js "^9.12.0"
@ -4384,10 +4386,10 @@
resolved "https://registry.yarnpkg.com/@types/elasticsearch/-/elasticsearch-5.0.33.tgz#b0fd37dc674f498223b6d68c313bdfd71f4d812b" resolved "https://registry.yarnpkg.com/@types/elasticsearch/-/elasticsearch-5.0.33.tgz#b0fd37dc674f498223b6d68c313bdfd71f4d812b"
integrity sha512-n/g9pqJEpE4fyUE8VvHNGtl7E2Wv8TCroNwfgAeJKRV4ghDENahtrAo1KMsFNIejBD2gDAlEUa4CM4oEEd8p9Q== integrity sha512-n/g9pqJEpE4fyUE8VvHNGtl7E2Wv8TCroNwfgAeJKRV4ghDENahtrAo1KMsFNIejBD2gDAlEUa4CM4oEEd8p9Q==
"@types/enzyme@^3.9.0": "@types/enzyme@^3.1.13", "@types/enzyme@^3.9.0":
version "3.9.3" version "3.10.5"
resolved "https://registry.yarnpkg.com/@types/enzyme/-/enzyme-3.9.3.tgz#d1029c0edd353d7b00f3924803eb88216460beed" resolved "https://registry.yarnpkg.com/@types/enzyme/-/enzyme-3.10.5.tgz#fe7eeba3550369eed20e7fb565bfb74eec44f1f0"
integrity sha512-jDKoZiiMA3lGO3skSO7dfqEHNvmiTLLV+PHD9EBQVlJANJvpY6qq1zzjRI24ZOtG7F+CS7BVWDXKewRmN8PjHQ== integrity sha512-R+phe509UuUYy9Tk0YlSbipRpfVtIzb/9BHn5pTEtjJTF5LXvUjrIQcZvNyANNEyFrd2YGs196PniNT1fgvOQA==
dependencies: dependencies:
"@types/cheerio" "*" "@types/cheerio" "*"
"@types/react" "*" "@types/react" "*"