Revert "Upgrade EUI to v52.2.0 (#128313)"

This reverts commit dccd8290bb.
This commit is contained in:
Tyler Smalley 2022-03-29 14:52:15 -07:00
parent 71cd640fe2
commit f782f8bf33
99 changed files with 406 additions and 990 deletions

View file

@ -108,7 +108,7 @@
"@elastic/datemath": "link:bazel-bin/packages/elastic-datemath",
"@elastic/elasticsearch": "npm:@elastic/elasticsearch-canary@8.2.0-canary.1",
"@elastic/ems-client": "8.2.0",
"@elastic/eui": "52.2.0",
"@elastic/eui": "51.1.0",
"@elastic/filesaver": "1.1.2",
"@elastic/node-crypto": "1.2.1",
"@elastic/numeral": "^2.5.1",

View file

@ -3108,13 +3108,12 @@ exports[`Header renders 1`] = `
type="logoElastic"
>
<span
aria-label="Elastic Logo"
className="chrHeaderLogo__cluster"
data-euiicon-type="logoElastic"
data-test-subj="globalLoadingIndicator-hidden"
size="l"
>
Elastic Logo
</span>
/>
</EuiIcon>
</LoadingIndicator>
<ElasticMark

View file

@ -77,6 +77,6 @@ export const LICENSE_OVERRIDES = {
'jsts@1.6.2': ['Eclipse Distribution License - v 1.0'], // cf. https://github.com/bjornharrtell/jsts
'@mapbox/jsonlint-lines-primitives@2.0.2': ['MIT'], // license in readme https://github.com/tmcw/jsonlint
'@elastic/ems-client@8.2.0': ['Elastic License 2.0'],
'@elastic/eui@52.2.0': ['SSPL-1.0 OR Elastic License 2.0'],
'@elastic/eui@51.1.0': ['SSPL-1.0 OR Elastic License 2.0'],
'language-subtag-registry@0.3.21': ['CC-BY-4.0'], // retired ODCBy license https://github.com/mattcg/language-subtag-registry
};

View file

@ -179,11 +179,10 @@ exports[`UrlFormatEditor should render normally 1`] = `
URL template help
</span>
<span
aria-label="External link"
class="euiLink__externalIcon"
data-euiicon-type="popout"
>
External link
</span>
/>
<span
class="euiScreenReaderOnly"
>
@ -244,11 +243,10 @@ exports[`UrlFormatEditor should render normally 1`] = `
Label template help
</span>
<span
aria-label="External link"
class="euiLink__externalIcon"
data-euiicon-type="popout"
>
External link
</span>
/>
<span
class="euiScreenReaderOnly"
>

View file

@ -320,11 +320,10 @@ exports[`Table should render the boolean template (false) 1`] = `<span />`;
exports[`Table should render the boolean template (true) 1`] = `
<span
aria-label="Is searchable"
color="success"
data-euiicon-type="dot"
>
Is searchable
</span>
/>
`;
exports[`Table should render timestamp field name 1`] = `

View file

@ -20,11 +20,10 @@ exports[`TableHeader with time column renders correctly 1`] = `
class="euiToolTipAnchor"
>
<span
aria-label="Primary time field."
data-euiicon-type="clock"
tabindex="0"
>
Primary time field.
</span>
/>
</span>
<span
class="euiToolTipAnchor"

View file

@ -9,11 +9,10 @@ Array [
class="euiToken euiToken--euiColorVis5 euiToken--square euiToken--light euiToken--small kbnFieldIcon"
>
<span
aria-label="Geo point field"
data-euiicon-type="tokenGeo"
title="Geo point field"
>
Geo point field
</span>
/>
</span>
</div>,
<div
@ -43,11 +42,10 @@ Array [
class="euiToken euiToken--euiColorVis0 euiToken--square euiToken--light euiToken--small kbnFieldIcon"
>
<span
aria-label="Number field"
data-euiicon-type="tokenNumber"
title="Number field"
>
Number field
</span>
/>
</span>
</div>,
<div
@ -77,11 +75,10 @@ Array [
class="euiToken euiToken--euiColorVis1 euiToken--square euiToken--light euiToken--small kbnFieldIcon"
>
<span
aria-label="String field"
data-euiicon-type="tokenString"
title="String field"
>
String field
</span>
/>
</span>
</div>,
<div
@ -111,11 +108,10 @@ Array [
class="euiToken euiToken--gray euiToken--circle euiToken--light euiToken--small kbnFieldIcon"
>
<span
aria-label="Unknown field"
data-euiicon-type="questionInCircle"
title="Unknown field"
>
Unknown field
</span>
/>
</span>
</div>,
<div

View file

@ -106,12 +106,11 @@ exports[`NotFoundErrors component renders correctly for index-pattern type 1`] =
type="popout"
>
<span
aria-label="External link"
className="euiLink__externalIcon"
data-euiicon-type="popout"
size="s"
>
External link
</span>
/>
</EuiIcon>
<EuiScreenReaderOnly>
<span
@ -244,12 +243,11 @@ exports[`NotFoundErrors component renders correctly for index-pattern-field type
type="popout"
>
<span
aria-label="External link"
className="euiLink__externalIcon"
data-euiicon-type="popout"
size="s"
>
External link
</span>
/>
</EuiIcon>
<EuiScreenReaderOnly>
<span
@ -382,12 +380,11 @@ exports[`NotFoundErrors component renders correctly for search type 1`] = `
type="popout"
>
<span
aria-label="External link"
className="euiLink__externalIcon"
data-euiicon-type="popout"
size="s"
>
External link
</span>
/>
</EuiIcon>
<EuiScreenReaderOnly>
<span
@ -512,12 +509,11 @@ exports[`NotFoundErrors component renders correctly for unknown type 1`] = `
type="popout"
>
<span
aria-label="External link"
className="euiLink__externalIcon"
data-euiicon-type="popout"
size="s"
>
External link
</span>
/>
</EuiIcon>
<EuiScreenReaderOnly>
<span

View file

@ -25,7 +25,7 @@ describe('NotFoundErrors component', () => {
const callOut = mounted.find('EuiCallOut');
expect(callOut).toMatchSnapshot();
expect(mounted.text()).toMatchInlineSnapshot(
`"There is a problem with this saved objectThe saved search associated with this object no longer exists.If you know what this error means, you can use the Saved objects APIsExternal link(opens in a new tab or window) to fix it — otherwise click the delete button above."`
`"There is a problem with this saved objectThe saved search associated with this object no longer exists.If you know what this error means, you can use the Saved objects APIs(opens in a new tab or window) to fix it — otherwise click the delete button above."`
);
});
@ -34,7 +34,7 @@ describe('NotFoundErrors component', () => {
const callOut = mounted.find('EuiCallOut');
expect(callOut).toMatchSnapshot();
expect(mounted.text()).toMatchInlineSnapshot(
`"There is a problem with this saved objectThe data view associated with this object no longer exists.If you know what this error means, you can use the Saved objects APIsExternal link(opens in a new tab or window) to fix it — otherwise click the delete button above."`
`"There is a problem with this saved objectThe data view associated with this object no longer exists.If you know what this error means, you can use the Saved objects APIs(opens in a new tab or window) to fix it — otherwise click the delete button above."`
);
});
@ -43,7 +43,7 @@ describe('NotFoundErrors component', () => {
const callOut = mounted.find('EuiCallOut');
expect(callOut).toMatchSnapshot();
expect(mounted.text()).toMatchInlineSnapshot(
`"There is a problem with this saved objectA field associated with this object no longer exists in the data view.If you know what this error means, you can use the Saved objects APIsExternal link(opens in a new tab or window) to fix it — otherwise click the delete button above."`
`"There is a problem with this saved objectA field associated with this object no longer exists in the data view.If you know what this error means, you can use the Saved objects APIs(opens in a new tab or window) to fix it — otherwise click the delete button above."`
);
});
@ -52,7 +52,7 @@ describe('NotFoundErrors component', () => {
const callOut = mounted.find('EuiCallOut');
expect(callOut).toMatchSnapshot();
expect(mounted.text()).toMatchInlineSnapshot(
`"There is a problem with this saved objectIf you know what this error means, you can use the Saved objects APIsExternal link(opens in a new tab or window) to fix it — otherwise click the delete button above."`
`"There is a problem with this saved objectIf you know what this error means, you can use the Saved objects APIs(opens in a new tab or window) to fix it — otherwise click the delete button above."`
);
});
});

View file

@ -56,7 +56,7 @@ describe('LinkPreview', () => {
removeExternalLinkText(
(getByTestId(container, 'preview-link') as HTMLAnchorElement).text
)
).toContain('https://baz.co');
).toEqual('https://baz.co');
});
});
@ -74,7 +74,7 @@ describe('LinkPreview', () => {
removeExternalLinkText(
(getByTestId(container, 'preview-link') as HTMLAnchorElement).text
)
).toContain('https://baz.co?service.name={{invalid}');
).toEqual('https://baz.co?service.name={{invalid}');
expect(getByTestId(container, 'preview-warning')).toBeInTheDocument();
});
});
@ -94,7 +94,7 @@ describe('LinkPreview', () => {
removeExternalLinkText(
(getByTestId(container, 'preview-link') as HTMLAnchorElement).text
)
).toContain('https://baz.co?transaction=0');
).toEqual('https://baz.co?transaction=0');
});
});
});

View file

@ -45,7 +45,7 @@ describe('CustomLinkToolbar', () => {
wrapper: Wrapper,
});
expect(
component.getByText('Custom links settings page')
component.getByLabelText('Custom links settings page')
).toBeInTheDocument();
expectTextsInDocument(component, ['Create']);
});
@ -56,7 +56,7 @@ describe('CustomLinkToolbar', () => {
{ wrapper: Wrapper }
);
expect(
component.getByText('Custom links settings page')
component.getByLabelText('Custom links settings page')
).toBeInTheDocument();
expectTextsNotInDocument(component, ['Create']);
});

View file

@ -35,9 +35,7 @@ exports[`Storyshots renderers/DropdownFilter default 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -98,9 +96,7 @@ exports[`Storyshots renderers/DropdownFilter with choices 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -161,9 +157,7 @@ exports[`Storyshots renderers/DropdownFilter with choices and new value 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -224,9 +218,7 @@ exports[`Storyshots renderers/DropdownFilter with choices and value 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -269,9 +261,7 @@ exports[`Storyshots renderers/DropdownFilter with new value 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>

View file

@ -42,17 +42,13 @@ exports[`Storyshots renderers/TimeFilter default 1`] = `
color="inherit"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
<span
className="euiButtonEmpty__text euiQuickSelectPopover__buttonText"
>
<span
data-euiicon-type="calendar"
>
</span>
/>
</span>
</span>
</button>
@ -95,9 +91,7 @@ exports[`Storyshots renderers/TimeFilter default 1`] = `
color="inherit"
data-euiicon-type="timeRefresh"
size="m"
>
</span>
/>
<span
className="euiButtonEmpty__text"
>
@ -156,17 +150,13 @@ exports[`Storyshots renderers/TimeFilter with absolute time bounds 1`] = `
color="inherit"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
<span
className="euiButtonEmpty__text euiQuickSelectPopover__buttonText"
>
<span
data-euiicon-type="calendar"
>
</span>
/>
</span>
</span>
</button>
@ -245,9 +235,7 @@ exports[`Storyshots renderers/TimeFilter with absolute time bounds 1`] = `
color="inherit"
data-euiicon-type="timeRefresh"
size="m"
>
</span>
/>
<span
className="euiButtonEmpty__text"
>
@ -306,17 +294,13 @@ exports[`Storyshots renderers/TimeFilter with commonlyUsedRanges 1`] = `
color="inherit"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
<span
className="euiButtonEmpty__text euiQuickSelectPopover__buttonText"
>
<span
data-euiicon-type="calendar"
>
</span>
/>
</span>
</span>
</button>
@ -359,9 +343,7 @@ exports[`Storyshots renderers/TimeFilter with commonlyUsedRanges 1`] = `
color="inherit"
data-euiicon-type="timeRefresh"
size="m"
>
</span>
/>
<span
className="euiButtonEmpty__text"
>
@ -420,17 +402,13 @@ exports[`Storyshots renderers/TimeFilter with dateFormat 1`] = `
color="inherit"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
<span
className="euiButtonEmpty__text euiQuickSelectPopover__buttonText"
>
<span
data-euiicon-type="calendar"
>
</span>
/>
</span>
</span>
</button>
@ -473,9 +451,7 @@ exports[`Storyshots renderers/TimeFilter with dateFormat 1`] = `
color="inherit"
data-euiicon-type="timeRefresh"
size="m"
>
</span>
/>
<span
className="euiButtonEmpty__text"
>
@ -534,17 +510,13 @@ exports[`Storyshots renderers/TimeFilter with relative time bounds 1`] = `
color="inherit"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
<span
className="euiButtonEmpty__text euiQuickSelectPopover__buttonText"
>
<span
data-euiicon-type="calendar"
>
</span>
/>
</span>
</span>
</button>
@ -623,9 +595,7 @@ exports[`Storyshots renderers/TimeFilter with relative time bounds 1`] = `
color="inherit"
data-euiicon-type="timeRefresh"
size="m"
>
</span>
/>
<span
className="euiButtonEmpty__text"
>

View file

@ -65,9 +65,7 @@ exports[`Storyshots arguments/AxisConfig extended 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -145,9 +143,7 @@ exports[`Storyshots arguments/AxisConfig/components extended 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>

View file

@ -47,9 +47,7 @@ Array [
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -122,9 +120,7 @@ Array [
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -196,9 +192,7 @@ exports[`Storyshots arguments/DateFormat with preset format 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>

View file

@ -57,9 +57,7 @@ Array [
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -142,9 +140,7 @@ Array [
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -226,9 +222,7 @@ exports[`Storyshots arguments/NumberFormat with preset format 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>

View file

@ -81,9 +81,7 @@ exports[`Storyshots components/Assets/Asset airplane 1`] = `
color="inherit"
data-euiicon-type="vector"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -113,9 +111,7 @@ exports[`Storyshots components/Assets/Asset airplane 1`] = `
color="inherit"
data-euiicon-type="sortDown"
size="m"
>
</span>
/>
</button>
</div>
</span>
@ -146,9 +142,7 @@ exports[`Storyshots components/Assets/Asset airplane 1`] = `
color="inherit"
data-euiicon-type="copyClipboard"
size="m"
>
</span>
/>
</button>
</div>
</span>
@ -175,9 +169,7 @@ exports[`Storyshots components/Assets/Asset airplane 1`] = `
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -268,9 +260,7 @@ exports[`Storyshots components/Assets/Asset marker 1`] = `
color="inherit"
data-euiicon-type="vector"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -300,9 +290,7 @@ exports[`Storyshots components/Assets/Asset marker 1`] = `
color="inherit"
data-euiicon-type="sortDown"
size="m"
>
</span>
/>
</button>
</div>
</span>
@ -333,9 +321,7 @@ exports[`Storyshots components/Assets/Asset marker 1`] = `
color="inherit"
data-euiicon-type="copyClipboard"
size="m"
>
</span>
/>
</button>
</div>
</span>
@ -362,9 +348,7 @@ exports[`Storyshots components/Assets/Asset marker 1`] = `
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
</button>
</span>
</div>

View file

@ -26,9 +26,7 @@ exports[`Storyshots components/Assets/AssetManager no assets 1`] = `
color="inherit"
data-euiicon-type="cross"
size="m"
>
</span>
/>
</button>
<div
className="euiModal__flex"
@ -75,9 +73,7 @@ exports[`Storyshots components/Assets/AssetManager no assets 1`] = `
className="euiFilePicker__icon"
data-euiicon-type="importAction"
size="m"
>
</span>
/>
<div
className="euiFilePicker__promptText"
>
@ -126,9 +122,7 @@ exports[`Storyshots components/Assets/AssetManager no assets 1`] = `
color="subdued"
data-euiicon-type="importAction"
size="xxl"
>
</span>
/>
</div>
<div
className="euiEmptyPrompt__content"
@ -230,9 +224,7 @@ exports[`Storyshots components/Assets/AssetManager two assets 1`] = `
color="inherit"
data-euiicon-type="cross"
size="m"
>
</span>
/>
</button>
<div
className="euiModal__flex"
@ -279,9 +271,7 @@ exports[`Storyshots components/Assets/AssetManager two assets 1`] = `
className="euiFilePicker__icon"
data-euiicon-type="importAction"
size="m"
>
</span>
/>
<div
className="euiFilePicker__promptText"
>
@ -390,9 +380,7 @@ exports[`Storyshots components/Assets/AssetManager two assets 1`] = `
color="inherit"
data-euiicon-type="vector"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -422,9 +410,7 @@ exports[`Storyshots components/Assets/AssetManager two assets 1`] = `
color="inherit"
data-euiicon-type="sortDown"
size="m"
>
</span>
/>
</button>
</div>
</span>
@ -455,9 +441,7 @@ exports[`Storyshots components/Assets/AssetManager two assets 1`] = `
color="inherit"
data-euiicon-type="copyClipboard"
size="m"
>
</span>
/>
</button>
</div>
</span>
@ -484,9 +468,7 @@ exports[`Storyshots components/Assets/AssetManager two assets 1`] = `
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -566,9 +548,7 @@ exports[`Storyshots components/Assets/AssetManager two assets 1`] = `
color="inherit"
data-euiicon-type="vector"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -598,9 +578,7 @@ exports[`Storyshots components/Assets/AssetManager two assets 1`] = `
color="inherit"
data-euiicon-type="sortDown"
size="m"
>
</span>
/>
</button>
</div>
</span>
@ -631,9 +609,7 @@ exports[`Storyshots components/Assets/AssetManager two assets 1`] = `
color="inherit"
data-euiicon-type="copyClipboard"
size="m"
>
</span>
/>
</button>
</div>
</span>
@ -660,9 +636,7 @@ exports[`Storyshots components/Assets/AssetManager two assets 1`] = `
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
</button>
</span>
</div>

View file

@ -129,9 +129,7 @@ Array [
<span
color="#000"
data-euiicon-type="plusInCircle"
>
</span>
/>
</div>
</div>,
<div
@ -151,9 +149,7 @@ Array [
<span
color="#fff"
data-euiicon-type="minusInCircle"
>
</span>
/>
</div>
</div>,
<div
@ -173,9 +169,7 @@ Array [
<span
color="#fff"
data-euiicon-type="alert"
>
</span>
/>
</div>
</div>,
<div
@ -195,9 +189,7 @@ Array [
<span
color="#fff"
data-euiicon-type="check"
>
</span>
/>
</div>
</div>,
]

View file

@ -394,9 +394,7 @@ exports[`Storyshots components/Color/ColorManager interactive 1`] = `
color="inherit"
data-euiicon-type="plusInCircle"
size="m"
>
</span>
/>
</button>
<button
aria-label="Remove Color"
@ -411,9 +409,7 @@ exports[`Storyshots components/Color/ColorManager interactive 1`] = `
color="inherit"
data-euiicon-type="minusInCircle"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -809,9 +805,7 @@ Array [
color="inherit"
data-euiicon-type="plusInCircle"
size="m"
>
</span>
/>
</button>
<button
aria-label="Remove Color"
@ -826,9 +820,7 @@ Array [
color="inherit"
data-euiicon-type="minusInCircle"
size="m"
>
</span>
/>
</button>
</div>
</div>,
@ -894,9 +886,7 @@ Array [
color="inherit"
data-euiicon-type="plusInCircle"
size="m"
>
</span>
/>
</button>
<button
aria-label="Remove Color"
@ -910,9 +900,7 @@ Array [
color="inherit"
data-euiicon-type="minusInCircle"
size="m"
>
</span>
/>
</button>
</div>
</div>,
@ -977,9 +965,7 @@ Array [
color="inherit"
data-euiicon-type="plusInCircle"
size="m"
>
</span>
/>
</button>
<button
aria-label="Remove Color"
@ -993,9 +979,7 @@ Array [
color="inherit"
data-euiicon-type="minusInCircle"
size="m"
>
</span>
/>
</button>
</div>
</div>,

View file

@ -393,9 +393,7 @@ Array [
className="selected-color"
color="#333"
data-euiicon-type="check"
>
</span>
/>
</div>
</div>
</button>
@ -760,9 +758,7 @@ exports[`Storyshots components/Color/ColorPalette six colors, wrap at 4 1`] = `
className="selected-color"
color="#333"
data-euiicon-type="check"
>
</span>
/>
</div>
</div>
</button>
@ -1044,9 +1040,7 @@ Array [
className="selected-color"
color="#333"
data-euiicon-type="check"
>
</span>
/>
</div>
</div>
</button>

View file

@ -237,9 +237,7 @@ exports[`Storyshots components/Color/ColorPicker interactive 1`] = `
color="inherit"
data-euiicon-type="plusInCircle"
size="m"
>
</span>
/>
</button>
<button
aria-label="Remove Color"
@ -254,9 +252,7 @@ exports[`Storyshots components/Color/ColorPicker interactive 1`] = `
color="inherit"
data-euiicon-type="minusInCircle"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -322,9 +318,7 @@ exports[`Storyshots components/Color/ColorPicker six colors 1`] = `
className="selected-color"
color="#333"
data-euiicon-type="check"
>
</span>
/>
</div>
</div>
</button>
@ -532,9 +526,7 @@ exports[`Storyshots components/Color/ColorPicker six colors 1`] = `
color="inherit"
data-euiicon-type="plusInCircle"
size="m"
>
</span>
/>
</button>
<button
aria-label="Remove Color"
@ -548,9 +540,7 @@ exports[`Storyshots components/Color/ColorPicker six colors 1`] = `
color="inherit"
data-euiicon-type="minusInCircle"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -796,9 +786,7 @@ exports[`Storyshots components/Color/ColorPicker six colors, value missing 1`] =
color="inherit"
data-euiicon-type="plusInCircle"
size="m"
>
</span>
/>
</button>
<button
aria-label="Remove Color"
@ -813,9 +801,7 @@ exports[`Storyshots components/Color/ColorPicker six colors, value missing 1`] =
color="inherit"
data-euiicon-type="minusInCircle"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -860,9 +846,7 @@ exports[`Storyshots components/Color/ColorPicker three colors 1`] = `
className="selected-color"
color="#333"
data-euiicon-type="check"
>
</span>
/>
</div>
</div>
</button>
@ -986,9 +970,7 @@ exports[`Storyshots components/Color/ColorPicker three colors 1`] = `
color="inherit"
data-euiicon-type="plusInCircle"
size="m"
>
</span>
/>
</button>
<button
aria-label="Remove Color"
@ -1002,9 +984,7 @@ exports[`Storyshots components/Color/ColorPicker three colors 1`] = `
color="inherit"
data-euiicon-type="minusInCircle"
size="m"
>
</span>
/>
</button>
</div>
</div>

View file

@ -27,9 +27,7 @@ exports[`Storyshots components/Elements/CustomElementModal with description 1`]
color="inherit"
data-euiicon-type="cross"
size="m"
>
</span>
/>
</button>
<div
className="euiModal__flex"
@ -186,9 +184,7 @@ exports[`Storyshots components/Elements/CustomElementModal with description 1`]
className="euiFilePicker__icon"
data-euiicon-type="importAction"
size="l"
>
</span>
/>
<div
className="euiFilePicker__promptText"
>
@ -228,9 +224,7 @@ exports[`Storyshots components/Elements/CustomElementModal with description 1`]
className="euiCard__icon"
data-euiicon-type="canvasApp"
size="xxl"
>
</span>
/>
</div>
<div
className="euiCard__content"
@ -344,9 +338,7 @@ exports[`Storyshots components/Elements/CustomElementModal with image 1`] = `
color="inherit"
data-euiicon-type="cross"
size="m"
>
</span>
/>
</button>
<div
className="euiModal__flex"
@ -503,9 +495,7 @@ exports[`Storyshots components/Elements/CustomElementModal with image 1`] = `
className="euiFilePicker__icon"
data-euiicon-type="importAction"
size="l"
>
</span>
/>
<div
className="euiFilePicker__promptText"
>
@ -656,9 +646,7 @@ exports[`Storyshots components/Elements/CustomElementModal with name 1`] = `
color="inherit"
data-euiicon-type="cross"
size="m"
>
</span>
/>
</button>
<div
className="euiModal__flex"
@ -815,9 +803,7 @@ exports[`Storyshots components/Elements/CustomElementModal with name 1`] = `
className="euiFilePicker__icon"
data-euiicon-type="importAction"
size="l"
>
</span>
/>
<div
className="euiFilePicker__promptText"
>
@ -857,9 +843,7 @@ exports[`Storyshots components/Elements/CustomElementModal with name 1`] = `
className="euiCard__icon"
data-euiicon-type="canvasApp"
size="xxl"
>
</span>
/>
</div>
<div
className="euiCard__content"
@ -965,9 +949,7 @@ exports[`Storyshots components/Elements/CustomElementModal with title 1`] = `
color="inherit"
data-euiicon-type="cross"
size="m"
>
</span>
/>
</button>
<div
className="euiModal__flex"
@ -1124,9 +1106,7 @@ exports[`Storyshots components/Elements/CustomElementModal with title 1`] = `
className="euiFilePicker__icon"
data-euiicon-type="importAction"
size="l"
>
</span>
/>
<div
className="euiFilePicker__promptText"
>
@ -1166,9 +1146,7 @@ exports[`Storyshots components/Elements/CustomElementModal with title 1`] = `
className="euiCard__icon"
data-euiicon-type="canvasApp"
size="xxl"
>
</span>
/>
</div>
<div
className="euiCard__content"

View file

@ -18,18 +18,14 @@ exports[`Storyshots components/datasource/DatasourceComponent datasource with ex
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
<span
className="euiButtonEmpty__text"
>
<span
className="canvasDataSource__triggerButtonIcon"
data-euiicon-type="training"
>
</span>
/>
Test Datasource
</span>
</span>
@ -74,18 +70,14 @@ exports[`Storyshots components/datasource/DatasourceComponent simple datasource
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
<span
className="euiButtonEmpty__text"
>
<span
className="canvasDataSource__triggerButtonIcon"
data-euiicon-type="training"
>
</span>
/>
Test Datasource
</span>
</span>

View file

@ -19,9 +19,7 @@ exports[`Storyshots components/Elements/ElementCard with click handler 1`] = `
className="euiCard__icon"
data-euiicon-type="canvasApp"
size="xxl"
>
</span>
/>
</div>
<div
className="euiCard__content"
@ -122,9 +120,7 @@ exports[`Storyshots components/Elements/ElementCard with tags 1`] = `
className="euiCard__icon"
data-euiicon-type="canvasApp"
size="xxl"
>
</span>
/>
</div>
<div
className="euiCard__content"
@ -291,9 +287,7 @@ exports[`Storyshots components/Elements/ElementCard with title and description 1
className="euiCard__icon"
data-euiicon-type="canvasApp"
size="xxl"
>
</span>
/>
</div>
<div
className="euiCard__content"

View file

@ -26,9 +26,7 @@ exports[`Storyshots components/FileUpload default 1`] = `
className="euiFilePicker__icon"
data-euiicon-type="importAction"
size="l"
>
</span>
/>
<div
className="euiFilePicker__promptText"
>

View file

@ -59,9 +59,7 @@ exports[`Storyshots Home Home Page 1`] = `
color="inherit"
data-euiicon-type="plusInCircleFilled"
size="m"
>
</span>
/>
<span
className="euiButton__text"
>

View file

@ -28,9 +28,7 @@ exports[`Storyshots Home/Components/Empty Prompt Empty Prompt 1`] = `
color="subdued"
data-euiicon-type="importAction"
size="xxl"
>
</span>
/>
</div>
<div
className="euiEmptyPrompt__content"

View file

@ -37,9 +37,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="search"
size="m"
>
</span>
/>
</span>
</div>
</div>
@ -75,9 +73,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
className="euiFilePicker__icon"
data-euiicon-type="importAction"
size="m"
>
</span>
/>
<div
className="euiFilePicker__promptText"
>
@ -154,9 +150,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
color="inherit"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
<span
className="euiButtonEmpty__text"
>
@ -302,9 +296,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
className="euiTableSortIcon"
data-euiicon-type="sortDown"
size="m"
>
</span>
/>
</span>
</button>
</th>
@ -468,9 +460,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
color="inherit"
data-euiicon-type="exportAction"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -496,9 +486,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
color="inherit"
data-euiicon-type="copy"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -644,9 +632,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
color="inherit"
data-euiicon-type="exportAction"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -672,9 +658,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
color="inherit"
data-euiicon-type="copy"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -820,9 +804,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
color="inherit"
data-euiicon-type="exportAction"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -848,9 +830,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
color="inherit"
data-euiicon-type="copy"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -893,9 +873,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
color="inherit"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
<span
className="euiButtonEmpty__text"
>
@ -937,9 +915,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
color="inherit"
data-euiicon-type="arrowLeft"
size="m"
>
</span>
/>
</button>
<ul
aria-label="Pagination for table: "
@ -984,9 +960,7 @@ exports[`Storyshots Home/Components/Workpad Table Workpad Table 1`] = `
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
</nav>
</div>

View file

@ -73,9 +73,7 @@ exports[`Storyshots components/ItemGrid complex grid 1`] = `
<span
color="#333"
data-euiicon-type="plusInCircle"
>
</span>
/>
</div>
</div>
<div
@ -95,9 +93,7 @@ exports[`Storyshots components/ItemGrid complex grid 1`] = `
<span
color="#FFF"
data-euiicon-type="minusInCircle"
>
</span>
/>
</div>
</div>
<div
@ -117,9 +113,7 @@ exports[`Storyshots components/ItemGrid complex grid 1`] = `
<span
color="#FFF"
data-euiicon-type="check"
>
</span>
/>
</div>
</div>
</div>
@ -131,19 +125,13 @@ exports[`Storyshots components/ItemGrid icon grid 1`] = `
>
<span
data-euiicon-type="plusInCircle"
>
</span>
/>
<span
data-euiicon-type="minusInCircle"
>
</span>
/>
<span
data-euiicon-type="check"
>
</span>
/>
</div>
`;

View file

@ -34,9 +34,7 @@ exports[`Storyshots components/SavedElementsModal/ElementControls has two button
color="inherit"
data-euiicon-type="pencil"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -63,9 +61,7 @@ exports[`Storyshots components/SavedElementsModal/ElementControls has two button
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
</button>
</span>
</div>

View file

@ -85,9 +85,7 @@ exports[`Storyshots components/SavedElementsModal/ElementGrid default 1`] = `
color="inherit"
data-euiicon-type="pencil"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -114,9 +112,7 @@ exports[`Storyshots components/SavedElementsModal/ElementGrid default 1`] = `
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -196,9 +192,7 @@ exports[`Storyshots components/SavedElementsModal/ElementGrid default 1`] = `
color="inherit"
data-euiicon-type="pencil"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -225,9 +219,7 @@ exports[`Storyshots components/SavedElementsModal/ElementGrid default 1`] = `
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -307,9 +299,7 @@ exports[`Storyshots components/SavedElementsModal/ElementGrid default 1`] = `
color="inherit"
data-euiicon-type="pencil"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -336,9 +326,7 @@ exports[`Storyshots components/SavedElementsModal/ElementGrid default 1`] = `
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
</button>
</span>
</div>

View file

@ -26,9 +26,7 @@ exports[`Storyshots components/SavedElementsModal no custom elements 1`] = `
color="inherit"
data-euiicon-type="cross"
size="m"
>
</span>
/>
</button>
<div
className="euiModal__flex"
@ -80,9 +78,7 @@ exports[`Storyshots components/SavedElementsModal no custom elements 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="search"
size="m"
>
</span>
/>
</span>
</div>
</div>
@ -103,9 +99,7 @@ exports[`Storyshots components/SavedElementsModal no custom elements 1`] = `
color="subdued"
data-euiicon-type="vector"
size="xxl"
>
</span>
/>
</div>
<div
className="euiEmptyPrompt__content"
@ -196,9 +190,7 @@ exports[`Storyshots components/SavedElementsModal with custom elements 1`] = `
color="inherit"
data-euiicon-type="cross"
size="m"
>
</span>
/>
</button>
<div
className="euiModal__flex"
@ -250,9 +242,7 @@ exports[`Storyshots components/SavedElementsModal with custom elements 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="search"
size="m"
>
</span>
/>
</span>
</div>
</div>
@ -337,9 +327,7 @@ exports[`Storyshots components/SavedElementsModal with custom elements 1`] = `
color="inherit"
data-euiicon-type="pencil"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -366,9 +354,7 @@ exports[`Storyshots components/SavedElementsModal with custom elements 1`] = `
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -448,9 +434,7 @@ exports[`Storyshots components/SavedElementsModal with custom elements 1`] = `
color="inherit"
data-euiicon-type="pencil"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -477,9 +461,7 @@ exports[`Storyshots components/SavedElementsModal with custom elements 1`] = `
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -559,9 +541,7 @@ exports[`Storyshots components/SavedElementsModal with custom elements 1`] = `
color="inherit"
data-euiicon-type="pencil"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -588,9 +568,7 @@ exports[`Storyshots components/SavedElementsModal with custom elements 1`] = `
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -656,9 +634,7 @@ exports[`Storyshots components/SavedElementsModal with text filter 1`] = `
color="inherit"
data-euiicon-type="cross"
size="m"
>
</span>
/>
</button>
<div
className="euiModal__flex"
@ -710,9 +686,7 @@ exports[`Storyshots components/SavedElementsModal with text filter 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="search"
size="m"
>
</span>
/>
</span>
</div>
<div
@ -728,9 +702,7 @@ exports[`Storyshots components/SavedElementsModal with text filter 1`] = `
<span
className="euiFormControlLayoutClearButton__icon"
data-euiicon-type="cross"
>
</span>
/>
</button>
</div>
</div>
@ -815,9 +787,7 @@ exports[`Storyshots components/SavedElementsModal with text filter 1`] = `
color="inherit"
data-euiicon-type="pencil"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -844,9 +814,7 @@ exports[`Storyshots components/SavedElementsModal with text filter 1`] = `
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
</button>
</span>
</div>

View file

@ -72,9 +72,7 @@ exports[`Storyshots components/Sidebar/SidebarHeader with layer controls 1`] = `
color="inherit"
data-euiicon-type="sortUp"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -100,9 +98,7 @@ exports[`Storyshots components/Sidebar/SidebarHeader with layer controls 1`] = `
color="inherit"
data-euiicon-type="arrowUp"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -128,9 +124,7 @@ exports[`Storyshots components/Sidebar/SidebarHeader with layer controls 1`] = `
color="inherit"
data-euiicon-type="arrowDown"
size="m"
>
</span>
/>
</button>
</span>
</div>
@ -156,9 +150,7 @@ exports[`Storyshots components/Sidebar/SidebarHeader with layer controls 1`] = `
color="inherit"
data-euiicon-type="sortDown"
size="m"
>
</span>
/>
</button>
</span>
</div>

View file

@ -57,9 +57,7 @@ exports[`Storyshots components/Tags/Tag as health 1`] = `
<span
color="#666666"
data-euiicon-type="dot"
>
</span>
/>
</div>
<div
className="euiFlexItem euiFlexItem--flexGrowZero"
@ -83,9 +81,7 @@ exports[`Storyshots components/Tags/Tag as health with color 1`] = `
<span
color="#9b3067"
data-euiicon-type="dot"
>
</span>
/>
</div>
<div
className="euiFlexItem euiFlexItem--flexGrowZero"

View file

@ -78,9 +78,7 @@ Array [
<span
color="#cc3b54"
data-euiicon-type="dot"
>
</span>
/>
</div>
<div
className="euiFlexItem euiFlexItem--flexGrowZero"
@ -101,9 +99,7 @@ Array [
<span
color="#9b3067"
data-euiicon-type="dot"
>
</span>
/>
</div>
<div
className="euiFlexItem euiFlexItem--flexGrowZero"
@ -124,9 +120,7 @@ Array [
<span
color="#d41e93"
data-euiicon-type="dot"
>
</span>
/>
</div>
<div
className="euiFlexItem euiFlexItem--flexGrowZero"

View file

@ -152,9 +152,7 @@ exports[`Storyshots components/TextStylePicker default 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -246,9 +244,7 @@ exports[`Storyshots components/TextStylePicker default 1`] = `
color="inherit"
data-euiicon-type="editorBold"
size="m"
>
</span>
/>
<span
className="euiButton__text euiScreenReaderOnly"
>
@ -278,9 +274,7 @@ exports[`Storyshots components/TextStylePicker default 1`] = `
color="inherit"
data-euiicon-type="editorItalic"
size="m"
>
</span>
/>
<span
className="euiButton__text euiScreenReaderOnly"
>
@ -310,9 +304,7 @@ exports[`Storyshots components/TextStylePicker default 1`] = `
color="inherit"
data-euiicon-type="editorUnderline"
size="m"
>
</span>
/>
<span
className="euiButton__text euiScreenReaderOnly"
>
@ -356,9 +348,7 @@ exports[`Storyshots components/TextStylePicker default 1`] = `
color="inherit"
data-euiicon-type="editorAlignLeft"
size="m"
>
</span>
/>
<span
className="euiButton__text euiScreenReaderOnly"
>
@ -394,9 +384,7 @@ exports[`Storyshots components/TextStylePicker default 1`] = `
color="inherit"
data-euiicon-type="editorAlignCenter"
size="m"
>
</span>
/>
<span
className="euiButton__text euiScreenReaderOnly"
>
@ -432,9 +420,7 @@ exports[`Storyshots components/TextStylePicker default 1`] = `
color="inherit"
data-euiicon-type="editorAlignRight"
size="m"
>
</span>
/>
<span
className="euiButton__text euiScreenReaderOnly"
>
@ -612,9 +598,7 @@ exports[`Storyshots components/TextStylePicker interactive 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -706,9 +690,7 @@ exports[`Storyshots components/TextStylePicker interactive 1`] = `
color="inherit"
data-euiicon-type="editorBold"
size="m"
>
</span>
/>
<span
className="euiButton__text euiScreenReaderOnly"
>
@ -738,9 +720,7 @@ exports[`Storyshots components/TextStylePicker interactive 1`] = `
color="inherit"
data-euiicon-type="editorItalic"
size="m"
>
</span>
/>
<span
className="euiButton__text euiScreenReaderOnly"
>
@ -770,9 +750,7 @@ exports[`Storyshots components/TextStylePicker interactive 1`] = `
color="inherit"
data-euiicon-type="editorUnderline"
size="m"
>
</span>
/>
<span
className="euiButton__text euiScreenReaderOnly"
>
@ -816,9 +794,7 @@ exports[`Storyshots components/TextStylePicker interactive 1`] = `
color="inherit"
data-euiicon-type="editorAlignLeft"
size="m"
>
</span>
/>
<span
className="euiButton__text euiScreenReaderOnly"
>
@ -854,9 +830,7 @@ exports[`Storyshots components/TextStylePicker interactive 1`] = `
color="inherit"
data-euiicon-type="editorAlignCenter"
size="m"
>
</span>
/>
<span
className="euiButton__text euiScreenReaderOnly"
>
@ -892,9 +866,7 @@ exports[`Storyshots components/TextStylePicker interactive 1`] = `
color="inherit"
data-euiicon-type="editorAlignRight"
size="m"
>
</span>
/>
<span
className="euiButton__text euiScreenReaderOnly"
>

View file

@ -20,9 +20,7 @@ Array [
"verticalAlign": "top",
}
}
>
</span>
/>
</span>
<span>
<span
@ -83,9 +81,7 @@ Array [
color="inherit"
data-euiicon-type="trash"
size="m"
>
</span>
/>
<span
className="euiButton__text"
>

View file

@ -20,9 +20,7 @@ Array [
"verticalAlign": "top",
}
}
>
</span>
/>
</span>
<span>
<span
@ -49,9 +47,7 @@ Array [
color="inherit"
data-euiicon-type="alert"
size="m"
>
</span>
/>
<span
className="euiCallOutHeader__title"
>
@ -259,9 +255,7 @@ Array [
color="inherit"
data-euiicon-type="save"
size="m"
>
</span>
/>
<span
className="euiButton__text"
>
@ -316,9 +310,7 @@ Array [
"verticalAlign": "top",
}
}
>
</span>
/>
</span>
<span>
<span
@ -345,9 +337,7 @@ Array [
color="inherit"
data-euiicon-type="alert"
size="m"
>
</span>
/>
<span
className="euiCallOutHeader__title"
>
@ -496,9 +486,7 @@ Array [
color="inherit"
data-euiicon-type="save"
size="m"
>
</span>
/>
<span
className="euiButton__text"
>
@ -553,9 +541,7 @@ Array [
"verticalAlign": "top",
}
}
>
</span>
/>
</span>
<span>
<span
@ -582,9 +568,7 @@ Array [
color="inherit"
data-euiicon-type="alert"
size="m"
>
</span>
/>
<span
className="euiCallOutHeader__title"
>
@ -733,9 +717,7 @@ Array [
color="inherit"
data-euiicon-type="save"
size="m"
>
</span>
/>
<span
className="euiButton__text"
>
@ -790,9 +772,7 @@ Array [
"verticalAlign": "top",
}
}
>
</span>
/>
</span>
<span>
<span
@ -943,9 +923,7 @@ Array [
color="inherit"
data-euiicon-type="save"
size="m"
>
</span>
/>
<span
className="euiButton__text"
>

View file

@ -28,9 +28,7 @@ exports[`Storyshots components/Variables/VarConfig default 1`] = `
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
<button
aria-controls="accordion-variables"
@ -79,9 +77,7 @@ exports[`Storyshots components/Variables/VarConfig default 1`] = `
color="inherit"
data-euiicon-type="plusInCircle"
size="m"
>
</span>
/>
</button>
</span>
</div>

View file

@ -33,9 +33,7 @@ exports[`Storyshots components/WorkpadFilters/FiltersGroupComponent default 1`]
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
<button
aria-controls="canvas-filter-group-0"
@ -97,9 +95,7 @@ exports[`Storyshots components/WorkpadFilters/FiltersGroupComponent empty group
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
<button
aria-controls="canvas-filter-group-0"

View file

@ -72,9 +72,7 @@ exports[`Storyshots components/WorkpadFilters/WorkpadFiltersComponent Empty filt
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -159,9 +157,7 @@ exports[`Storyshots components/WorkpadFilters/WorkpadFiltersComponent Filters gr
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -198,9 +194,7 @@ exports[`Storyshots components/WorkpadFilters/WorkpadFiltersComponent Filters gr
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
<button
aria-controls="canvas-filter-group-0"
@ -303,9 +297,7 @@ exports[`Storyshots components/WorkpadFilters/WorkpadFiltersComponent Filters gr
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -342,9 +334,7 @@ exports[`Storyshots components/WorkpadFilters/WorkpadFiltersComponent Filters gr
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
<button
aria-controls="canvas-filter-group-0"
@ -447,9 +437,7 @@ exports[`Storyshots components/WorkpadFilters/WorkpadFiltersComponent Filters gr
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -486,9 +474,7 @@ exports[`Storyshots components/WorkpadFilters/WorkpadFiltersComponent Filters gr
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
<button
aria-controls="canvas-filter-group-0"
@ -591,9 +577,7 @@ exports[`Storyshots components/WorkpadFilters/WorkpadFiltersComponent default 1`
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -630,9 +614,7 @@ exports[`Storyshots components/WorkpadFilters/WorkpadFiltersComponent default 1`
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
<button
aria-controls="canvas-filter-group-0"
@ -687,9 +669,7 @@ exports[`Storyshots components/WorkpadFilters/WorkpadFiltersComponent default 1`
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
<button
aria-controls="canvas-filter-group-1"

View file

@ -28,9 +28,7 @@ exports[`Storyshots components/WorkpadHeader/EditorMenu dark mode 1`] = `
color="inherit"
data-euiicon-type="arrowDown"
size="m"
>
</span>
/>
<span
className="euiButton__text"
>
@ -70,9 +68,7 @@ exports[`Storyshots components/WorkpadHeader/EditorMenu default 1`] = `
color="inherit"
data-euiicon-type="arrowDown"
size="m"
>
</span>
/>
<span
className="euiButton__text"
>

View file

@ -28,9 +28,7 @@ exports[`Storyshots components/WorkpadHeader/ElementMenu default 1`] = `
color="inherit"
data-euiicon-type="plusInCircle"
size="m"
>
</span>
/>
<span
className="euiButton__text"
>

View file

@ -145,9 +145,7 @@ exports[`Storyshots arguments/ContainerStyle extended 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -213,9 +211,7 @@ exports[`Storyshots arguments/ContainerStyle extended 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -563,9 +559,7 @@ exports[`Storyshots arguments/ContainerStyle/components appearance form 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -631,9 +625,7 @@ exports[`Storyshots arguments/ContainerStyle/components appearance form 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -991,9 +983,7 @@ exports[`Storyshots arguments/ContainerStyle/components extended template 1`] =
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -1059,9 +1049,7 @@ exports[`Storyshots arguments/ContainerStyle/components extended template 1`] =
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>

View file

@ -71,9 +71,7 @@ exports[`Storyshots arguments/SeriesStyle extended 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -167,9 +165,7 @@ exports[`Storyshots arguments/SeriesStyle extended 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -255,9 +251,7 @@ exports[`Storyshots arguments/SeriesStyle extended 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>
@ -343,9 +337,7 @@ exports[`Storyshots arguments/SeriesStyle extended 1`] = `
className="euiFormControlLayoutCustomIcon__icon"
data-euiicon-type="arrowDown"
size="s"
>
</span>
/>
</span>
</div>
</div>

View file

@ -216,14 +216,13 @@ exports[`Storyshots arguments/SeriesStyle/components simple: no series 1`] = `
onMouseOver={[Function]}
>
<span
aria-label="Info"
color="warning"
data-euiicon-type="alert"
onBlur={[Function]}
onFocus={[Function]}
tabIndex={0}
>
Info
</span>
/>
</span>
</div>
</div>

View file

@ -1327,9 +1327,7 @@ exports[`Storyshots shareables/Canvas component 1`] = `
<span
data-euiicon-type="logoElastic"
size="l"
>
</span>
/>
</a>
</div>
<div
@ -1389,9 +1387,7 @@ exports[`Storyshots shareables/Canvas component 1`] = `
color="inherit"
data-euiicon-type="arrowLeft"
size="m"
>
</span>
/>
</button>
</div>
<div
@ -1442,9 +1438,7 @@ exports[`Storyshots shareables/Canvas component 1`] = `
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -1473,9 +1467,7 @@ exports[`Storyshots shareables/Canvas component 1`] = `
color="inherit"
data-euiicon-type="gear"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -2817,9 +2809,7 @@ exports[`Storyshots shareables/Canvas contextual: austin 1`] = `
<span
data-euiicon-type="logoElastic"
size="l"
>
</span>
/>
</a>
</div>
<div
@ -2879,9 +2869,7 @@ exports[`Storyshots shareables/Canvas contextual: austin 1`] = `
color="inherit"
data-euiicon-type="arrowLeft"
size="m"
>
</span>
/>
</button>
</div>
<div
@ -2932,9 +2920,7 @@ exports[`Storyshots shareables/Canvas contextual: austin 1`] = `
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -2963,9 +2949,7 @@ exports[`Storyshots shareables/Canvas contextual: austin 1`] = `
color="inherit"
data-euiicon-type="gear"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -3123,9 +3107,7 @@ exports[`Storyshots shareables/Canvas contextual: hello 1`] = `
<span
data-euiicon-type="logoElastic"
size="l"
>
</span>
/>
</a>
</div>
<div
@ -3185,9 +3167,7 @@ exports[`Storyshots shareables/Canvas contextual: hello 1`] = `
color="inherit"
data-euiicon-type="arrowLeft"
size="m"
>
</span>
/>
</button>
</div>
<div
@ -3238,9 +3218,7 @@ exports[`Storyshots shareables/Canvas contextual: hello 1`] = `
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -3269,9 +3247,7 @@ exports[`Storyshots shareables/Canvas contextual: hello 1`] = `
color="inherit"
data-euiicon-type="gear"
size="m"
>
</span>
/>
</button>
</div>
</div>

View file

@ -1280,9 +1280,7 @@ exports[`Storyshots shareables/Footer contextual: austin 1`] = `
<span
data-euiicon-type="logoElastic"
size="l"
>
</span>
/>
</a>
</div>
<div
@ -1342,9 +1340,7 @@ exports[`Storyshots shareables/Footer contextual: austin 1`] = `
color="inherit"
data-euiicon-type="arrowLeft"
size="m"
>
</span>
/>
</button>
</div>
<div
@ -1395,9 +1391,7 @@ exports[`Storyshots shareables/Footer contextual: austin 1`] = `
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -1426,9 +1420,7 @@ exports[`Storyshots shareables/Footer contextual: austin 1`] = `
color="inherit"
data-euiicon-type="gear"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -1540,9 +1532,7 @@ exports[`Storyshots shareables/Footer contextual: hello 1`] = `
<span
data-euiicon-type="logoElastic"
size="l"
>
</span>
/>
</a>
</div>
<div
@ -1602,9 +1592,7 @@ exports[`Storyshots shareables/Footer contextual: hello 1`] = `
color="inherit"
data-euiicon-type="arrowLeft"
size="m"
>
</span>
/>
</button>
</div>
<div
@ -1655,9 +1643,7 @@ exports[`Storyshots shareables/Footer contextual: hello 1`] = `
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -1686,9 +1672,7 @@ exports[`Storyshots shareables/Footer contextual: hello 1`] = `
color="inherit"
data-euiicon-type="gear"
size="m"
>
</span>
/>
</button>
</div>
</div>

View file

@ -34,9 +34,7 @@ exports[`Storyshots shareables/Footer/PageControls component 1`] = `
color="inherit"
data-euiicon-type="arrowLeft"
size="m"
>
</span>
/>
</button>
</div>
<div
@ -87,9 +85,7 @@ exports[`Storyshots shareables/Footer/PageControls component 1`] = `
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -135,9 +131,7 @@ exports[`Storyshots shareables/Footer/PageControls contextual: austin 1`] = `
color="inherit"
data-euiicon-type="arrowLeft"
size="m"
>
</span>
/>
</button>
</div>
<div
@ -188,9 +182,7 @@ exports[`Storyshots shareables/Footer/PageControls contextual: austin 1`] = `
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -236,9 +228,7 @@ exports[`Storyshots shareables/Footer/PageControls contextual: hello 1`] = `
color="inherit"
data-euiicon-type="arrowLeft"
size="m"
>
</span>
/>
</button>
</div>
<div
@ -289,9 +279,7 @@ exports[`Storyshots shareables/Footer/PageControls contextual: hello 1`] = `
color="inherit"
data-euiicon-type="arrowRight"
size="m"
>
</span>
/>
</button>
</div>
</div>

View file

@ -34,9 +34,7 @@ exports[`Storyshots shareables/Footer/Title component 1`] = `
<span
data-euiicon-type="logoElastic"
size="l"
>
</span>
/>
</a>
</div>
<div
@ -101,9 +99,7 @@ exports[`Storyshots shareables/Footer/Title contextual: austin 1`] = `
<span
data-euiicon-type="logoElastic"
size="l"
>
</span>
/>
</a>
</div>
<div
@ -168,9 +164,7 @@ exports[`Storyshots shareables/Footer/Title contextual: hello 1`] = `
<span
data-euiicon-type="logoElastic"
size="l"
>
</span>
/>
</a>
</div>
<div

View file

@ -48,16 +48,12 @@ exports[`Storyshots shareables/Footer/Settings/AutoplaySettings component: off,
className="euiSwitch__icon"
data-euiicon-type="cross"
size="m"
>
</span>
/>
<span
className="euiSwitch__icon euiSwitch__icon--checked"
data-euiicon-type="check"
size="m"
>
</span>
/>
</span>
</span>
</button>
@ -216,16 +212,12 @@ exports[`Storyshots shareables/Footer/Settings/AutoplaySettings component: on, 5
className="euiSwitch__icon"
data-euiicon-type="cross"
size="m"
>
</span>
/>
<span
className="euiSwitch__icon euiSwitch__icon--checked"
data-euiicon-type="check"
size="m"
>
</span>
/>
</span>
</span>
</button>
@ -384,16 +376,12 @@ exports[`Storyshots shareables/Footer/Settings/AutoplaySettings contextual 1`] =
className="euiSwitch__icon"
data-euiicon-type="cross"
size="m"
>
</span>
/>
<span
className="euiSwitch__icon euiSwitch__icon--checked"
data-euiicon-type="check"
size="m"
>
</span>
/>
</span>
</span>
</button>

View file

@ -39,9 +39,7 @@ exports[`Storyshots shareables/Footer/Settings component 1`] = `
color="inherit"
data-euiicon-type="gear"
size="m"
>
</span>
/>
</button>
</div>
</div>
@ -89,9 +87,7 @@ exports[`Storyshots shareables/Footer/Settings contextual 1`] = `
color="inherit"
data-euiicon-type="gear"
size="m"
>
</span>
/>
</button>
</div>
</div>

View file

@ -59,16 +59,12 @@ exports[`Storyshots shareables/Footer/Settings/ToolbarSettings component: off 1`
className="euiSwitch__icon"
data-euiicon-type="cross"
size="m"
>
</span>
/>
<span
className="euiSwitch__icon euiSwitch__icon--checked"
data-euiicon-type="check"
size="m"
>
</span>
/>
</span>
</span>
</button>
@ -151,16 +147,12 @@ exports[`Storyshots shareables/Footer/Settings/ToolbarSettings component: on 1`]
className="euiSwitch__icon"
data-euiicon-type="cross"
size="m"
>
</span>
/>
<span
className="euiSwitch__icon euiSwitch__icon--checked"
data-euiicon-type="check"
size="m"
>
</span>
/>
</span>
</span>
</button>
@ -243,16 +235,12 @@ exports[`Storyshots shareables/Footer/Settings/ToolbarSettings contextual 1`] =
className="euiSwitch__icon"
data-euiicon-type="cross"
size="m"
>
</span>
/>
<span
className="euiSwitch__icon euiSwitch__icon--checked"
data-euiicon-type="check"
size="m"
>
</span>
/>
</span>
</span>
</button>

View file

@ -264,7 +264,7 @@ describe('ConnectorsDropdown', () => {
wrapper: ({ children }) => <TestProviders>{children}</TestProviders>,
});
const tooltips = screen.getAllByText(
const tooltips = screen.getAllByLabelText(
'This connector is deprecated. Update it, or create a new one.'
);
expect(tooltips[0]).toBeInTheDocument();

View file

@ -25,7 +25,7 @@ describe('Markdown', () => {
test('it renders the expected link text', () => {
const result = appMockRender.render(<MarkdownRenderer>{markdownWithLink}</MarkdownRenderer>);
expect(removeExternalLinkText(result.getByTestId('markdown-link').textContent)).toContain(
expect(removeExternalLinkText(result.getByTestId('markdown-link').textContent)).toEqual(
'External Site'
);
});

View file

@ -138,7 +138,7 @@ describe('Background Search Session Management Table', () => {
expect(table.find('tbody td').map((node) => node.text())).toMatchInlineSnapshot(`
Array [
"App",
"Namevery background search Info",
"Namevery background search ",
"# Searches0",
"StatusExpired",
"Created2 Dec, 2020, 00:19:32",

View file

@ -65,6 +65,7 @@ export const IndexSetupDatasetFilter: React.FC<{
isSelected={isVisible}
onClick={show}
iconType="arrowDown"
size="s"
>
<FormattedMessage
id="xpack.infra.analysisSetup.indexDatasetFilterIncludeAllButtonLabel"

View file

@ -296,8 +296,9 @@ describe('Test pipeline', () => {
// Dropdown should be visible and processor status should equal "success"
expect(exists('documentsDropdown')).toBe(true);
const initialProcessorStatusLabel = find('processors>0.processorStatusIcon').props()
.children;
const initialProcessorStatusLabel = find('processors>0.processorStatusIcon').props()[
'aria-label'
];
expect(initialProcessorStatusLabel).toEqual('Success');
// Open flyout and click clear all button
@ -319,8 +320,9 @@ describe('Test pipeline', () => {
// Verify documents and processors were reset
expect(exists('documentsDropdown')).toBe(false);
expect(exists('addDocumentsButton')).toBe(true);
const resetProcessorStatusIconLabel = find('processors>0.processorStatusIcon').props()
.children;
const resetProcessorStatusIconLabel = find('processors>0.processorStatusIcon').props()[
'aria-label'
];
expect(resetProcessorStatusIconLabel).toEqual('Not run');
});
});
@ -330,7 +332,7 @@ describe('Test pipeline', () => {
it('should show "inactive" processor status by default', async () => {
const { find } = testBed;
const statusIconLabel = find('processors>0.processorStatusIcon').props().children;
const statusIconLabel = find('processors>0.processorStatusIcon').props()['aria-label'];
expect(statusIconLabel).toEqual('Not run');
});
@ -350,7 +352,7 @@ describe('Test pipeline', () => {
actions.closeTestPipelineFlyout();
// Verify status
const statusIconLabel = find('processors>0.processorStatusIcon').props().children;
const statusIconLabel = find('processors>0.processorStatusIcon').props()['aria-label'];
expect(statusIconLabel).toEqual('Success');
});

View file

@ -617,9 +617,7 @@ describe('DatatableComponent', () => {
wrapper.setProps({ data: newData });
wrapper.update();
// Using .toContain over .toEqual because this element includes text from <EuiScreenReaderOnly>
// which can't be seen, but shows in the text content
expect(wrapper.find('[data-test-subj="dataGridHeader"]').children().first().text()).toContain(
expect(wrapper.find('[data-test-subj="dataGridHeader"]').children().first().text()).toEqual(
'new a'
);
});

View file

@ -120,10 +120,7 @@ describe('IndexPattern Field Item', () => {
it('should display displayName of a field', () => {
const wrapper = mountWithIntl(<InnerFieldItem {...defaultProps} />);
// Using .toContain over .toEqual because this element includes text from <EuiScreenReaderOnly>
// which can't be seen, but shows in the text content
expect(wrapper.find('[data-test-subj="lnsFieldListPanelField"]').first().text()).toContain(
expect(wrapper.find('[data-test-subj="lnsFieldListPanelField"]').first().text()).toEqual(
'bytesLabel'
);
});

View file

@ -1,9 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`RequestTrialExtension component should display when enterprise license is not active and trial has been used 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Extend your trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>If youd like to continue using machine learning, advanced security, and our other awesome <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" class=\\"euiLink__externalIcon\\">External link</span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>, request an extension now.</span></p></div></div><div class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"https://www.elastic.co/trialextension\\" rel=\\"noopener\\" target=\\"_blank\\" data-test-subj=\\"extendTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Extend trial</span></span></a></div></div></div>"`;
exports[`RequestTrialExtension component should display when enterprise license is not active and trial has been used 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Extend your trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>If youd like to continue using machine learning, advanced security, and our other awesome <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" aria-label=\\"External link\\" class=\\"euiLink__externalIcon\\"></span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>, request an extension now.</span></p></div></div><div class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"https://www.elastic.co/trialextension\\" rel=\\"noopener\\" target=\\"_blank\\" data-test-subj=\\"extendTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Extend trial</span></span></a></div></div></div>"`;
exports[`RequestTrialExtension component should display when license is active and trial has been used 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Extend your trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>If youd like to continue using machine learning, advanced security, and our other awesome <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" class=\\"euiLink__externalIcon\\">External link</span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>, request an extension now.</span></p></div></div><div class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"https://www.elastic.co/trialextension\\" rel=\\"noopener\\" target=\\"_blank\\" data-test-subj=\\"extendTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Extend trial</span></span></a></div></div></div>"`;
exports[`RequestTrialExtension component should display when license is active and trial has been used 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Extend your trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>If youd like to continue using machine learning, advanced security, and our other awesome <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" aria-label=\\"External link\\" class=\\"euiLink__externalIcon\\"></span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>, request an extension now.</span></p></div></div><div class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"https://www.elastic.co/trialextension\\" rel=\\"noopener\\" target=\\"_blank\\" data-test-subj=\\"extendTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Extend trial</span></span></a></div></div></div>"`;
exports[`RequestTrialExtension component should display when license is not active and trial has been used 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Extend your trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>If youd like to continue using machine learning, advanced security, and our other awesome <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" class=\\"euiLink__externalIcon\\">External link</span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>, request an extension now.</span></p></div></div><div class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"https://www.elastic.co/trialextension\\" rel=\\"noopener\\" target=\\"_blank\\" data-test-subj=\\"extendTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Extend trial</span></span></a></div></div></div>"`;
exports[`RequestTrialExtension component should display when license is not active and trial has been used 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Extend your trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>If youd like to continue using machine learning, advanced security, and our other awesome <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" aria-label=\\"External link\\" class=\\"euiLink__externalIcon\\"></span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>, request an extension now.</span></p></div></div><div class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"https://www.elastic.co/trialextension\\" rel=\\"noopener\\" target=\\"_blank\\" data-test-subj=\\"extendTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Extend trial</span></span></a></div></div></div>"`;
exports[`RequestTrialExtension component should display when platinum license is not active and trial has been used 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Extend your trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>If youd like to continue using machine learning, advanced security, and our other awesome <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" class=\\"euiLink__externalIcon\\">External link</span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>, request an extension now.</span></p></div></div><div class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"https://www.elastic.co/trialextension\\" rel=\\"noopener\\" target=\\"_blank\\" data-test-subj=\\"extendTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Extend trial</span></span></a></div></div></div>"`;
exports[`RequestTrialExtension component should display when platinum license is not active and trial has been used 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Extend your trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>If youd like to continue using machine learning, advanced security, and our other awesome <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" aria-label=\\"External link\\" class=\\"euiLink__externalIcon\\"></span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>, request an extension now.</span></p></div></div><div class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"https://www.elastic.co/trialextension\\" rel=\\"noopener\\" target=\\"_blank\\" data-test-subj=\\"extendTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Extend trial</span></span></a></div></div></div>"`;

View file

@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`RevertToBasic component should display when license is about to expire 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Revert to Basic license</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Youll revert to our free features and lose access to machine learning, advanced security, and other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" class=\\"euiLink__externalIcon\\">External link</span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"revertToBasicButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Revert to Basic</span></span></button></div></div></div>"`;
exports[`RevertToBasic component should display when license is about to expire 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Revert to Basic license</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Youll revert to our free features and lose access to machine learning, advanced security, and other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" aria-label=\\"External link\\" class=\\"euiLink__externalIcon\\"></span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"revertToBasicButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Revert to Basic</span></span></button></div></div></div>"`;
exports[`RevertToBasic component should display when license is expired 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Revert to Basic license</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Youll revert to our free features and lose access to machine learning, advanced security, and other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" class=\\"euiLink__externalIcon\\">External link</span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"revertToBasicButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Revert to Basic</span></span></button></div></div></div>"`;
exports[`RevertToBasic component should display when license is expired 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Revert to Basic license</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Youll revert to our free features and lose access to machine learning, advanced security, and other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" aria-label=\\"External link\\" class=\\"euiLink__externalIcon\\"></span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"revertToBasicButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Revert to Basic</span></span></button></div></div></div>"`;
exports[`RevertToBasic component should display when trial is active 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Revert to Basic license</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Youll revert to our free features and lose access to machine learning, advanced security, and other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" class=\\"euiLink__externalIcon\\">External link</span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"revertToBasicButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Revert to Basic</span></span></button></div></div></div>"`;
exports[`RevertToBasic component should display when trial is active 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Revert to Basic license</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Youll revert to our free features and lose access to machine learning, advanced security, and other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" aria-label=\\"External link\\" class=\\"euiLink__externalIcon\\"></span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a>.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"revertToBasicButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Revert to Basic</span></span></button></div></div></div>"`;

View file

@ -1,9 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`StartTrial component when trial is allowed display for basic license 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Start a 30-day trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Experience what machine learning, advanced security, and all our other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" class=\\"euiLink__externalIcon\\">External link</span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a> have to offer.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"startTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Start trial</span></span></button></div></div></div>"`;
exports[`StartTrial component when trial is allowed display for basic license 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Start a 30-day trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Experience what machine learning, advanced security, and all our other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" aria-label=\\"External link\\" class=\\"euiLink__externalIcon\\"></span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a> have to offer.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"startTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Start trial</span></span></button></div></div></div>"`;
exports[`StartTrial component when trial is allowed should display for expired enterprise license 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Start a 30-day trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Experience what machine learning, advanced security, and all our other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" class=\\"euiLink__externalIcon\\">External link</span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a> have to offer.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"startTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Start trial</span></span></button></div></div></div>"`;
exports[`StartTrial component when trial is allowed should display for expired enterprise license 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Start a 30-day trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Experience what machine learning, advanced security, and all our other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" aria-label=\\"External link\\" class=\\"euiLink__externalIcon\\"></span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a> have to offer.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"startTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Start trial</span></span></button></div></div></div>"`;
exports[`StartTrial component when trial is allowed should display for expired platinum license 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Start a 30-day trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Experience what machine learning, advanced security, and all our other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" class=\\"euiLink__externalIcon\\">External link</span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a> have to offer.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"startTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Start trial</span></span></button></div></div></div>"`;
exports[`StartTrial component when trial is allowed should display for expired platinum license 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Start a 30-day trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Experience what machine learning, advanced security, and all our other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" aria-label=\\"External link\\" class=\\"euiLink__externalIcon\\"></span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a> have to offer.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"startTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Start trial</span></span></button></div></div></div>"`;
exports[`StartTrial component when trial is allowed should display for gold license 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Start a 30-day trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Experience what machine learning, advanced security, and all our other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" class=\\"euiLink__externalIcon\\">External link</span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a> have to offer.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"startTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Start trial</span></span></button></div></div></div>"`;
exports[`StartTrial component when trial is allowed should display for gold license 1`] = `"<div class=\\"euiFlexItem\\"><div class=\\"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiCard euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Start a 30-day trial</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p><span>Experience what machine learning, advanced security, and all our other <a class=\\"euiLink euiLink--primary\\" href=\\"https://www.elastic.co/subscriptions\\" target=\\"_blank\\" rel=\\"noopener\\">subscription features<span data-euiicon-type=\\"popout\\" aria-label=\\"External link\\" class=\\"euiLink__externalIcon\\"></span><span class=\\"euiScreenReaderOnly\\">(opens in a new tab or window)</span></a> have to offer.</span></p></div></div><div class=\\"euiCard__footer\\"><button class=\\"euiButton euiButton--primary\\" type=\\"button\\" data-test-subj=\\"startTrialButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Start trial</span></span></button></div></div></div>"`;

View file

@ -87,11 +87,10 @@ Array [
>
Elasticsearch Service Console
<span
aria-label="External link"
class="euiLink__externalIcon"
data-euiicon-type="popout"
>
External link
</span>
/>
<span
class="euiScreenReaderOnly"
>
@ -107,11 +106,10 @@ Array [
>
Logs and metrics
<span
aria-label="External link"
class="euiLink__externalIcon"
data-euiicon-type="popout"
>
External link
</span>
/>
<span
class="euiScreenReaderOnly"
>
@ -127,11 +125,10 @@ Array [
>
the documentation page.
<span
aria-label="External link"
class="euiLink__externalIcon"
data-euiicon-type="popout"
>
External link
</span>
/>
<span
class="euiScreenReaderOnly"
>

View file

@ -158,11 +158,10 @@ Array [
>
Elasticsearch Service Console
<span
aria-label="External link"
class="euiLink__externalIcon"
data-euiicon-type="popout"
>
External link
</span>
/>
<span
class="euiScreenReaderOnly"
>
@ -178,11 +177,10 @@ Array [
>
Logs and metrics
<span
aria-label="External link"
class="euiLink__externalIcon"
data-euiicon-type="popout"
>
External link
</span>
/>
<span
class="euiScreenReaderOnly"
>
@ -198,11 +196,10 @@ Array [
>
the documentation page.
<span
aria-label="External link"
class="euiLink__externalIcon"
data-euiicon-type="popout"
>
External link
</span>
/>
<span
class="euiScreenReaderOnly"
>

View file

@ -252,7 +252,7 @@ describe('<RemoteClusterList />', () => {
],
[
'',
remoteCluster2.name.concat('Info'), //Tests include the word "info" to account for the rendered text coming from EuiIcon
remoteCluster2.name,
'Not connected',
PROXY_MODE,
remoteCluster2.proxyAddress,
@ -261,7 +261,7 @@ describe('<RemoteClusterList />', () => {
],
[
'',
remoteCluster3.name.concat('Info'), //Tests include the word "info" to account for the rendered text coming from EuiIcon
remoteCluster3.name,
'Not connected',
PROXY_MODE,
remoteCluster2.proxyAddress,
@ -360,7 +360,7 @@ describe('<RemoteClusterList />', () => {
({ rows } = table.getMetaData('remoteClusterListTable'));
expect(rows.length).toBe(2);
expect(rows[0].columns[1].value).toContain(remoteCluster2.name);
expect(rows[0].columns[1].value).toEqual(remoteCluster2.name);
});
});

View file

@ -40,7 +40,7 @@ describe('FeatureTableCell', () => {
<FeatureTableCell feature={new SecuredFeature(feature.toRaw())} />
);
expect(wrapper.text()).toMatchInlineSnapshot(`"Test Feature Info"`);
expect(wrapper.text()).toMatchInlineSnapshot(`"Test Feature "`);
expect(wrapper.find(EuiIconTip).props().content).toMatchInlineSnapshot(`
<EuiText>

View file

@ -60,7 +60,7 @@ export function getDisplayedFeaturePrivileges(
acc[feature.id][key] = {
...acc[feature.id][key],
primaryFeaturePrivilege: primary.text().replaceAll('Info', '').trim(), // Removing the word "info" to account for the rendered text coming from EuiIcon
primaryFeaturePrivilege: primary.text().trim(),
hasCustomizedSubFeaturePrivileges:
findTestSubject(primary, 'additionalPrivilegesGranted').length > 0,
};

View file

@ -158,7 +158,7 @@ describe('ExceptionEntries', () => {
expect(parentValue.text()).toEqual(getEmptyValue());
expect(nestedField.exists('.euiToolTipAnchor')).toBeTruthy();
expect(nestedField.text()).toContain('host.name');
expect(nestedField.text()).toEqual('host.name');
expect(nestedOperator.text()).toEqual('is');
expect(nestedValue.text()).toEqual('some name');
});

View file

@ -58,7 +58,7 @@ describe('Modal Inspect', () => {
expect(
wrapper.find('.euiDescriptionList__title span[data-test-subj="index-pattern-title"]').text()
).toContain('Index pattern ');
).toBe('Index pattern ');
expect(
wrapper
.find('.euiDescriptionList__description span[data-test-subj="index-pattern-description"]')
@ -66,7 +66,7 @@ describe('Modal Inspect', () => {
).toBe('auditbeat-*, filebeat-*, packetbeat-*, winlogbeat-*');
expect(
wrapper.find('.euiDescriptionList__title span[data-test-subj="query-time-title"]').text()
).toContain('Query time ');
).toBe('Query time ');
expect(
wrapper
.find('.euiDescriptionList__description span[data-test-subj="query-time-description"]')
@ -76,7 +76,7 @@ describe('Modal Inspect', () => {
wrapper
.find('.euiDescriptionList__title span[data-test-subj="request-timestamp-title"]')
.text()
).toContain('Request timestamp ');
).toBe('Request timestamp ');
});
test('Click on request Tab', () => {

View file

@ -105,7 +105,7 @@ describe('Custom Links', () => {
const wrapper = mountWithIntl(
<GoogleLink link={'http://example.com/'}>{'Example Link'}</GoogleLink>
);
expect(removeExternalLinkText(wrapper.text())).toContain('Example Link');
expect(removeExternalLinkText(wrapper.text())).toEqual('Example Link');
});
test('it renders props passed in as link', () => {
@ -463,7 +463,7 @@ describe('Custom Links', () => {
describe('WhoisLink', () => {
test('it renders ip passed in as domain', () => {
const wrapper = mountWithIntl(<WhoIsLink domain={'192.0.2.0'}>{'Example Link'}</WhoIsLink>);
expect(removeExternalLinkText(wrapper.text())).toContain('Example Link');
expect(removeExternalLinkText(wrapper.text())).toEqual('Example Link');
});
test('it renders correct href', () => {
@ -488,7 +488,7 @@ describe('Custom Links', () => {
{'Example Link'}
</CertificateFingerprintLink>
);
expect(removeExternalLinkText(wrapper.text())).toContain('Example Link');
expect(removeExternalLinkText(wrapper.text())).toEqual('Example Link');
});
test('it renders correct href', () => {
@ -519,7 +519,7 @@ describe('Custom Links', () => {
const wrapper = mountWithIntl(
<Ja3FingerprintLink ja3Fingerprint={'abcd'}>{'Example Link'}</Ja3FingerprintLink>
);
expect(removeExternalLinkText(wrapper.text())).toContain('Example Link');
expect(removeExternalLinkText(wrapper.text())).toEqual('Example Link');
});
test('it renders correct href', () => {
@ -548,7 +548,7 @@ describe('Custom Links', () => {
const wrapper = mountWithIntl(
<PortOrServiceNameLink portOrServiceName={443}>{'Example Link'}</PortOrServiceNameLink>
);
expect(removeExternalLinkText(wrapper.text())).toContain('Example Link');
expect(removeExternalLinkText(wrapper.text())).toEqual('Example Link');
});
test('it renders correct href when port is a number', () => {

View file

@ -20,7 +20,7 @@ describe('Markdown', () => {
expect(
removeExternalLinkText(wrapper.find('[data-test-subj="markdown-link"]').first().text())
).toContain('External Site');
).toEqual('External Site');
});
test('it renders the expected href', () => {

View file

@ -1,28 +0,0 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import React, { FC } from 'react';
import { EuiTourStepProps, EuiTourStep, DistributiveOmit } from '@elastic/eui';
/**
* This component can be used for tour steps, when tour step is optional
* If stepProps are not supplied, step will not be rendered, only children component will be
*/
export const OptionalEuiTourStep: FC<{
stepProps: DistributiveOmit<EuiTourStepProps, 'anchor'> | undefined;
}> = ({ children, stepProps }) => {
if (!stepProps) {
return <>{children}</>;
}
return (
<EuiTourStep {...stepProps}>
<>{children}</>
</EuiTourStep>
);
};

View file

@ -54,9 +54,9 @@ describe('Port', () => {
</TestProviders>
);
expect(
removeExternalLinkText(wrapper.find('[data-test-subj="port"]').first().text())
).toContain('443');
expect(removeExternalLinkText(wrapper.find('[data-test-subj="port"]').first().text())).toEqual(
'443'
);
});
test('it hyperlinks links destination.port to an external service that describes the purpose of the port', () => {

View file

@ -205,7 +205,7 @@ describe('SourceDestination', () => {
removeExternalLinkText(
wrapper.find('[data-test-subj="destination-ip-and-port"]').first().text()
)
).toContain('10.1.2.3:80');
).toEqual('10.1.2.3:80');
});
test('it renders destination.packets', () => {
@ -329,7 +329,7 @@ describe('SourceDestination', () => {
expect(
removeExternalLinkText(wrapper.find('[data-test-subj="source-ip-and-port"]').first().text())
).toContain('192.168.1.2:9987');
).toEqual('192.168.1.2:9987');
});
test('it renders source.packets', () => {

View file

@ -984,7 +984,7 @@ describe('SourceDestinationIp', () => {
removeExternalLinkText(
wrapper.find('[data-test-subj="draggable-content-source.port"]').first().text()
)
).toContain('9987');
).toEqual('9987');
});
test('it renders the expected destination port when type is `destination`, and both destinationIp and destinationPort are populated', () => {
@ -1038,7 +1038,7 @@ describe('SourceDestinationIp', () => {
removeExternalLinkText(
wrapper.find('[data-test-subj="draggable-content-destination.port"]').first().text()
)
).toContain('80');
).toEqual('80');
});
test('it renders the expected source port when type is `source`, but only sourcePort is populated', () => {
@ -1092,7 +1092,7 @@ describe('SourceDestinationIp', () => {
removeExternalLinkText(
wrapper.find('[data-test-subj="draggable-content-source.port"]').first().text()
)
).toContain('9987');
).toEqual('9987');
});
test('it renders the expected destination port when type is `destination`, and only destinationPort is populated', () => {
@ -1147,7 +1147,7 @@ describe('SourceDestinationIp', () => {
removeExternalLinkText(
wrapper.find('[data-test-subj="draggable-content-destination.port"]').first().text()
)
).toContain('80');
).toEqual('80');
});
test('it does NOT render the badge when type is `source`, but both sourceIp and sourcePort are undefined', () => {

View file

@ -51,7 +51,7 @@ describe('CertificateFingerprint', () => {
removeExternalLinkText(
wrapper.find('[data-test-subj="certificate-fingerprint-link"]').first().text()
)
).toContain('3f4c57934e089f02ae7511200aee2d7e7aabd272');
).toEqual('3f4c57934e089f02ae7511200aee2d7e7aabd272');
});
test('it renders a hyperlink to an external site to compare the fingerprint against a known set of signatures', () => {

View file

@ -48,7 +48,7 @@ describe('Ja3Fingerprint', () => {
expect(
removeExternalLinkText(wrapper.find('[data-test-subj="ja3-fingerprint-link"]').first().text())
).toContain('fff799d91b7c01ae3fe6787cfc895552');
).toEqual('fff799d91b7c01ae3fe6787cfc895552');
});
test('it renders a hyperlink to an external site to compare the fingerprint against a known set of signatures', () => {

View file

@ -204,7 +204,7 @@ describe('Netflow', () => {
removeExternalLinkText(
wrapper.find('[data-test-subj="destination-ip-and-port"]').first().text()
)
).toContain('10.1.2.3:80');
).toEqual('10.1.2.3:80');
});
test('it renders destination.packets', () => {
@ -340,7 +340,7 @@ describe('Netflow', () => {
expect(
removeExternalLinkText(wrapper.find('[data-test-subj="source-ip-and-port"]').first().text())
).toContain('192.168.1.2:9987');
).toEqual('192.168.1.2:9987');
});
test('it renders source.packets', () => {
@ -374,7 +374,7 @@ describe('Netflow', () => {
.first()
.text()
)
).toContain('tls.client_certificate.fingerprint.sha1-value');
).toEqual('tls.client_certificate.fingerprint.sha1-value');
});
test('it hyperlinks tls.fingerprints.ja3.hash site to compare the fingerprint against a known set of signatures', () => {
@ -390,7 +390,7 @@ describe('Netflow', () => {
expect(
removeExternalLinkText(wrapper.find('[data-test-subj="ja3-fingerprint-link"]').first().text())
).toContain('tls.fingerprints.ja3.hash-value');
).toEqual('tls.fingerprints.ja3.hash-value');
});
test('it hyperlinks tls.server_certificate.fingerprint.sha1 site to compare the fingerprint against a known set of signatures', () => {
@ -418,7 +418,7 @@ describe('Netflow', () => {
.first()
.text()
)
).toContain('tls.server_certificate.fingerprint.sha1-value');
).toEqual('tls.server_certificate.fingerprint.sha1-value');
});
test('it renders network.transport', () => {

View file

@ -2686,12 +2686,11 @@ exports[`Details Panel Component DetailsPanel:NetworkDetails: rendering it shoul
type="popout"
>
<span
aria-label="External link"
className="euiLink__externalIcon"
data-euiicon-type="popout"
size="s"
>
External link
</span>
/>
</EuiIcon>
<EuiScreenReaderOnly>
<span

View file

@ -20,12 +20,6 @@ import { useMountAppended } from '../../../../../common/utils/use_mount_appended
import { defaultRowRenderers } from '.';
import { getRowRenderer } from './get_row_renderer';
// EuiIcons coming from .testenv render the icon's aria-label as a span
// extractEuiIcon removes the aria-label before checking for equality
const extractEuiIconText = (str: string) => {
return str.replaceAll('External link', '');
};
jest.mock('../../../../../common/lib/kibana');
jest.mock('@elastic/eui', () => {
@ -96,7 +90,7 @@ describe('get_column_renderer', () => {
<span>{row}</span>
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toContain(
'4ETEXPLOITNETGEARWNR2000v5 hidden_lang_avi Stack Overflow (CVE-2016-10174)Source192.168.0.3:53Destination192.168.0.3:6343'
);
});
@ -115,7 +109,7 @@ describe('get_column_renderer', () => {
<span>{row}</span>
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toContain(
'4ETEXPLOITNETGEARWNR2000v5 hidden_lang_avi Stack Overflow (CVE-2016-10174)Source192.168.0.3:53Destination192.168.0.3:6343'
);
});
@ -134,7 +128,7 @@ describe('get_column_renderer', () => {
<span>{row}</span>
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toContain(
'C8DRTq362Fios6hw16connectionREJSrConnection attempt rejectedtcpSource185.176.26.101:44059Destination207.154.238.205:11568'
);
});

View file

@ -53,11 +53,7 @@ describe('SuricataDetails', () => {
/>
</TestProviders>
);
const removeEuiIconText = removeExternalLinkText(wrapper.text()).replaceAll(
'External link',
''
);
expect(removeEuiIconText).toEqual(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'4ETEXPLOITNETGEARWNR2000v5 hidden_lang_avi Stack Overflow (CVE-2016-10174)Source192.168.0.3:53Destination192.168.0.3:6343'
);
});

View file

@ -72,12 +72,7 @@ describe('suricata_row_renderer', () => {
<span>{children}</span>
</TestProviders>
);
const extractEuiIconText = removeExternalLinkText(wrapper.text()).replaceAll(
'External link',
''
);
expect(extractEuiIconText).toContain(
expect(removeExternalLinkText(wrapper.text())).toContain(
'4ETEXPLOITNETGEARWNR2000v5 hidden_lang_avi Stack Overflow (CVE-2016-10174)Source192.168.0.3:53Destination192.168.0.3:6343'
);
});

View file

@ -83,12 +83,6 @@ import {
import * as i18n from './translations';
import { RowRenderer } from '../../../../../../../common/types';
// EuiIcons coming from .testenv render the icon's aria-label as a span
// extractEuiIcon removes the aria-label before checking for equality
const extractEuiIconText = (str: string) => {
return str.replaceAll('External link', '');
};
jest.mock('../../../../../../common/lib/kibana');
jest.mock('@elastic/eui', () => {
@ -1136,7 +1130,7 @@ describe('GenericRowRenderer', () => {
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'NETWORK SERVICE\\NT AUTHORITY@windows-endpoint-1accepted a connection viasvchost.exe(328)with resultsuccessEndpoint network eventincomingtcpSource10.1.2.3:64557North AmericaUnited States🇺🇸USNorth CarolinaConcordDestination10.50.60.70:3389'
);
});
@ -1220,7 +1214,7 @@ describe('GenericRowRenderer', () => {
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'NETWORK SERVICE\\NT AUTHORITY@win2019-endpoint-1made a http request viasvchost.exe(2232)Endpoint network eventoutgoinghttptcpSource10.1.2.3:51570Destination10.11.12.13:80North AmericaUnited States🇺🇸USArizonaPhoenix'
);
});
@ -1249,7 +1243,7 @@ describe('GenericRowRenderer', () => {
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'SYSTEM\\NT AUTHORITY@HD-gqf-0af7b4feaccepted a connection viaAmSvc.exe(1084)tcp1:network-community_idSource127.0.0.1:49306Destination127.0.0.1:49305'
);
});
@ -1278,7 +1272,7 @@ describe('GenericRowRenderer', () => {
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'SYSTEM\\NT AUTHORITY@HD-55b-3ec87f66accepted a connection via(4)tcp1:network-community_idSource::1:51324Destination::1:5357'
);
});
@ -1304,7 +1298,7 @@ describe('GenericRowRenderer', () => {
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'NETWORK SERVICE\\NT AUTHORITY@windows-endpoint-1disconnected viasvchost.exe(328)Endpoint network eventincomingtcpSource10.20.30.40:64557North AmericaUnited States🇺🇸USNorth CarolinaConcord(42.47%)1.2KB(57.53%)1.6KBDestination10.11.12.13:3389'
);
});
@ -1333,7 +1327,7 @@ describe('GenericRowRenderer', () => {
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'Arun\\Anvi-Acer@HD-obe-8bf77f54disconnected viachrome.exe(11620)8.1KBtcp1:LxYHJJv98b2O0fNccXu6HheXmwk=Source192.168.0.6:59356(25.78%)2.1KB(74.22%)6KBDestination10.156.162.53:443'
);
});
@ -1362,7 +1356,7 @@ describe('GenericRowRenderer', () => {
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'SYSTEM\\NT AUTHORITY@HD-55b-3ec87f66disconnected via(4)7.9KBtcp1:ZylzQhsB1dcptA2t4DY8S6l9o8E=Source::1:51338(96.92%)7.7KB(3.08%)249BDestination::1:2869'
);
});
@ -1391,7 +1385,7 @@ describe('GenericRowRenderer', () => {
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'root@foohostopened a socket withgoogle_accounts(2166)Outbound socket (10.4.20.1:59554 -> 10.1.2.3:80) Ooutboundtcp1:network-community_idSource10.4.20.1:59554Destination10.1.2.3:80'
);
});
@ -1420,7 +1414,7 @@ describe('GenericRowRenderer', () => {
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'root@foohostclosed a socket withgoogle_accounts(2166)Outbound socket (10.4.20.1:59508 -> 10.1.2.3:80) Coutboundtcp1:network-community_idSource10.4.20.1:59508Destination10.1.2.3:80'
);
});
@ -1728,7 +1722,7 @@ describe('GenericRowRenderer', () => {
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toBe(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'iot.example.comasked forlookup.example.comwith question typeA, which resolved to10.1.2.3(response code:NOERROR)viaan unknown process6.937500msOct 8, 2019 @ 10:05:23.241Oct 8, 2019 @ 10:05:23.248outbounddns177Budp1:network-community_idSource10.9.9.9:58732(22.60%)40B(77.40%)137BDestination10.1.1.1:53OceaniaAustralia🇦🇺AU'
);
});

View file

@ -14,12 +14,6 @@ import { mockTimelineData, TestProviders } from '../../../../../../common/mock';
import { useMountAppended } from '../../../../../../common/utils/use_mount_appended';
import { ZeekDetails } from './zeek_details';
// EuiIcons coming from .testenv render the icon's aria-label as a span
// extractEuiIcon removes the aria-label before checking for equality
const extractEuiIconText = (str: string) => {
return str.replaceAll('External link', '');
};
jest.mock('../../../../../../common/lib/kibana');
jest.mock('@elastic/eui', () => {
@ -59,7 +53,7 @@ describe('ZeekDetails', () => {
/>
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toEqual(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'C8DRTq362Fios6hw16connectionREJSrConnection attempt rejectedtcpSource185.176.26.101:44059Destination207.154.238.205:11568'
);
});
@ -74,7 +68,7 @@ describe('ZeekDetails', () => {
/>
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toEqual(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'CyIrMA1L1JtLqdIuoldnsudpSource206.189.35.240:57475Destination67.207.67.3:53'
);
});
@ -89,7 +83,7 @@ describe('ZeekDetails', () => {
/>
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toEqual(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'CZLkpC22NquQJOpkwehttp302Source206.189.35.240:36220Destination192.241.164.26:80'
);
});
@ -104,7 +98,7 @@ describe('ZeekDetails', () => {
/>
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toEqual(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'noticeDropped:falseScan::Port_Scan8.42.77.171 scanned at least 15 unique ports of host 207.154.238.205 in 0m0sSource8.42.77.171'
);
});
@ -119,7 +113,7 @@ describe('ZeekDetails', () => {
/>
</TestProviders>
);
expect(extractEuiIconText(removeExternalLinkText(wrapper.text()))).toEqual(
expect(removeExternalLinkText(wrapper.text())).toEqual(
'CmTxzt2OVXZLkGDaResslTLSv12TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256Source188.166.66.184:34514Destination91.189.95.15:443'
);
});

View file

@ -71,12 +71,7 @@ describe('zeek_row_renderer', () => {
<span>{children}</span>
</TestProviders>
);
const extractEuiIconText = removeExternalLinkText(wrapper.text()).replaceAll(
'External link',
''
);
expect(extractEuiIconText).toContain(
expect(removeExternalLinkText(wrapper.text())).toContain(
'C8DRTq362Fios6hw16connectionREJSrConnection attempt rejectedtcpSource185.176.26.101:44059Destination207.154.238.205:11568'
);
});

View file

@ -101,11 +101,7 @@ describe('ZeekSignature', () => {
test('should render value', () => {
const wrapper = mount(<Link value={'abc'} />);
const extractEuiIconText = removeExternalLinkText(wrapper.text()).replaceAll(
'External link',
''
);
expect(extractEuiIconText).toEqual('abc');
expect(removeExternalLinkText(wrapper.text())).toEqual('abc');
});
test('should render value and link', () => {

View file

@ -769,7 +769,7 @@ describe('<SnapshotRestoreHome />', () => {
const stateMessage = find('snapshotDetail.state.value').text();
try {
expect(stateMessage).toContain(expectedMessage); // Messages may include the word "Info" to account for the rendered text coming from EuiIcon
expect(stateMessage).toBe(expectedMessage);
} catch {
throw new Error(
`Expected snapshot state message "${expectedMessage}" for state "${state}, but got "${stateMessage}".`

View file

@ -110,7 +110,7 @@ describe('Modal Inspect', () => {
expect(
wrapper.find('.euiDescriptionList__title span[data-test-subj="index-pattern-title"]').text()
).toContain('Index pattern ');
).toBe('Index pattern ');
expect(
wrapper
.find('.euiDescriptionList__description span[data-test-subj="index-pattern-description"]')
@ -118,7 +118,7 @@ describe('Modal Inspect', () => {
).toBe('auditbeat-*, filebeat-*, packetbeat-*, winlogbeat-*');
expect(
wrapper.find('.euiDescriptionList__title span[data-test-subj="query-time-title"]').text()
).toContain('Query time ');
).toBe('Query time ');
expect(
wrapper
.find('.euiDescriptionList__description span[data-test-subj="query-time-description"]')
@ -128,7 +128,7 @@ describe('Modal Inspect', () => {
wrapper
.find('.euiDescriptionList__title span[data-test-subj="request-timestamp-title"]')
.text()
).toContain('Request timestamp ');
).toBe('Request timestamp ');
});
test('Click on request Tab', () => {

View file

@ -107,12 +107,10 @@ describe('health check', () => {
const [action] = queryAllByText(/Learn more/i);
expect(description.textContent).toMatchInlineSnapshot(
`"You must enable API keys to use Alerting. Learn more.External link(opens in a new tab or window)"`
`"You must enable API keys to use Alerting. Learn more.(opens in a new tab or window)"`
);
expect(action.textContent).toMatchInlineSnapshot(
`"Learn more.External link(opens in a new tab or window)"`
);
expect(action.textContent).toMatchInlineSnapshot(`"Learn more.(opens in a new tab or window)"`);
expect(action.getAttribute('href')).toMatchInlineSnapshot(
`"https://www.elastic.co/guide/en/elasticsearch/reference/mocked-test-branch/security-settings.html#api-key-service-settings"`
@ -143,12 +141,12 @@ describe('health check', () => {
const description = queryByRole(/banner/i);
expect(description!.textContent).toMatchInlineSnapshot(
`"You must configure an encryption key to use Alerting. Learn more.External link(opens in a new tab or window)"`
`"You must configure an encryption key to use Alerting. Learn more.(opens in a new tab or window)"`
);
const action = queryByText(/Learn/i);
expect(action!.textContent).toMatchInlineSnapshot(
`"Learn more.External link(opens in a new tab or window)"`
`"Learn more.(opens in a new tab or window)"`
);
expect(action!.getAttribute('href')).toMatchInlineSnapshot(
`"https://www.elastic.co/guide/en/kibana/mocked-test-branch/alert-action-settings-kb.html#general-alert-action-settings"`
@ -181,12 +179,12 @@ describe('health check', () => {
const description = queryByText(/You must enable/i);
expect(description!.textContent).toMatchInlineSnapshot(
`"You must enable API keys and configure an encryption key to use Alerting. Learn more.External link(opens in a new tab or window)"`
`"You must enable API keys and configure an encryption key to use Alerting. Learn more.(opens in a new tab or window)"`
);
const action = queryByText(/Learn/i);
expect(action!.textContent).toMatchInlineSnapshot(
`"Learn more.External link(opens in a new tab or window)"`
`"Learn more.(opens in a new tab or window)"`
);
expect(action!.getAttribute('href')).toMatchInlineSnapshot(
`"https://www.elastic.co/guide/en/kibana/mocked-test-branch/alerting-setup.html#alerting-prerequisites"`

View file

@ -373,12 +373,9 @@ describe('execution duration overview', () => {
const avgExecutionDurationPanel = wrapper.find('[data-test-subj="avgExecutionDurationPanel"]');
expect(avgExecutionDurationPanel.exists()).toBeTruthy();
expect(avgExecutionDurationPanel.first().prop('color')).toEqual('warning');
const avgExecutionDurationStat = wrapper
.find('EuiStat[data-test-subj="avgExecutionDurationStat"]')
.text()
.replaceAll('Info', '');
expect(avgExecutionDurationStat).toEqual('Average duration16:44:44.345');
expect(wrapper.find('EuiStat[data-test-subj="avgExecutionDurationStat"]').text()).toEqual(
'Average duration16:44:44.345'
);
expect(wrapper.find('[data-test-subj="ruleDurationWarning"]').exists()).toBeTruthy();
});

View file

@ -63,5 +63,5 @@ test('Can delete drilldowns', () => {
test('Error is displayed', () => {
const screen = render(<DrilldownTable items={drilldowns} />);
expect(screen.getByText('an error')).toBeInTheDocument();
expect(screen.getByLabelText('an error')).toBeInTheDocument();
});

View file

@ -179,11 +179,10 @@ exports[`PingListExpandedRow renders link to docs if body is not recorded but it
>
docs
<span
aria-label="External link"
class="euiLink__externalIcon"
data-euiicon-type="popout"
>
External link
</span>
/>
<span
class="euiScreenReaderOnly"
>

View file

@ -72,11 +72,10 @@ Array [
>
Set tags
<span
aria-label="External link"
class="euiLink__externalIcon"
data-euiicon-type="popout"
>
External link
</span>
/>
<span
class="euiScreenReaderOnly"
>

View file

@ -11,7 +11,7 @@ import { render } from '../../../../../lib/helper/rtl_helpers';
describe('NetworkRequestsTotal', () => {
it('message in case total is greater than fetched', () => {
const { getByText } = render(
const { getByText, getByLabelText } = render(
<NetworkRequestsTotal
fetchedNetworkRequests={1000}
totalNetworkRequests={1100}
@ -20,7 +20,7 @@ describe('NetworkRequestsTotal', () => {
);
expect(getByText('First 1000/1100 network requests')).toBeInTheDocument();
expect(getByText('Info')).toBeInTheDocument();
expect(getByLabelText('Info')).toBeInTheDocument();
});
it('message in case total is equal to fetched requests', () => {

View file

@ -13,8 +13,8 @@ import { TestWrapper } from './waterfall_marker_test_helper';
describe('<WaterfallMarkerIcon />', () => {
it('renders a dot icon when `field` is an empty string', () => {
const { getByText } = render(<WaterfallMarkerIcon field="" label="" />);
expect(getByText('An icon indicating that this marker has no field associated with it'));
const { getByLabelText } = render(<WaterfallMarkerIcon field="" label="" />);
expect(getByLabelText('An icon indicating that this marker has no field associated with it'));
});
it('renders an embeddable when opened', async () => {

View file

@ -45,22 +45,20 @@ describe('KeyUXMetrics', () => {
};
};
// Tests include the word "info" between the task and time to account for the rendered text coming from
// the EuiIcon (tooltip) embedded within each stat description
expect(
getAllByText(checkText('Longest long task durationInfo271 ms'))[0]
getAllByText(checkText('Longest long task duration271 ms'))[0]
).toBeInTheDocument();
expect(
getAllByText(checkText('Total long tasks durationInfo520 ms'))[0]
getAllByText(checkText('Total long tasks duration520 ms'))[0]
).toBeInTheDocument();
expect(
getAllByText(checkText('No. of long tasksInfo3'))[0]
getAllByText(checkText('No. of long tasks3'))[0]
).toBeInTheDocument();
expect(
getAllByText(checkText('Total blocking timeInfo271 ms'))[0]
getAllByText(checkText('Total blocking time271 ms'))[0]
).toBeInTheDocument();
expect(
getAllByText(checkText('First contentful paintInfo1.27 s'))[0]
getAllByText(checkText('First contentful paint1.27 s'))[0]
).toBeInTheDocument();
});
});

View file

@ -1516,10 +1516,10 @@
resolved "https://registry.yarnpkg.com/@elastic/eslint-plugin-eui/-/eslint-plugin-eui-0.0.2.tgz#56b9ef03984a05cc213772ae3713ea8ef47b0314"
integrity sha512-IoxURM5zraoQ7C8f+mJb9HYSENiZGgRVcG4tLQxE61yHNNRDXtGDWTZh8N1KIHcsqN1CEPETjuzBXkJYF/fDiQ==
"@elastic/eui@52.2.0":
version "52.2.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-52.2.0.tgz#761101a29b96a4b5270ef93541dab7bb27f5ca50"
integrity sha512-XboYerntCOTHWHYMWJGzJtu5JYO6pk5IWh0ZHJEQ4SEjmLbTV2bFrVBTO/8uaU7GhV9/RNIo7BU5wHRyYP7z1g==
"@elastic/eui@51.1.0":
version "51.1.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-51.1.0.tgz#338b710ae7a819bb7c3b8e1916080610e0b8e691"
integrity sha512-pjbBSkfDPAjXBRCMk4zsyZ3sPpf70XVcbOzr4BzT0MW38uKjEgEh6nu1aCdnOi+jVSHRtziJkX9rD8BRDWfsnw==
dependencies:
"@types/chroma-js" "^2.0.0"
"@types/lodash" "^4.14.160"