mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
Upgrade EUI to v30.2.0 (#82730)
* eui to v30.2.0 * src snapshot updates * x-pack euipanel snapshot updates * x-pack external link updates * security_solution_cypress external link text * clean up
This commit is contained in:
parent
bcc2afa9e2
commit
8a7af5bbda
58 changed files with 371 additions and 186 deletions
|
@ -106,7 +106,7 @@
|
|||
"@elastic/datemath": "link:packages/elastic-datemath",
|
||||
"@elastic/elasticsearch": "7.10.0-rc.1",
|
||||
"@elastic/ems-client": "7.10.0",
|
||||
"@elastic/eui": "30.1.1",
|
||||
"@elastic/eui": "30.2.0",
|
||||
"@elastic/filesaver": "1.1.2",
|
||||
"@elastic/good": "8.1.1-kibana2",
|
||||
"@elastic/node-crypto": "1.2.1",
|
||||
|
|
|
@ -297,7 +297,7 @@ exports[`DashboardEmptyScreen renders correctly with readonly mode 1`] = `
|
|||
paddingSize="none"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter dshStartScreen__pageContent"
|
||||
className="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter dshStartScreen__pageContent"
|
||||
>
|
||||
<EuiImage
|
||||
alt=""
|
||||
|
@ -1016,7 +1016,7 @@ exports[`DashboardEmptyScreen renders correctly without visualize paragraph 1`]
|
|||
paddingSize="none"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter dshStartScreen__pageContent"
|
||||
className="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter dshStartScreen__pageContent"
|
||||
>
|
||||
<EuiImage
|
||||
alt=""
|
||||
|
|
|
@ -14,6 +14,9 @@ import {
|
|||
} from '@testing-library/react';
|
||||
import * as apmApi from '../../../../../../services/rest/createCallApmApi';
|
||||
|
||||
export const removeExternalLinkText = (str: string) =>
|
||||
str.replace(/\(opens in a new tab or window\)/g, '');
|
||||
|
||||
describe('LinkPreview', () => {
|
||||
let callApmApiSpy: jest.SpyInstance<any, never>;
|
||||
beforeAll(() => {
|
||||
|
@ -53,7 +56,9 @@ describe('LinkPreview', () => {
|
|||
);
|
||||
expect(getElementValue(container, 'preview-label')).toEqual('foo');
|
||||
expect(
|
||||
(getByTestId(container, 'preview-link') as HTMLAnchorElement).text
|
||||
removeExternalLinkText(
|
||||
(getByTestId(container, 'preview-link') as HTMLAnchorElement).text
|
||||
)
|
||||
).toEqual('https://baz.co');
|
||||
});
|
||||
});
|
||||
|
@ -69,7 +74,9 @@ describe('LinkPreview', () => {
|
|||
);
|
||||
expect(getElementValue(container, 'preview-label')).toEqual('foo');
|
||||
expect(
|
||||
(getByTestId(container, 'preview-link') as HTMLAnchorElement).text
|
||||
removeExternalLinkText(
|
||||
(getByTestId(container, 'preview-link') as HTMLAnchorElement).text
|
||||
)
|
||||
).toEqual('https://baz.co?service.name={{invalid}');
|
||||
expect(getByTestId(container, 'preview-warning')).toBeInTheDocument();
|
||||
});
|
||||
|
@ -85,7 +92,9 @@ describe('LinkPreview', () => {
|
|||
await waitFor(() => expect(callApmApiSpy).toHaveBeenCalled());
|
||||
expect(getElementValue(container, 'preview-label')).toEqual('foo');
|
||||
expect(
|
||||
(getByTestId(container, 'preview-link') as HTMLAnchorElement).text
|
||||
removeExternalLinkText(
|
||||
(getByTestId(container, 'preview-link') as HTMLAnchorElement).text
|
||||
)
|
||||
).toEqual('https://baz.co?transaction=foo');
|
||||
});
|
||||
});
|
||||
|
|
|
@ -12,7 +12,7 @@ exports[`Storyshots components/Assets/Asset airplane 1`] = `
|
|||
className="euiFlexItem"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingSmall canvasAsset"
|
||||
className="euiPanel euiPanel--paddingSmall euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow canvasAsset"
|
||||
>
|
||||
<div
|
||||
className="canvasAsset__thumb canvasCheckered"
|
||||
|
@ -190,7 +190,7 @@ exports[`Storyshots components/Assets/Asset marker 1`] = `
|
|||
className="euiFlexItem"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingSmall canvasAsset"
|
||||
className="euiPanel euiPanel--paddingSmall euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow canvasAsset"
|
||||
>
|
||||
<div
|
||||
className="canvasAsset__thumb canvasCheckered"
|
||||
|
|
|
@ -103,7 +103,7 @@ exports[`Storyshots components/Assets/AssetManager no assets 1`] = `
|
|||
className="euiSpacer euiSpacer--l"
|
||||
/>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingMedium canvasAssetManager__emptyPanel"
|
||||
className="euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow canvasAssetManager__emptyPanel"
|
||||
>
|
||||
<div
|
||||
className="euiEmptyPrompt"
|
||||
|
@ -296,7 +296,7 @@ exports[`Storyshots components/Assets/AssetManager two assets 1`] = `
|
|||
className="euiFlexItem"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingSmall canvasAsset"
|
||||
className="euiPanel euiPanel--paddingSmall euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow canvasAsset"
|
||||
>
|
||||
<div
|
||||
className="canvasAsset__thumb canvasCheckered"
|
||||
|
@ -463,7 +463,7 @@ exports[`Storyshots components/Assets/AssetManager two assets 1`] = `
|
|||
className="euiFlexItem"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingSmall canvasAsset"
|
||||
className="euiPanel euiPanel--paddingSmall euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow canvasAsset"
|
||||
>
|
||||
<div
|
||||
className="canvasAsset__thumb canvasCheckered"
|
||||
|
|
|
@ -211,7 +211,7 @@ exports[`Storyshots components/Elements/CustomElementModal with description 1`]
|
|||
className="euiSpacer euiSpacer--s"
|
||||
/>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--hasIcon canvasElementCard canvasElementCard--hasIcon"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--hasIcon canvasElementCard canvasElementCard--hasIcon"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
@ -517,7 +517,7 @@ exports[`Storyshots components/Elements/CustomElementModal with image 1`] = `
|
|||
className="euiSpacer euiSpacer--s"
|
||||
/>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned canvasElementCard"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned canvasElementCard"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
@ -827,7 +827,7 @@ exports[`Storyshots components/Elements/CustomElementModal with name 1`] = `
|
|||
className="euiSpacer euiSpacer--s"
|
||||
/>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--hasIcon canvasElementCard canvasElementCard--hasIcon"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--hasIcon canvasElementCard canvasElementCard--hasIcon"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
@ -1132,7 +1132,7 @@ exports[`Storyshots components/Elements/CustomElementModal with title 1`] = `
|
|||
className="euiSpacer euiSpacer--s"
|
||||
/>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--hasIcon canvasElementCard canvasElementCard--hasIcon"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--hasIcon canvasElementCard canvasElementCard--hasIcon"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
|
|
@ -9,7 +9,7 @@ exports[`Storyshots components/Elements/ElementCard with click handler 1`] = `
|
|||
}
|
||||
>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable euiCard--hasIcon canvasElementCard canvasElementCard--hasIcon"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable euiCard--hasIcon canvasElementCard canvasElementCard--hasIcon"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
@ -61,7 +61,7 @@ exports[`Storyshots components/Elements/ElementCard with image 1`] = `
|
|||
}
|
||||
>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned canvasElementCard"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned canvasElementCard"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
@ -110,7 +110,7 @@ exports[`Storyshots components/Elements/ElementCard with tags 1`] = `
|
|||
}
|
||||
>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable euiCard--hasIcon canvasElementCard canvasElementCard--hasIcon"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable euiCard--hasIcon canvasElementCard canvasElementCard--hasIcon"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
@ -277,7 +277,7 @@ exports[`Storyshots components/Elements/ElementCard with title and description 1
|
|||
}
|
||||
>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--hasIcon canvasElementCard canvasElementCard--hasIcon"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--hasIcon canvasElementCard canvasElementCard--hasIcon"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
|
|
@ -15,7 +15,7 @@ exports[`Storyshots components/SavedElementsModal/ElementGrid default 1`] = `
|
|||
className="euiFlexItem canvasElementCard__wrapper"
|
||||
>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
@ -121,7 +121,7 @@ exports[`Storyshots components/SavedElementsModal/ElementGrid default 1`] = `
|
|||
className="euiFlexItem canvasElementCard__wrapper"
|
||||
>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
@ -227,7 +227,7 @@ exports[`Storyshots components/SavedElementsModal/ElementGrid default 1`] = `
|
|||
className="euiFlexItem canvasElementCard__wrapper"
|
||||
>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
|
|
@ -234,7 +234,7 @@ exports[`Storyshots components/SavedElementsModal with custom elements 1`] = `
|
|||
className="euiFlexItem canvasElementCard__wrapper"
|
||||
>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
@ -340,7 +340,7 @@ exports[`Storyshots components/SavedElementsModal with custom elements 1`] = `
|
|||
className="euiFlexItem canvasElementCard__wrapper"
|
||||
>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
@ -446,7 +446,7 @@ exports[`Storyshots components/SavedElementsModal with custom elements 1`] = `
|
|||
className="euiFlexItem canvasElementCard__wrapper"
|
||||
>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
@ -685,7 +685,7 @@ exports[`Storyshots components/SavedElementsModal with text filter 1`] = `
|
|||
className="euiFlexItem canvasElementCard__wrapper"
|
||||
>
|
||||
<div
|
||||
className="euiCard euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
className="euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--leftAligned euiCard--isClickable canvasElementCard"
|
||||
onClick={[Function]}
|
||||
>
|
||||
<div
|
||||
|
|
|
@ -13,7 +13,7 @@ exports[`Storyshots components/Shapes/ShapePickerPopover default 1`] = `
|
|||
className="euiPopover__anchor"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingSmall"
|
||||
className="euiPanel euiPanel--paddingSmall euiPanel--borderRadiusMedium euiPanel--plain"
|
||||
>
|
||||
<button
|
||||
className="euiLink euiLink--primary"
|
||||
|
@ -47,7 +47,7 @@ exports[`Storyshots components/Shapes/ShapePickerPopover interactive 1`] = `
|
|||
className="euiPopover__anchor"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingSmall"
|
||||
className="euiPanel euiPanel--paddingSmall euiPanel--borderRadiusMedium euiPanel--plain"
|
||||
>
|
||||
<button
|
||||
className="euiLink euiLink--primary"
|
||||
|
@ -88,7 +88,7 @@ exports[`Storyshots components/Shapes/ShapePickerPopover shape selected 1`] = `
|
|||
className="euiPopover__anchor"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingSmall"
|
||||
className="euiPanel euiPanel--paddingSmall euiPanel--borderRadiusMedium euiPanel--plain"
|
||||
>
|
||||
<button
|
||||
className="euiLink euiLink--primary"
|
||||
|
|
|
@ -8,7 +8,7 @@ exports[`<Settings /> can navigate Autoplay Settings 1`] = `
|
|||
<div
|
||||
aria-live="assertive"
|
||||
aria-modal="true"
|
||||
class="euiPanel euiPopover__panel euiPopover__panel--top"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPopover__panel euiPopover__panel--top"
|
||||
role="dialog"
|
||||
style="top: -16px; left: -22px; z-index: 2000;"
|
||||
>
|
||||
|
@ -98,7 +98,7 @@ exports[`<Settings /> can navigate Autoplay Settings 2`] = `
|
|||
<div
|
||||
aria-live="assertive"
|
||||
aria-modal="true"
|
||||
class="euiPanel euiPopover__panel euiPopover__panel--top euiPopover__panel-isOpen"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPopover__panel euiPopover__panel--top euiPopover__panel-isOpen"
|
||||
role="dialog"
|
||||
style="top: -16px; left: -22px; z-index: 2000;"
|
||||
>
|
||||
|
@ -340,7 +340,7 @@ exports[`<Settings /> can navigate Toolbar Settings, closes when activated 1`] =
|
|||
<div
|
||||
aria-live="assertive"
|
||||
aria-modal="true"
|
||||
class="euiPanel euiPopover__panel euiPopover__panel--top"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPopover__panel euiPopover__panel--top"
|
||||
role="dialog"
|
||||
style="top: -16px; left: -22px; z-index: 2000;"
|
||||
>
|
||||
|
@ -430,7 +430,7 @@ exports[`<Settings /> can navigate Toolbar Settings, closes when activated 2`] =
|
|||
<div
|
||||
aria-live="assertive"
|
||||
aria-modal="true"
|
||||
class="euiPanel euiPopover__panel euiPopover__panel--top euiPopover__panel-isOpen"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPopover__panel euiPopover__panel--top euiPopover__panel-isOpen"
|
||||
role="dialog"
|
||||
style="top: -16px; left: -22px; z-index: 2000;"
|
||||
>
|
||||
|
@ -600,4 +600,4 @@ exports[`<Settings /> can navigate Toolbar Settings, closes when activated 2`] =
|
|||
</div>
|
||||
`;
|
||||
|
||||
exports[`<Settings /> can navigate Toolbar Settings, closes when activated 3`] = `"<div><div data-eui=\\"EuiFocusTrap\\"><div class=\\"euiPanel euiPopover__panel euiPopover__panel--top\\" aria-live=\\"assertive\\" role=\\"dialog\\" aria-modal=\\"true\\" style=\\"top: -16px; left: -22px; z-index: 2000;\\"><div class=\\"euiPopover__panelArrow euiPopover__panelArrow--top\\" style=\\"left: 10px; top: 0px;\\"></div><div><div class=\\"euiContextMenu\\" style=\\"height: 0px;\\"><div class=\\"euiContextMenuPanel euiContextMenu__panel euiContextMenuPanel-txOutLeft\\" tabindex=\\"0\\"><div class=\\"euiContextMenuPanelTitle\\"><span class=\\"euiContextMenu__itemLayout\\">Settings</span></div><div><div><button class=\\"euiContextMenuItem\\" type=\\"button\\"><span class=\\"euiContextMenu__itemLayout\\"><span data-euiicon-type=\\"play\\" class=\\"euiContextMenu__icon\\"></span><span class=\\"euiContextMenuItem__text\\">Auto Play</span><span data-euiicon-type=\\"arrowRight\\" class=\\"euiContextMenu__arrow\\"></span></span></button><button class=\\"euiContextMenuItem\\" type=\\"button\\"><span class=\\"euiContextMenu__itemLayout\\"><span data-euiicon-type=\\"boxesHorizontal\\" class=\\"euiContextMenu__icon\\"></span><span class=\\"euiContextMenuItem__text\\">Toolbar</span><span data-euiicon-type=\\"arrowRight\\" class=\\"euiContextMenu__arrow\\"></span></span></button></div></div></div><div class=\\"euiContextMenuPanel euiContextMenu__panel euiContextMenuPanel-txInLeft\\" tabindex=\\"0\\"><button class=\\"euiContextMenuPanelTitle\\" type=\\"button\\" data-test-subj=\\"contextMenuPanelTitleButton\\"><span class=\\"euiContextMenu__itemLayout\\"><span data-euiicon-type=\\"arrowLeft\\" class=\\"euiContextMenu__icon\\"></span><span class=\\"euiContextMenu__text\\">Toolbar</span></span></button><div><div><div style=\\"padding: 16px;\\"><div class=\\"euiFormRow\\" id=\\"generated-id-row\\"><div class=\\"euiFormRow__fieldWrapper\\"><div class=\\"euiSwitch\\"><button id=\\"generated-id\\" aria-checked=\\"true\\" class=\\"euiSwitch__button\\" role=\\"switch\\" type=\\"button\\" aria-labelledby=\\"generated-id\\" data-test-subj=\\"hideToolbarSwitch\\" name=\\"toolbarHide\\" aria-describedby=\\"generated-id-help\\"><span class=\\"euiSwitch__body\\"><span class=\\"euiSwitch__thumb\\"></span><span class=\\"euiSwitch__track\\"><span data-euiicon-type=\\"cross\\" class=\\"euiSwitch__icon\\"></span><span data-euiicon-type=\\"check\\" class=\\"euiSwitch__icon euiSwitch__icon--checked\\"></span></span></span></button><span class=\\"euiSwitch__label\\" id=\\"generated-id\\">Hide Toolbar</span></div><div class=\\"euiFormHelpText euiFormRow__text\\" id=\\"generated-id-help\\">Hide the toolbar when the mouse is not within the Canvas?</div></div></div></div></div></div></div></div></div></div></div></div>"`;
|
||||
exports[`<Settings /> can navigate Toolbar Settings, closes when activated 3`] = `"<div><div data-eui=\\"EuiFocusTrap\\"><div class=\\"euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPopover__panel euiPopover__panel--top\\" aria-live=\\"assertive\\" role=\\"dialog\\" aria-modal=\\"true\\" style=\\"top: -16px; left: -22px; z-index: 2000;\\"><div class=\\"euiPopover__panelArrow euiPopover__panelArrow--top\\" style=\\"left: 10px; top: 0px;\\"></div><div><div class=\\"euiContextMenu\\" style=\\"height: 0px;\\"><div class=\\"euiContextMenuPanel euiContextMenu__panel euiContextMenuPanel-txOutLeft\\" tabindex=\\"0\\"><div class=\\"euiContextMenuPanelTitle\\"><span class=\\"euiContextMenu__itemLayout\\">Settings</span></div><div><div><button class=\\"euiContextMenuItem\\" type=\\"button\\"><span class=\\"euiContextMenu__itemLayout\\"><span data-euiicon-type=\\"play\\" class=\\"euiContextMenu__icon\\"></span><span class=\\"euiContextMenuItem__text\\">Auto Play</span><span data-euiicon-type=\\"arrowRight\\" class=\\"euiContextMenu__arrow\\"></span></span></button><button class=\\"euiContextMenuItem\\" type=\\"button\\"><span class=\\"euiContextMenu__itemLayout\\"><span data-euiicon-type=\\"boxesHorizontal\\" class=\\"euiContextMenu__icon\\"></span><span class=\\"euiContextMenuItem__text\\">Toolbar</span><span data-euiicon-type=\\"arrowRight\\" class=\\"euiContextMenu__arrow\\"></span></span></button></div></div></div><div class=\\"euiContextMenuPanel euiContextMenu__panel euiContextMenuPanel-txInLeft\\" tabindex=\\"0\\"><button class=\\"euiContextMenuPanelTitle\\" type=\\"button\\" data-test-subj=\\"contextMenuPanelTitleButton\\"><span class=\\"euiContextMenu__itemLayout\\"><span data-euiicon-type=\\"arrowLeft\\" class=\\"euiContextMenu__icon\\"></span><span class=\\"euiContextMenu__text\\">Toolbar</span></span></button><div><div><div style=\\"padding: 16px;\\"><div class=\\"euiFormRow\\" id=\\"generated-id-row\\"><div class=\\"euiFormRow__fieldWrapper\\"><div class=\\"euiSwitch\\"><button id=\\"generated-id\\" aria-checked=\\"true\\" class=\\"euiSwitch__button\\" role=\\"switch\\" type=\\"button\\" aria-labelledby=\\"generated-id\\" data-test-subj=\\"hideToolbarSwitch\\" name=\\"toolbarHide\\" aria-describedby=\\"generated-id-help\\"><span class=\\"euiSwitch__body\\"><span class=\\"euiSwitch__thumb\\"></span><span class=\\"euiSwitch__track\\"><span data-euiicon-type=\\"cross\\" class=\\"euiSwitch__icon\\"></span><span data-euiicon-type=\\"check\\" class=\\"euiSwitch__icon euiSwitch__icon--checked\\"></span></span></span></button><span class=\\"euiSwitch__label\\" id=\\"generated-id\\">Hide Toolbar</span></div><div class=\\"euiFormHelpText euiFormRow__text\\" id=\\"generated-id-help\\">Hide the toolbar when the mouse is not within the Canvas?</div></div></div></div></div></div></div></div></div></div></div></div>"`;
|
||||
|
|
|
@ -50,7 +50,7 @@ exports[`policy table should show empty state when there are not any policies 1`
|
|||
class="euiPageBody"
|
||||
>
|
||||
<div
|
||||
class="euiPanel euiPanel--paddingLarge euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter"
|
||||
class="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter"
|
||||
>
|
||||
<div
|
||||
class="euiEmptyPrompt"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`AddLicense component when license is active should display correct verbiage 1`] = `"<div class=\\"euiCard euiCard--paddingMedium euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Update your license</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p>If you already have a new license, upload it now.</p></div></div><div class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"/upload_license\\" rel=\\"noreferrer\\" data-test-subj=\\"updateLicenseButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Update license</span></span></a></div></div>"`;
|
||||
exports[`AddLicense component when license is active should display correct verbiage 1`] = `"<div class=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Update your license</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p>If you already have a new license, upload it now.</p></div></div><div class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"/upload_license\\" rel=\\"noreferrer\\" data-test-subj=\\"updateLicenseButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Update license</span></span></a></div></div>"`;
|
||||
|
||||
exports[`AddLicense component when license is expired should display with correct verbiage 1`] = `"<div class=\\"euiCard euiCard--paddingMedium euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Update your license</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p>If you already have a new license, upload it now.</p></div></div><div class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"/upload_license\\" rel=\\"noreferrer\\" data-test-subj=\\"updateLicenseButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Update license</span></span></a></div></div>"`;
|
||||
exports[`AddLicense component when license is expired should display with correct verbiage 1`] = `"<div class=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium euiCard--centerAligned\\"><div class=\\"euiCard__content\\"><span class=\\"euiTitle euiTitle--small euiCard__title\\" id=\\"generated-idTitle\\">Update your license</span><div class=\\"euiText euiText--small euiCard__description\\" id=\\"generated-idDescription\\"><p>If you already have a new license, upload it now.</p></div></div><div class=\\"euiCard__footer\\"><a class=\\"euiButton euiButton--primary\\" href=\\"/upload_license\\" rel=\\"noreferrer\\" data-test-subj=\\"updateLicenseButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Update license</span></span></a></div></div>"`;
|
||||
|
|
|
@ -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=\\"euiCard euiCard--paddingMedium 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 you’d 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</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=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium 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 you’d 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=\\"euiCard euiCard--paddingMedium 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 you’d 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</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=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium 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 you’d 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=\\"euiCard euiCard--paddingMedium 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 you’d 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</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=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium 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 you’d 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=\\"euiCard euiCard--paddingMedium 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 you’d 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</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=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium 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 you’d 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>"`;
|
||||
|
|
|
@ -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=\\"euiCard euiCard--paddingMedium 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>You’ll 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</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=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium 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>You’ll 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=\\"euiCard euiCard--paddingMedium 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>You’ll 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</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=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium 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>You’ll 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=\\"euiCard euiCard--paddingMedium 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>You’ll 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</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=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium 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>You’ll 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>"`;
|
||||
|
|
|
@ -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=\\"euiCard euiCard--paddingMedium 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</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=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium 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=\\"euiCard euiCard--paddingMedium 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</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=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium 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=\\"euiCard euiCard--paddingMedium 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</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=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium 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=\\"euiCard euiCard--paddingMedium 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</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=\\"euiCard euiCard--shadow euiCard--borderRadiusMedium euiCard--paddingMedium 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>"`;
|
||||
|
|
|
@ -270,7 +270,7 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
|
|||
paddingSize="l"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingLarge euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter"
|
||||
className="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter"
|
||||
>
|
||||
<EuiPageContentBody>
|
||||
<div
|
||||
|
@ -1294,7 +1294,7 @@ exports[`UploadLicense should display an error when ES says license is expired 1
|
|||
paddingSize="l"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingLarge euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter"
|
||||
className="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter"
|
||||
>
|
||||
<EuiPageContentBody>
|
||||
<div
|
||||
|
@ -2012,7 +2012,7 @@ exports[`UploadLicense should display an error when ES says license is invalid 1
|
|||
paddingSize="l"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingLarge euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter"
|
||||
className="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter"
|
||||
>
|
||||
<EuiPageContentBody>
|
||||
<div
|
||||
|
@ -2730,7 +2730,7 @@ exports[`UploadLicense should display an error when submitting invalid JSON 1`]
|
|||
paddingSize="l"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingLarge euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter"
|
||||
className="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter"
|
||||
>
|
||||
<EuiPageContentBody>
|
||||
<div
|
||||
|
@ -3448,7 +3448,7 @@ exports[`UploadLicense should display error when ES returns error 1`] = `
|
|||
paddingSize="l"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingLarge euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter"
|
||||
className="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter"
|
||||
>
|
||||
<EuiPageContentBody>
|
||||
<div
|
||||
|
|
|
@ -123,7 +123,7 @@ exports[`UpgradeFailure component passes expected text for new pipeline 1`] = `
|
|||
paddingSize="l"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingLarge euiPageContent"
|
||||
className="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent"
|
||||
>
|
||||
<EuiEmptyPrompt
|
||||
actions={
|
||||
|
@ -485,7 +485,7 @@ exports[`UpgradeFailure component passes expected text for not manual upgrade 1`
|
|||
paddingSize="l"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingLarge euiPageContent"
|
||||
className="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent"
|
||||
>
|
||||
<EuiEmptyPrompt
|
||||
actions={
|
||||
|
@ -847,7 +847,7 @@ exports[`UpgradeFailure component passes expected text for not new pipeline 1`]
|
|||
paddingSize="l"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingLarge euiPageContent"
|
||||
className="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent"
|
||||
>
|
||||
<EuiEmptyPrompt
|
||||
actions={
|
||||
|
|
|
@ -14,7 +14,7 @@ exports[`NoData should show a default message if reason is unknown 1`] = `
|
|||
style="max-width:600px"
|
||||
>
|
||||
<div
|
||||
class="euiPanel euiPanel--paddingLarge euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter eui-textCenter"
|
||||
class="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter eui-textCenter"
|
||||
>
|
||||
<span
|
||||
data-euiicon-type="monitoringApp"
|
||||
|
@ -104,7 +104,7 @@ exports[`NoData should show text next to the spinner while checking a setting 1`
|
|||
style="max-width:600px"
|
||||
>
|
||||
<div
|
||||
class="euiPanel euiPanel--paddingLarge euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter eui-textCenter"
|
||||
class="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter eui-textCenter"
|
||||
>
|
||||
<span
|
||||
data-euiicon-type="monitoringApp"
|
||||
|
|
|
@ -110,6 +110,16 @@ Array [
|
|||
target="_blank"
|
||||
>
|
||||
cloud dashboard.
|
||||
<span
|
||||
aria-label="External link"
|
||||
class="euiLink__externalIcon"
|
||||
data-euiicon-type="popout"
|
||||
/>
|
||||
<span
|
||||
class="euiScreenReaderOnly"
|
||||
>
|
||||
(opens in a new tab or window)
|
||||
</span>
|
||||
</a>
|
||||
For more information on Monitoring in Elastic Cloud, please see
|
||||
<a
|
||||
|
@ -119,6 +129,16 @@ Array [
|
|||
target="_blank"
|
||||
>
|
||||
the documentation.
|
||||
<span
|
||||
aria-label="External link"
|
||||
class="euiLink__externalIcon"
|
||||
data-euiicon-type="popout"
|
||||
/>
|
||||
<span
|
||||
class="euiScreenReaderOnly"
|
||||
>
|
||||
(opens in a new tab or window)
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -185,6 +185,16 @@ Array [
|
|||
target="_blank"
|
||||
>
|
||||
cloud dashboard.
|
||||
<span
|
||||
aria-label="External link"
|
||||
class="euiLink__externalIcon"
|
||||
data-euiicon-type="popout"
|
||||
/>
|
||||
<span
|
||||
class="euiScreenReaderOnly"
|
||||
>
|
||||
(opens in a new tab or window)
|
||||
</span>
|
||||
</a>
|
||||
For more information on Monitoring in Elastic Cloud, please see
|
||||
<a
|
||||
|
@ -194,6 +204,16 @@ Array [
|
|||
target="_blank"
|
||||
>
|
||||
the documentation.
|
||||
<span
|
||||
aria-label="External link"
|
||||
class="euiLink__externalIcon"
|
||||
data-euiicon-type="popout"
|
||||
/>
|
||||
<span
|
||||
class="euiScreenReaderOnly"
|
||||
>
|
||||
(opens in a new tab or window)
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -9,7 +9,7 @@ exports[`PageLoading should show a simple page loading component 1`] = `
|
|||
class="euiPageBody"
|
||||
>
|
||||
<div
|
||||
class="euiPanel euiPanel--paddingLarge euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter monNoData__content"
|
||||
class="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter monNoData__content"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--justifyContentSpaceAround euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
|
|
@ -92,6 +92,31 @@ exports[`APIKeysGridPage renders a callout when API keys are not enabled 1`] = `
|
|||
>
|
||||
docs
|
||||
</FormattedMessage>
|
||||
<EuiIcon
|
||||
aria-label="External link"
|
||||
className="euiLink__externalIcon"
|
||||
size="s"
|
||||
type="popout"
|
||||
>
|
||||
<span
|
||||
aria-label="External link"
|
||||
className="euiLink__externalIcon"
|
||||
data-euiicon-type="popout"
|
||||
size="s"
|
||||
/>
|
||||
</EuiIcon>
|
||||
<EuiScreenReaderOnly>
|
||||
<span
|
||||
className="euiScreenReaderOnly"
|
||||
>
|
||||
<EuiI18n
|
||||
default="(opens in a new tab or window)"
|
||||
token="euiLink.newTarget.screenReaderOnlyText"
|
||||
>
|
||||
(opens in a new tab or window)
|
||||
</EuiI18n>
|
||||
</span>
|
||||
</EuiScreenReaderOnly>
|
||||
</a>
|
||||
</EuiLink>
|
||||
to enable API keys.
|
||||
|
@ -119,7 +144,7 @@ exports[`APIKeysGridPage renders permission denied if user does not have require
|
|||
paddingSize="l"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingLarge euiPageContent euiPageContent--horizontalCenter"
|
||||
className="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--horizontalCenter"
|
||||
>
|
||||
<EuiEmptyPrompt
|
||||
body={
|
||||
|
|
|
@ -16,7 +16,7 @@ exports[`<RolesGridPage /> renders permission denied if required 1`] = `
|
|||
paddingSize="l"
|
||||
>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingLarge euiPageContent euiPageContent--horizontalCenter"
|
||||
className="euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--horizontalCenter"
|
||||
>
|
||||
<EuiEmptyPrompt
|
||||
body={
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`ResetSessionPage renders as expected 1`] = `"<html lang=\\"en\\"><head><link href=\\"/some-css-file.css\\" rel=\\"stylesheet\\"/><link href=\\"/some-other-css-file.css\\" rel=\\"stylesheet\\"/>MockedFonts<link rel=\\"apple-touch-icon\\" sizes=\\"180x180\\" href=\\"/path/to/base/ui/favicons/apple-touch-icon.png\\"/><link rel=\\"icon\\" type=\\"image/png\\" sizes=\\"32x32\\" href=\\"/path/to/base/ui/favicons/favicon-32x32.png\\"/><link rel=\\"icon\\" type=\\"image/png\\" sizes=\\"16x16\\" href=\\"/path/to/base/ui/favicons/favicon-16x16.png\\"/><link rel=\\"manifest\\" href=\\"/path/to/base/ui/favicons/manifest.json\\"/><link rel=\\"mask-icon\\" color=\\"#e8488b\\" href=\\"/path/to/base/ui/favicons/safari-pinned-tab.svg\\"/><link rel=\\"shortcut icon\\" href=\\"/path/to/base/ui/favicons/favicon.ico\\"/><script src=\\"/path/to/base/internal/security/reset_session_page.js\\"></script><meta name=\\"msapplication-config\\" content=\\"/path/to/base/ui/favicons/browserconfig.xml\\"/><meta name=\\"theme-color\\" content=\\"#ffffff\\"/></head><body><div class=\\"euiPage\\" style=\\"min-height:100vh\\"><main class=\\"euiPageBody\\"><div class=\\"euiPanel euiPanel--paddingLarge euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter\\"><div class=\\"euiEmptyPrompt\\"><span data-euiicon-type=\\"alert\\" color=\\"danger\\"></span><div class=\\"euiSpacer euiSpacer--s\\"></div><span class=\\"euiTextColor euiTextColor--subdued\\"><h2 class=\\"euiTitle euiTitle--medium\\">You do not have permission to access the requested page</h2><div class=\\"euiSpacer euiSpacer--m\\"></div><div class=\\"euiText euiText--medium\\"><p>Either go back to the previous page or log in as a different user.</p></div></span><div class=\\"euiSpacer euiSpacer--l\\"></div><div class=\\"euiSpacer euiSpacer--s\\"></div><div class=\\"euiFlexGroup euiFlexGroup--gutterMedium euiFlexGroup--alignItemsCenter euiFlexGroup--justifyContentCenter euiFlexGroup--directionColumn euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><a class=\\"euiButton euiButton--primary euiButton--fill\\" href=\\"/path/to/logout\\" rel=\\"noreferrer\\" data-test-subj=\\"ResetSessionButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Log in as different user</span></span></a></div><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><button class=\\"euiButtonEmpty euiButtonEmpty--primary\\" type=\\"button\\" id=\\"goBackButton\\"><span class=\\"euiButtonContent euiButtonEmpty__content\\"><span class=\\"euiButtonEmpty__text\\">Go back</span></span></button></div></div></div></div></main></div></body></html>"`;
|
||||
exports[`ResetSessionPage renders as expected 1`] = `"<html lang=\\"en\\"><head><link href=\\"/some-css-file.css\\" rel=\\"stylesheet\\"/><link href=\\"/some-other-css-file.css\\" rel=\\"stylesheet\\"/>MockedFonts<link rel=\\"apple-touch-icon\\" sizes=\\"180x180\\" href=\\"/path/to/base/ui/favicons/apple-touch-icon.png\\"/><link rel=\\"icon\\" type=\\"image/png\\" sizes=\\"32x32\\" href=\\"/path/to/base/ui/favicons/favicon-32x32.png\\"/><link rel=\\"icon\\" type=\\"image/png\\" sizes=\\"16x16\\" href=\\"/path/to/base/ui/favicons/favicon-16x16.png\\"/><link rel=\\"manifest\\" href=\\"/path/to/base/ui/favicons/manifest.json\\"/><link rel=\\"mask-icon\\" color=\\"#e8488b\\" href=\\"/path/to/base/ui/favicons/safari-pinned-tab.svg\\"/><link rel=\\"shortcut icon\\" href=\\"/path/to/base/ui/favicons/favicon.ico\\"/><script src=\\"/path/to/base/internal/security/reset_session_page.js\\"></script><meta name=\\"msapplication-config\\" content=\\"/path/to/base/ui/favicons/browserconfig.xml\\"/><meta name=\\"theme-color\\" content=\\"#ffffff\\"/></head><body><div class=\\"euiPage\\" style=\\"min-height:100vh\\"><main class=\\"euiPageBody\\"><div class=\\"euiPanel euiPanel--paddingLarge euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow euiPageContent euiPageContent--verticalCenter euiPageContent--horizontalCenter\\"><div class=\\"euiEmptyPrompt\\"><span data-euiicon-type=\\"alert\\" color=\\"danger\\"></span><div class=\\"euiSpacer euiSpacer--s\\"></div><span class=\\"euiTextColor euiTextColor--subdued\\"><h2 class=\\"euiTitle euiTitle--medium\\">You do not have permission to access the requested page</h2><div class=\\"euiSpacer euiSpacer--m\\"></div><div class=\\"euiText euiText--medium\\"><p>Either go back to the previous page or log in as a different user.</p></div></span><div class=\\"euiSpacer euiSpacer--l\\"></div><div class=\\"euiSpacer euiSpacer--s\\"></div><div class=\\"euiFlexGroup euiFlexGroup--gutterMedium euiFlexGroup--alignItemsCenter euiFlexGroup--justifyContentCenter euiFlexGroup--directionColumn euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><a class=\\"euiButton euiButton--primary euiButton--fill\\" href=\\"/path/to/logout\\" rel=\\"noreferrer\\" data-test-subj=\\"ResetSessionButton\\"><span class=\\"euiButtonContent euiButton__content\\"><span class=\\"euiButton__text\\">Log in as different user</span></span></a></div><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><button class=\\"euiButtonEmpty euiButtonEmpty--primary\\" type=\\"button\\" id=\\"goBackButton\\"><span class=\\"euiButtonContent euiButtonEmpty__content\\"><span class=\\"euiButtonEmpty__text\\">Go back</span></span></button></div></div></div></div></main></div></body></html>"`;
|
||||
|
|
|
@ -13,7 +13,7 @@ export {
|
|||
DefaultVersionNumberDecoded,
|
||||
} from './detection_engine/schemas/types/default_version_number';
|
||||
export { exactCheck } from './exact_check';
|
||||
export { getPaths, foldLeftRight } from './test_utils';
|
||||
export { getPaths, foldLeftRight, removeExternalLinkText } from './test_utils';
|
||||
export { validate, validateEither } from './validate';
|
||||
export { formatErrors } from './format_errors';
|
||||
export { migratePackagePolicyToV7110 } from './endpoint/policy/migrations/to_v7_11.0';
|
||||
|
|
|
@ -41,3 +41,9 @@ export const getPaths = <A>(validation: t.Validation<A>): string[] => {
|
|||
)
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Convenience utility to remove text appended to links by EUI
|
||||
*/
|
||||
export const removeExternalLinkText = (str: string) =>
|
||||
str.replace(/\(opens in a new tab or window\)/g, '');
|
||||
|
|
|
@ -49,6 +49,7 @@ import {
|
|||
DEFINITION_DETAILS,
|
||||
FALSE_POSITIVES_DETAILS,
|
||||
getDetails,
|
||||
removeExternalLinkText,
|
||||
INDEX_PATTERNS_DETAILS,
|
||||
INVESTIGATION_NOTES_MARKDOWN,
|
||||
INVESTIGATION_NOTES_TOGGLE,
|
||||
|
@ -174,9 +175,13 @@ describe('Custom detection rules creation', () => {
|
|||
cy.get(ABOUT_DETAILS).within(() => {
|
||||
getDetails(SEVERITY_DETAILS).should('have.text', newRule.severity);
|
||||
getDetails(RISK_SCORE_DETAILS).should('have.text', newRule.riskScore);
|
||||
getDetails(REFERENCE_URLS_DETAILS).should('have.text', expectedUrls);
|
||||
getDetails(REFERENCE_URLS_DETAILS).should((details) => {
|
||||
expect(removeExternalLinkText(details.text())).equal(expectedUrls);
|
||||
});
|
||||
getDetails(FALSE_POSITIVES_DETAILS).should('have.text', expectedFalsePositives);
|
||||
getDetails(MITRE_ATTACK_DETAILS).should('have.text', expectedMitre);
|
||||
getDetails(MITRE_ATTACK_DETAILS).should((mitre) => {
|
||||
expect(removeExternalLinkText(mitre.text())).equal(expectedMitre);
|
||||
});
|
||||
getDetails(TAGS_DETAILS).should('have.text', expectedTags);
|
||||
});
|
||||
cy.get(INVESTIGATION_NOTES_TOGGLE).click({ force: true });
|
||||
|
|
|
@ -32,6 +32,7 @@ import {
|
|||
DEFINITION_DETAILS,
|
||||
FALSE_POSITIVES_DETAILS,
|
||||
getDetails,
|
||||
removeExternalLinkText,
|
||||
INDEX_PATTERNS_DETAILS,
|
||||
INVESTIGATION_NOTES_MARKDOWN,
|
||||
INVESTIGATION_NOTES_TOGGLE,
|
||||
|
@ -136,9 +137,13 @@ describe('Detection rules, EQL', () => {
|
|||
cy.get(ABOUT_DETAILS).within(() => {
|
||||
getDetails(SEVERITY_DETAILS).should('have.text', eqlRule.severity);
|
||||
getDetails(RISK_SCORE_DETAILS).should('have.text', eqlRule.riskScore);
|
||||
getDetails(REFERENCE_URLS_DETAILS).should('have.text', expectedUrls);
|
||||
getDetails(REFERENCE_URLS_DETAILS).should((details) => {
|
||||
expect(removeExternalLinkText(details.text())).equal(expectedUrls);
|
||||
});
|
||||
getDetails(FALSE_POSITIVES_DETAILS).should('have.text', expectedFalsePositives);
|
||||
getDetails(MITRE_ATTACK_DETAILS).should('have.text', expectedMitre);
|
||||
getDetails(MITRE_ATTACK_DETAILS).should((mitre) => {
|
||||
expect(removeExternalLinkText(mitre.text())).equal(expectedMitre);
|
||||
});
|
||||
getDetails(TAGS_DETAILS).should('have.text', expectedTags);
|
||||
});
|
||||
cy.get(INVESTIGATION_NOTES_TOGGLE).click({ force: true });
|
||||
|
|
|
@ -23,6 +23,7 @@ import {
|
|||
DEFINITION_DETAILS,
|
||||
FALSE_POSITIVES_DETAILS,
|
||||
getDetails,
|
||||
removeExternalLinkText,
|
||||
MACHINE_LEARNING_JOB_ID,
|
||||
MACHINE_LEARNING_JOB_STATUS,
|
||||
MITRE_ATTACK_DETAILS,
|
||||
|
@ -122,9 +123,13 @@ describe('Detection rules, machine learning', () => {
|
|||
cy.get(ABOUT_DETAILS).within(() => {
|
||||
getDetails(SEVERITY_DETAILS).should('have.text', machineLearningRule.severity);
|
||||
getDetails(RISK_SCORE_DETAILS).should('have.text', machineLearningRule.riskScore);
|
||||
getDetails(REFERENCE_URLS_DETAILS).should('have.text', expectedUrls);
|
||||
getDetails(REFERENCE_URLS_DETAILS).should((details) => {
|
||||
expect(removeExternalLinkText(details.text())).equal(expectedUrls);
|
||||
});
|
||||
getDetails(FALSE_POSITIVES_DETAILS).should('have.text', expectedFalsePositives);
|
||||
getDetails(MITRE_ATTACK_DETAILS).should('have.text', expectedMitre);
|
||||
getDetails(MITRE_ATTACK_DETAILS).should((mitre) => {
|
||||
expect(removeExternalLinkText(mitre.text())).equal(expectedMitre);
|
||||
});
|
||||
getDetails(TAGS_DETAILS).should('have.text', expectedTags);
|
||||
});
|
||||
cy.get(DEFINITION_DETAILS).within(() => {
|
||||
|
|
|
@ -34,6 +34,7 @@ import {
|
|||
DETAILS_TITLE,
|
||||
FALSE_POSITIVES_DETAILS,
|
||||
getDetails,
|
||||
removeExternalLinkText,
|
||||
INDEX_PATTERNS_DETAILS,
|
||||
INVESTIGATION_NOTES_MARKDOWN,
|
||||
INVESTIGATION_NOTES_TOGGLE,
|
||||
|
@ -141,9 +142,13 @@ describe('Detection rules, override', () => {
|
|||
`${newOverrideRule.riskOverride}signal.rule.risk_score`
|
||||
);
|
||||
getDetails(RULE_NAME_OVERRIDE_DETAILS).should('have.text', newOverrideRule.nameOverride);
|
||||
getDetails(REFERENCE_URLS_DETAILS).should('have.text', expectedUrls);
|
||||
getDetails(REFERENCE_URLS_DETAILS).should((details) => {
|
||||
expect(removeExternalLinkText(details.text())).equal(expectedUrls);
|
||||
});
|
||||
getDetails(FALSE_POSITIVES_DETAILS).should('have.text', expectedFalsePositives);
|
||||
getDetails(MITRE_ATTACK_DETAILS).should('have.text', expectedMitre);
|
||||
getDetails(MITRE_ATTACK_DETAILS).should((mitre) => {
|
||||
expect(removeExternalLinkText(mitre.text())).equal(expectedMitre);
|
||||
});
|
||||
getDetails(TAGS_DETAILS).should('have.text', expectedTags);
|
||||
getDetails(TIMESTAMP_OVERRIDE_DETAILS).should('have.text', newOverrideRule.timestampOverride);
|
||||
cy.contains(DETAILS_TITLE, 'Severity override')
|
||||
|
|
|
@ -32,6 +32,7 @@ import {
|
|||
FALSE_POSITIVES_DETAILS,
|
||||
DEFINITION_DETAILS,
|
||||
getDetails,
|
||||
removeExternalLinkText,
|
||||
INDEX_PATTERNS_DETAILS,
|
||||
INVESTIGATION_NOTES_MARKDOWN,
|
||||
INVESTIGATION_NOTES_TOGGLE,
|
||||
|
@ -135,9 +136,13 @@ describe('Detection rules, threshold', () => {
|
|||
cy.get(ABOUT_DETAILS).within(() => {
|
||||
getDetails(SEVERITY_DETAILS).should('have.text', newThresholdRule.severity);
|
||||
getDetails(RISK_SCORE_DETAILS).should('have.text', newThresholdRule.riskScore);
|
||||
getDetails(REFERENCE_URLS_DETAILS).should('have.text', expectedUrls);
|
||||
getDetails(REFERENCE_URLS_DETAILS).should((details) => {
|
||||
expect(removeExternalLinkText(details.text())).equal(expectedUrls);
|
||||
});
|
||||
getDetails(FALSE_POSITIVES_DETAILS).should('have.text', expectedFalsePositives);
|
||||
getDetails(MITRE_ATTACK_DETAILS).should('have.text', expectedMitre);
|
||||
getDetails(MITRE_ATTACK_DETAILS).should((mitre) => {
|
||||
expect(removeExternalLinkText(mitre.text())).equal(expectedMitre);
|
||||
});
|
||||
getDetails(TAGS_DETAILS).should('have.text', expectedTags);
|
||||
});
|
||||
cy.get(INVESTIGATION_NOTES_TOGGLE).click({ force: true });
|
||||
|
|
|
@ -75,3 +75,6 @@ export const TIMESTAMP_OVERRIDE_DETAILS = 'Timestamp override';
|
|||
|
||||
export const getDetails = (title: string) =>
|
||||
cy.get(DETAILS_TITLE).contains(title).next(DETAILS_DESCRIPTION);
|
||||
|
||||
export const removeExternalLinkText = (str: string) =>
|
||||
str.replace(/\(opens in a new tab or window\)/g, '');
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
import { mount, shallow, ShallowWrapper } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { removeExternalLinkText } from '../../../../common/test_utils';
|
||||
import { mountWithIntl } from '@kbn/test/jest';
|
||||
|
||||
import { encodeIpv6 } from '../../lib/helpers';
|
||||
|
@ -92,7 +93,7 @@ describe('Custom Links', () => {
|
|||
const wrapper = mountWithIntl(
|
||||
<GoogleLink link={'http://example.com/'}>{'Example Link'}</GoogleLink>
|
||||
);
|
||||
expect(wrapper.text()).toEqual('Example Link');
|
||||
expect(removeExternalLinkText(wrapper.text())).toEqual('Example Link');
|
||||
});
|
||||
|
||||
test('it renders props passed in as link', () => {
|
||||
|
@ -448,7 +449,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(wrapper.text()).toEqual('Example Link');
|
||||
expect(removeExternalLinkText(wrapper.text())).toEqual('Example Link');
|
||||
});
|
||||
|
||||
test('it renders correct href', () => {
|
||||
|
@ -473,7 +474,7 @@ describe('Custom Links', () => {
|
|||
{'Example Link'}
|
||||
</CertificateFingerprintLink>
|
||||
);
|
||||
expect(wrapper.text()).toEqual('Example Link');
|
||||
expect(removeExternalLinkText(wrapper.text())).toEqual('Example Link');
|
||||
});
|
||||
|
||||
test('it renders correct href', () => {
|
||||
|
@ -504,7 +505,7 @@ describe('Custom Links', () => {
|
|||
const wrapper = mountWithIntl(
|
||||
<Ja3FingerprintLink ja3Fingerprint={'abcd'}>{'Example Link'}</Ja3FingerprintLink>
|
||||
);
|
||||
expect(wrapper.text()).toEqual('Example Link');
|
||||
expect(removeExternalLinkText(wrapper.text())).toEqual('Example Link');
|
||||
});
|
||||
|
||||
test('it renders correct href', () => {
|
||||
|
@ -533,7 +534,7 @@ describe('Custom Links', () => {
|
|||
const wrapper = mountWithIntl(
|
||||
<PortOrServiceNameLink portOrServiceName={443}>{'Example Link'}</PortOrServiceNameLink>
|
||||
);
|
||||
expect(wrapper.text()).toEqual('Example Link');
|
||||
expect(removeExternalLinkText(wrapper.text())).toEqual('Example Link');
|
||||
});
|
||||
|
||||
test('it renders correct href when port is a number', () => {
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../common/test_utils';
|
||||
import { MarkdownRenderer } from './renderer';
|
||||
|
||||
describe('Markdown', () => {
|
||||
|
@ -16,9 +17,9 @@ describe('Markdown', () => {
|
|||
test('it renders the expected link text', () => {
|
||||
const wrapper = mount(<MarkdownRenderer>{markdownWithLink}</MarkdownRenderer>);
|
||||
|
||||
expect(wrapper.find('[data-test-subj="markdown-link"]').first().text()).toEqual(
|
||||
'External Site'
|
||||
);
|
||||
expect(
|
||||
removeExternalLinkText(wrapper.find('[data-test-subj="markdown-link"]').first().text())
|
||||
).toEqual('External Site');
|
||||
});
|
||||
|
||||
test('it renders the expected href', () => {
|
||||
|
|
|
@ -39,6 +39,7 @@ exports[`Paginated Table Component rendering it renders the default load more ta
|
|||
"euiBorderColor": "#343741",
|
||||
"euiBorderEditable": "2px dotted #343741",
|
||||
"euiBorderRadius": "4px",
|
||||
"euiBorderRadiusSmall": "2px",
|
||||
"euiBorderThick": "2px solid #343741",
|
||||
"euiBorderThin": "1px solid #343741",
|
||||
"euiBorderWidthThick": "2px",
|
||||
|
@ -375,6 +376,15 @@ exports[`Paginated Table Component rendering it renders the default load more ta
|
|||
},
|
||||
},
|
||||
"euiPaletteColorBlindKeys": "'euiColorVis0', 'euiColorVis1', 'euiColorVis2', 'euiColorVis3', 'euiColorVis4', 'euiColorVis5', 'euiColorVis6', 'euiColorVis7', 'euiColorVis8', 'euiColorVis9'",
|
||||
"euiPanelBackgroundColorModifiers": Object {
|
||||
"plain": "#1d1e24",
|
||||
"subdued": "#25262e",
|
||||
"transparent": "rgba(0, 0, 0, 0)",
|
||||
},
|
||||
"euiPanelBorderRadiusModifiers": Object {
|
||||
"borderRadiusMedium": "4px",
|
||||
"borderRadiusNone": 0,
|
||||
},
|
||||
"euiPanelPaddingModifiers": Object {
|
||||
"paddingLarge": "24px",
|
||||
"paddingMedium": "16px",
|
||||
|
|
|
@ -121,7 +121,7 @@ exports[`TrustedAppsGrid renders correctly when loaded data 1`] = `
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -373,7 +373,7 @@ exports[`TrustedAppsGrid renders correctly when loaded data 1`] = `
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -625,7 +625,7 @@ exports[`TrustedAppsGrid renders correctly when loaded data 1`] = `
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -877,7 +877,7 @@ exports[`TrustedAppsGrid renders correctly when loaded data 1`] = `
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -1129,7 +1129,7 @@ exports[`TrustedAppsGrid renders correctly when loaded data 1`] = `
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -1381,7 +1381,7 @@ exports[`TrustedAppsGrid renders correctly when loaded data 1`] = `
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -1633,7 +1633,7 @@ exports[`TrustedAppsGrid renders correctly when loaded data 1`] = `
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -1885,7 +1885,7 @@ exports[`TrustedAppsGrid renders correctly when loaded data 1`] = `
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -2137,7 +2137,7 @@ exports[`TrustedAppsGrid renders correctly when loaded data 1`] = `
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -2389,7 +2389,7 @@ exports[`TrustedAppsGrid renders correctly when loaded data 1`] = `
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -2931,7 +2931,7 @@ exports[`TrustedAppsGrid renders correctly when loading data for the second time
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -3183,7 +3183,7 @@ exports[`TrustedAppsGrid renders correctly when loading data for the second time
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -3435,7 +3435,7 @@ exports[`TrustedAppsGrid renders correctly when loading data for the second time
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -3687,7 +3687,7 @@ exports[`TrustedAppsGrid renders correctly when loading data for the second time
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -3939,7 +3939,7 @@ exports[`TrustedAppsGrid renders correctly when loading data for the second time
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -4191,7 +4191,7 @@ exports[`TrustedAppsGrid renders correctly when loading data for the second time
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -4443,7 +4443,7 @@ exports[`TrustedAppsGrid renders correctly when loading data for the second time
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -4695,7 +4695,7 @@ exports[`TrustedAppsGrid renders correctly when loading data for the second time
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -4947,7 +4947,7 @@ exports[`TrustedAppsGrid renders correctly when loading data for the second time
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -5199,7 +5199,7 @@ exports[`TrustedAppsGrid renders correctly when loading data for the second time
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -5699,7 +5699,7 @@ exports[`TrustedAppsGrid renders correctly when new page and page size set (not
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -5951,7 +5951,7 @@ exports[`TrustedAppsGrid renders correctly when new page and page size set (not
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -6203,7 +6203,7 @@ exports[`TrustedAppsGrid renders correctly when new page and page size set (not
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -6455,7 +6455,7 @@ exports[`TrustedAppsGrid renders correctly when new page and page size set (not
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -6707,7 +6707,7 @@ exports[`TrustedAppsGrid renders correctly when new page and page size set (not
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -6959,7 +6959,7 @@ exports[`TrustedAppsGrid renders correctly when new page and page size set (not
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -7211,7 +7211,7 @@ exports[`TrustedAppsGrid renders correctly when new page and page size set (not
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -7463,7 +7463,7 @@ exports[`TrustedAppsGrid renders correctly when new page and page size set (not
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -7715,7 +7715,7 @@ exports[`TrustedAppsGrid renders correctly when new page and page size set (not
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
@ -7967,7 +7967,7 @@ exports[`TrustedAppsGrid renders correctly when new page and page size set (not
|
|||
class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
|
|
@ -776,7 +776,7 @@ exports[`TrustedAppsList renders correctly when item details expanded 1`] = `
|
|||
class="euiTableCellContent euiTableCellContent--overflowingContent"
|
||||
>
|
||||
<div
|
||||
class="euiPanel"
|
||||
class="euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--directionRow euiFlexGroup--responsive"
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
import { shallow } from 'enzyme';
|
||||
import React from 'react';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../common/test_utils';
|
||||
import '../../../common/mock/match_media';
|
||||
import { TestProviders } from '../../../common/mock/test_providers';
|
||||
import { useMountAppended } from '../../../common/utils/use_mount_appended';
|
||||
|
@ -30,7 +31,9 @@ describe('Port', () => {
|
|||
</TestProviders>
|
||||
);
|
||||
|
||||
expect(wrapper.find('[data-test-subj="port"]').first().text()).toEqual('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', () => {
|
||||
|
|
|
@ -9,6 +9,7 @@ import { shallow } from 'enzyme';
|
|||
import { get } from 'lodash/fp';
|
||||
import React from 'react';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../common/test_utils';
|
||||
import { asArrayIfExists } from '../../../common/lib/helpers';
|
||||
import { getMockNetflowData } from '../../../common/mock';
|
||||
import '../../../common/mock/match_media';
|
||||
|
@ -189,9 +190,11 @@ describe('SourceDestination', () => {
|
|||
test('it renders the destination ip and port, separated with a colon', () => {
|
||||
const wrapper = mount(<TestProviders>{getSourceDestinationInstance()}</TestProviders>);
|
||||
|
||||
expect(wrapper.find('[data-test-subj="destination-ip-and-port"]').first().text()).toEqual(
|
||||
'10.1.2.3:80'
|
||||
);
|
||||
expect(
|
||||
removeExternalLinkText(
|
||||
wrapper.find('[data-test-subj="destination-ip-and-port"]').first().text()
|
||||
)
|
||||
).toEqual('10.1.2.3:80');
|
||||
});
|
||||
|
||||
test('it renders destination.packets', () => {
|
||||
|
@ -313,9 +316,9 @@ describe('SourceDestination', () => {
|
|||
test('it renders the source ip and port, separated with a colon', () => {
|
||||
const wrapper = mount(<TestProviders>{getSourceDestinationInstance()}</TestProviders>);
|
||||
|
||||
expect(wrapper.find('[data-test-subj="source-ip-and-port"]').first().text()).toEqual(
|
||||
'192.168.1.2:9987'
|
||||
);
|
||||
expect(
|
||||
removeExternalLinkText(wrapper.find('[data-test-subj="source-ip-and-port"]').first().text())
|
||||
).toEqual('192.168.1.2:9987');
|
||||
});
|
||||
|
||||
test('it renders source.packets', () => {
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
import { get } from 'lodash/fp';
|
||||
import React from 'react';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../common/test_utils';
|
||||
import { asArrayIfExists } from '../../../common/lib/helpers';
|
||||
import { getMockNetflowData } from '../../../common/mock';
|
||||
import '../../../common/mock/match_media';
|
||||
|
@ -976,9 +977,11 @@ describe('SourceDestinationIp', () => {
|
|||
</TestProviders>
|
||||
);
|
||||
|
||||
expect(wrapper.find('[data-test-subj="draggable-content-source.port"]').first().text()).toEqual(
|
||||
'9987'
|
||||
);
|
||||
expect(
|
||||
removeExternalLinkText(
|
||||
wrapper.find('[data-test-subj="draggable-content-source.port"]').first().text()
|
||||
)
|
||||
).toEqual('9987');
|
||||
});
|
||||
|
||||
test('it renders the expected destination port when type is `destination`, and both destinationIp and destinationPort are populated', () => {
|
||||
|
@ -1028,7 +1031,9 @@ describe('SourceDestinationIp', () => {
|
|||
);
|
||||
|
||||
expect(
|
||||
wrapper.find('[data-test-subj="draggable-content-destination.port"]').first().text()
|
||||
removeExternalLinkText(
|
||||
wrapper.find('[data-test-subj="draggable-content-destination.port"]').first().text()
|
||||
)
|
||||
).toEqual('80');
|
||||
});
|
||||
|
||||
|
@ -1078,9 +1083,11 @@ describe('SourceDestinationIp', () => {
|
|||
</TestProviders>
|
||||
);
|
||||
|
||||
expect(wrapper.find('[data-test-subj="draggable-content-source.port"]').first().text()).toEqual(
|
||||
'9987'
|
||||
);
|
||||
expect(
|
||||
removeExternalLinkText(
|
||||
wrapper.find('[data-test-subj="draggable-content-source.port"]').first().text()
|
||||
)
|
||||
).toEqual('9987');
|
||||
});
|
||||
|
||||
test('it renders the expected destination port when type is `destination`, and only destinationPort is populated', () => {
|
||||
|
@ -1131,7 +1138,9 @@ describe('SourceDestinationIp', () => {
|
|||
);
|
||||
|
||||
expect(
|
||||
wrapper.find('[data-test-subj="draggable-content-destination.port"]').first().text()
|
||||
removeExternalLinkText(
|
||||
wrapper.find('[data-test-subj="draggable-content-destination.port"]').first().text()
|
||||
)
|
||||
).toEqual('80');
|
||||
});
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
import React from 'react';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../common/test_utils';
|
||||
import { TestProviders } from '../../../common/mock';
|
||||
import '../../../common/mock/match_media';
|
||||
import { useMountAppended } from '../../../common/utils/use_mount_appended';
|
||||
|
@ -43,9 +44,11 @@ describe('CertificateFingerprint', () => {
|
|||
/>
|
||||
</TestProviders>
|
||||
);
|
||||
expect(wrapper.find('[data-test-subj="certificate-fingerprint-link"]').first().text()).toEqual(
|
||||
'3f4c57934e089f02ae7511200aee2d7e7aabd272'
|
||||
);
|
||||
expect(
|
||||
removeExternalLinkText(
|
||||
wrapper.find('[data-test-subj="certificate-fingerprint-link"]').first().text()
|
||||
)
|
||||
).toEqual('3f4c57934e089f02ae7511200aee2d7e7aabd272');
|
||||
});
|
||||
|
||||
test('it renders a hyperlink to an external site to compare the fingerprint against a known set of signatures', () => {
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
import React from 'react';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../common/test_utils';
|
||||
import { TestProviders } from '../../../common/mock';
|
||||
import '../../../common/mock/match_media';
|
||||
import { useMountAppended } from '../../../common/utils/use_mount_appended';
|
||||
|
@ -42,9 +43,9 @@ describe('Ja3Fingerprint', () => {
|
|||
</TestProviders>
|
||||
);
|
||||
|
||||
expect(wrapper.find('[data-test-subj="ja3-fingerprint-link"]').first().text()).toEqual(
|
||||
'fff799d91b7c01ae3fe6787cfc895552'
|
||||
);
|
||||
expect(
|
||||
removeExternalLinkText(wrapper.find('[data-test-subj="ja3-fingerprint-link"]').first().text())
|
||||
).toEqual('fff799d91b7c01ae3fe6787cfc895552');
|
||||
});
|
||||
|
||||
test('it renders a hyperlink to an external site to compare the fingerprint against a known set of signatures', () => {
|
||||
|
|
|
@ -8,6 +8,7 @@ import { get } from 'lodash/fp';
|
|||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../common/test_utils';
|
||||
import { asArrayIfExists } from '../../../common/lib/helpers';
|
||||
import { getMockNetflowData } from '../../../common/mock';
|
||||
import '../../../common/mock/match_media';
|
||||
|
@ -188,9 +189,11 @@ describe('Netflow', () => {
|
|||
test('it renders the destination ip and port, separated with a colon', () => {
|
||||
const wrapper = mount(<TestProviders>{getNetflowInstance()}</TestProviders>);
|
||||
|
||||
expect(wrapper.find('[data-test-subj="destination-ip-and-port"]').first().text()).toEqual(
|
||||
'10.1.2.3:80'
|
||||
);
|
||||
expect(
|
||||
removeExternalLinkText(
|
||||
wrapper.find('[data-test-subj="destination-ip-and-port"]').first().text()
|
||||
)
|
||||
).toEqual('10.1.2.3:80');
|
||||
});
|
||||
|
||||
test('it renders destination.packets', () => {
|
||||
|
@ -324,9 +327,9 @@ describe('Netflow', () => {
|
|||
test('it renders the source ip and port, separated with a colon', () => {
|
||||
const wrapper = mount(<TestProviders>{getNetflowInstance()}</TestProviders>);
|
||||
|
||||
expect(wrapper.find('[data-test-subj="source-ip-and-port"]').first().text()).toEqual(
|
||||
'192.168.1.2:9987'
|
||||
);
|
||||
expect(
|
||||
removeExternalLinkText(wrapper.find('[data-test-subj="source-ip-and-port"]').first().text())
|
||||
).toEqual('192.168.1.2:9987');
|
||||
});
|
||||
|
||||
test('it renders source.packets', () => {
|
||||
|
@ -353,11 +356,13 @@ describe('Netflow', () => {
|
|||
const wrapper = mount(<TestProviders>{getNetflowInstance()}</TestProviders>);
|
||||
|
||||
expect(
|
||||
wrapper
|
||||
.find('[data-test-subj="client-certificate-fingerprint"]')
|
||||
.find('[data-test-subj="certificate-fingerprint-link"]')
|
||||
.first()
|
||||
.text()
|
||||
removeExternalLinkText(
|
||||
wrapper
|
||||
.find('[data-test-subj="client-certificate-fingerprint"]')
|
||||
.find('[data-test-subj="certificate-fingerprint-link"]')
|
||||
.first()
|
||||
.text()
|
||||
)
|
||||
).toEqual('tls.client_certificate.fingerprint.sha1-value');
|
||||
});
|
||||
|
||||
|
@ -372,9 +377,9 @@ describe('Netflow', () => {
|
|||
test('renders tls.fingerprints.ja3.hash text', () => {
|
||||
const wrapper = mount(<TestProviders>{getNetflowInstance()}</TestProviders>);
|
||||
|
||||
expect(wrapper.find('[data-test-subj="ja3-fingerprint-link"]').first().text()).toEqual(
|
||||
'tls.fingerprints.ja3.hash-value'
|
||||
);
|
||||
expect(
|
||||
removeExternalLinkText(wrapper.find('[data-test-subj="ja3-fingerprint-link"]').first().text())
|
||||
).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', () => {
|
||||
|
@ -395,11 +400,13 @@ describe('Netflow', () => {
|
|||
const wrapper = mount(<TestProviders>{getNetflowInstance()}</TestProviders>);
|
||||
|
||||
expect(
|
||||
wrapper
|
||||
.find('[data-test-subj="server-certificate-fingerprint"]')
|
||||
.find('[data-test-subj="certificate-fingerprint-link"]')
|
||||
.first()
|
||||
.text()
|
||||
removeExternalLinkText(
|
||||
wrapper
|
||||
.find('[data-test-subj="server-certificate-fingerprint"]')
|
||||
.find('[data-test-subj="certificate-fingerprint-link"]')
|
||||
.first()
|
||||
.text()
|
||||
)
|
||||
).toEqual('tls.server_certificate.fingerprint.sha1-value');
|
||||
});
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ exports[`NoteCardBody renders correctly against snapshot 1`] = `
|
|||
"euiBorderColor": "#343741",
|
||||
"euiBorderEditable": "2px dotted #343741",
|
||||
"euiBorderRadius": "4px",
|
||||
"euiBorderRadiusSmall": "2px",
|
||||
"euiBorderThick": "2px solid #343741",
|
||||
"euiBorderThin": "1px solid #343741",
|
||||
"euiBorderWidthThick": "2px",
|
||||
|
@ -375,6 +376,15 @@ exports[`NoteCardBody renders correctly against snapshot 1`] = `
|
|||
},
|
||||
},
|
||||
"euiPaletteColorBlindKeys": "'euiColorVis0', 'euiColorVis1', 'euiColorVis2', 'euiColorVis3', 'euiColorVis4', 'euiColorVis5', 'euiColorVis6', 'euiColorVis7', 'euiColorVis8', 'euiColorVis9'",
|
||||
"euiPanelBackgroundColorModifiers": Object {
|
||||
"plain": "#1d1e24",
|
||||
"subdued": "#25262e",
|
||||
"transparent": "rgba(0, 0, 0, 0)",
|
||||
},
|
||||
"euiPanelBorderRadiusModifiers": Object {
|
||||
"borderRadiusMedium": "4px",
|
||||
"borderRadiusNone": 0,
|
||||
},
|
||||
"euiPanelPaddingModifiers": Object {
|
||||
"paddingLarge": "24px",
|
||||
"paddingMedium": "16px",
|
||||
|
|
|
@ -8,6 +8,7 @@ import { shallow } from 'enzyme';
|
|||
import { cloneDeep } from 'lodash';
|
||||
import React from 'react';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../../../common/test_utils';
|
||||
import '../../../../../common/mock/match_media';
|
||||
import { mockBrowserFields } from '../../../../../common/containers/source/mock';
|
||||
import { Ecs } from '../../../../../../common/ecs';
|
||||
|
@ -75,7 +76,7 @@ describe('get_column_renderer', () => {
|
|||
<span>{row}</span>
|
||||
</TestProviders>
|
||||
);
|
||||
expect(wrapper.text()).toContain(
|
||||
expect(removeExternalLinkText(wrapper.text())).toContain(
|
||||
'4ETEXPLOITNETGEARWNR2000v5 hidden_lang_avi Stack Overflow (CVE-2016-10174)Source192.168.0.3:53Destination192.168.0.3:6343'
|
||||
);
|
||||
});
|
||||
|
@ -93,7 +94,7 @@ describe('get_column_renderer', () => {
|
|||
<span>{row}</span>
|
||||
</TestProviders>
|
||||
);
|
||||
expect(wrapper.text()).toContain(
|
||||
expect(removeExternalLinkText(wrapper.text())).toContain(
|
||||
'4ETEXPLOITNETGEARWNR2000v5 hidden_lang_avi Stack Overflow (CVE-2016-10174)Source192.168.0.3:53Destination192.168.0.3:6343'
|
||||
);
|
||||
});
|
||||
|
@ -111,7 +112,7 @@ describe('get_column_renderer', () => {
|
|||
<span>{row}</span>
|
||||
</TestProviders>
|
||||
);
|
||||
expect(wrapper.text()).toContain(
|
||||
expect(removeExternalLinkText(wrapper.text())).toContain(
|
||||
'C8DRTq362Fios6hw16connectionREJSrConnection attempt rejectedtcpSource185.176.26.101:44059Destination207.154.238.205:11568'
|
||||
);
|
||||
});
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
import { shallow } from 'enzyme';
|
||||
import React from 'react';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../../../../common/test_utils';
|
||||
import { mockBrowserFields } from '../../../../../../common/containers/source/mock';
|
||||
import { mockTimelineData } from '../../../../../../common/mock';
|
||||
import '../../../../../../common/mock/match_media';
|
||||
|
@ -41,7 +42,7 @@ describe('SuricataDetails', () => {
|
|||
/>
|
||||
</TestProviders>
|
||||
);
|
||||
expect(wrapper.text()).toEqual(
|
||||
expect(removeExternalLinkText(wrapper.text())).toEqual(
|
||||
'4ETEXPLOITNETGEARWNR2000v5 hidden_lang_avi Stack Overflow (CVE-2016-10174)Source192.168.0.3:53Destination192.168.0.3:6343'
|
||||
);
|
||||
});
|
||||
|
|
|
@ -8,6 +8,7 @@ import { shallow } from 'enzyme';
|
|||
import { cloneDeep } from 'lodash/fp';
|
||||
import React from 'react';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../../../../common/test_utils';
|
||||
import { mockBrowserFields } from '../../../../../../common/containers/source/mock';
|
||||
import { Ecs } from '../../../../../../../common/ecs';
|
||||
import { mockTimelineData } from '../../../../../../common/mock';
|
||||
|
@ -58,7 +59,7 @@ describe('suricata_row_renderer', () => {
|
|||
<span>{children}</span>
|
||||
</TestProviders>
|
||||
);
|
||||
expect(wrapper.text()).toContain(
|
||||
expect(removeExternalLinkText(wrapper.text())).toContain(
|
||||
'4ETEXPLOITNETGEARWNR2000v5 hidden_lang_avi Stack Overflow (CVE-2016-10174)Source192.168.0.3:53Destination192.168.0.3:6343'
|
||||
);
|
||||
});
|
||||
|
|
|
@ -8,6 +8,7 @@ import { shallow } from 'enzyme';
|
|||
import { cloneDeep } from 'lodash/fp';
|
||||
import React from 'react';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../../../../common/test_utils';
|
||||
import { BrowserFields } from '../../../../../../common/containers/source';
|
||||
import { mockBrowserFields } from '../../../../../../common/containers/source/mock';
|
||||
import { Ecs } from '../../../../../../../common/ecs';
|
||||
|
@ -541,7 +542,7 @@ describe('GenericRowRenderer', () => {
|
|||
</TestProviders>
|
||||
);
|
||||
|
||||
expect(wrapper.text()).toEqual(
|
||||
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'
|
||||
);
|
||||
});
|
||||
|
@ -569,7 +570,7 @@ describe('GenericRowRenderer', () => {
|
|||
</TestProviders>
|
||||
);
|
||||
|
||||
expect(wrapper.text()).toEqual(
|
||||
expect(removeExternalLinkText(wrapper.text())).toEqual(
|
||||
'SYSTEM\\NT AUTHORITY@HD-55b-3ec87f66accepted a connection via(4)tcp1:network-community_idSource::1:51324Destination::1:5357'
|
||||
);
|
||||
});
|
||||
|
@ -597,7 +598,7 @@ describe('GenericRowRenderer', () => {
|
|||
</TestProviders>
|
||||
);
|
||||
|
||||
expect(wrapper.text()).toEqual(
|
||||
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'
|
||||
);
|
||||
});
|
||||
|
@ -625,7 +626,7 @@ describe('GenericRowRenderer', () => {
|
|||
</TestProviders>
|
||||
);
|
||||
|
||||
expect(wrapper.text()).toEqual(
|
||||
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'
|
||||
);
|
||||
});
|
||||
|
@ -653,7 +654,7 @@ describe('GenericRowRenderer', () => {
|
|||
</TestProviders>
|
||||
);
|
||||
|
||||
expect(wrapper.text()).toEqual(
|
||||
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'
|
||||
);
|
||||
});
|
||||
|
@ -681,7 +682,7 @@ describe('GenericRowRenderer', () => {
|
|||
</TestProviders>
|
||||
);
|
||||
|
||||
expect(wrapper.text()).toEqual(
|
||||
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'
|
||||
);
|
||||
});
|
||||
|
@ -875,7 +876,7 @@ describe('GenericRowRenderer', () => {
|
|||
</TestProviders>
|
||||
);
|
||||
|
||||
expect(wrapper.text()).toEqual(
|
||||
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'
|
||||
);
|
||||
});
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
import React from 'react';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../../../../common/test_utils';
|
||||
import '../../../../../../common/mock/match_media';
|
||||
import { mockBrowserFields } from '../../../../../../common/containers/source/mock';
|
||||
import { mockTimelineData, TestProviders } from '../../../../../../common/mock';
|
||||
|
@ -41,7 +42,7 @@ describe('ZeekDetails', () => {
|
|||
/>
|
||||
</TestProviders>
|
||||
);
|
||||
expect(wrapper.text()).toEqual(
|
||||
expect(removeExternalLinkText(wrapper.text())).toEqual(
|
||||
'C8DRTq362Fios6hw16connectionREJSrConnection attempt rejectedtcpSource185.176.26.101:44059Destination207.154.238.205:11568'
|
||||
);
|
||||
});
|
||||
|
@ -56,7 +57,7 @@ describe('ZeekDetails', () => {
|
|||
/>
|
||||
</TestProviders>
|
||||
);
|
||||
expect(wrapper.text()).toEqual(
|
||||
expect(removeExternalLinkText(wrapper.text())).toEqual(
|
||||
'CyIrMA1L1JtLqdIuoldnsudpSource206.189.35.240:57475Destination67.207.67.3:53'
|
||||
);
|
||||
});
|
||||
|
@ -71,7 +72,7 @@ describe('ZeekDetails', () => {
|
|||
/>
|
||||
</TestProviders>
|
||||
);
|
||||
expect(wrapper.text()).toEqual(
|
||||
expect(removeExternalLinkText(wrapper.text())).toEqual(
|
||||
'CZLkpC22NquQJOpkwehttp302Source206.189.35.240:36220Destination192.241.164.26:80'
|
||||
);
|
||||
});
|
||||
|
@ -86,7 +87,7 @@ describe('ZeekDetails', () => {
|
|||
/>
|
||||
</TestProviders>
|
||||
);
|
||||
expect(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'
|
||||
);
|
||||
});
|
||||
|
@ -101,7 +102,7 @@ describe('ZeekDetails', () => {
|
|||
/>
|
||||
</TestProviders>
|
||||
);
|
||||
expect(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'
|
||||
);
|
||||
});
|
||||
|
|
|
@ -8,6 +8,7 @@ import { shallow } from 'enzyme';
|
|||
import { cloneDeep } from 'lodash/fp';
|
||||
import React from 'react';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../../../../common/test_utils';
|
||||
import { mockBrowserFields } from '../../../../../../common/containers/source/mock';
|
||||
import { Ecs } from '../../../../../../../common/ecs';
|
||||
import { mockTimelineData, TestProviders } from '../../../../../../common/mock';
|
||||
|
@ -57,7 +58,7 @@ describe('zeek_row_renderer', () => {
|
|||
<span>{children}</span>
|
||||
</TestProviders>
|
||||
);
|
||||
expect(wrapper.text()).toContain(
|
||||
expect(removeExternalLinkText(wrapper.text())).toContain(
|
||||
'C8DRTq362Fios6hw16connectionREJSrConnection attempt rejectedtcpSource185.176.26.101:44059Destination207.154.238.205:11568'
|
||||
);
|
||||
});
|
||||
|
|
|
@ -8,6 +8,7 @@ import { shallow } from 'enzyme';
|
|||
import { cloneDeep } from 'lodash/fp';
|
||||
import React from 'react';
|
||||
|
||||
import { removeExternalLinkText } from '../../../../../../../common/test_utils';
|
||||
import '../../../../../../common/mock/match_media';
|
||||
import { Ecs } from '../../../../../../../common/ecs';
|
||||
import { mockTimelineData, TestProviders } from '../../../../../../common/mock';
|
||||
|
@ -89,7 +90,7 @@ describe('ZeekSignature', () => {
|
|||
|
||||
test('should render value', () => {
|
||||
const wrapper = mount(<Link value={'abc'} />);
|
||||
expect(wrapper.text()).toEqual('abc');
|
||||
expect(removeExternalLinkText(wrapper.text())).toEqual('abc');
|
||||
});
|
||||
|
||||
test('should render value and link', () => {
|
||||
|
|
|
@ -89,10 +89,12 @@ describe('health check', () => {
|
|||
const [description, action] = queryAllByText(/TLS/i);
|
||||
|
||||
expect(description.textContent).toMatchInlineSnapshot(
|
||||
`"Alerting relies on API keys, which require TLS between Elasticsearch and Kibana. Learn how to enable TLS."`
|
||||
`"Alerting relies on API keys, which require TLS between Elasticsearch and Kibana. Learn how to enable TLS.(opens in a new tab or window)"`
|
||||
);
|
||||
|
||||
expect(action.textContent).toMatchInlineSnapshot(`"Learn how to enable TLS."`);
|
||||
expect(action.textContent).toMatchInlineSnapshot(
|
||||
`"Learn how to enable TLS.(opens in a new tab or window)"`
|
||||
);
|
||||
|
||||
expect(action.getAttribute('href')).toMatchInlineSnapshot(
|
||||
`"elastic.co/guide/en/kibana/current/configuring-tls.html"`
|
||||
|
@ -118,11 +120,11 @@ describe('health check', () => {
|
|||
|
||||
const description = queryByRole(/banner/i);
|
||||
expect(description!.textContent).toMatchInlineSnapshot(
|
||||
`"To create an alert, set a value for xpack.encryptedSavedObjects.encryptionKey in your kibana.yml file. Learn how."`
|
||||
`"To create an alert, set a value for xpack.encryptedSavedObjects.encryptionKey in your kibana.yml file. Learn how.(opens in a new tab or window)"`
|
||||
);
|
||||
|
||||
const action = queryByText(/Learn/i);
|
||||
expect(action!.textContent).toMatchInlineSnapshot(`"Learn how."`);
|
||||
expect(action!.textContent).toMatchInlineSnapshot(`"Learn how.(opens in a new tab or window)"`);
|
||||
expect(action!.getAttribute('href')).toMatchInlineSnapshot(
|
||||
`"elastic.co/guide/en/kibana/current/alert-action-settings-kb.html#general-alert-action-settings"`
|
||||
);
|
||||
|
@ -148,11 +150,11 @@ describe('health check', () => {
|
|||
const description = queryByText(/Transport Layer Security/i);
|
||||
|
||||
expect(description!.textContent).toMatchInlineSnapshot(
|
||||
`"You must enable Transport Layer Security between Kibana and Elasticsearch and configure an encryption key in your kibana.yml file. Learn how"`
|
||||
`"You must enable Transport Layer Security between Kibana and Elasticsearch and configure an encryption key in your kibana.yml file. Learn how(opens in a new tab or window)"`
|
||||
);
|
||||
|
||||
const action = queryByText(/Learn/i);
|
||||
expect(action!.textContent).toMatchInlineSnapshot(`"Learn how"`);
|
||||
expect(action!.textContent).toMatchInlineSnapshot(`"Learn how(opens in a new tab or window)"`);
|
||||
expect(action!.getAttribute('href')).toMatchInlineSnapshot(
|
||||
`"elastic.co/guide/en/kibana/current/alerting-getting-started.html#alerting-setup-prerequisites"`
|
||||
);
|
||||
|
|
|
@ -178,6 +178,16 @@ exports[`PingListExpandedRow renders link to docs if body is not recorded but it
|
|||
<span
|
||||
data-euiicon-type="popout"
|
||||
/>
|
||||
<span
|
||||
aria-label="External link"
|
||||
class="euiLink__externalIcon"
|
||||
data-euiicon-type="popout"
|
||||
/>
|
||||
<span
|
||||
class="euiScreenReaderOnly"
|
||||
>
|
||||
(opens in a new tab or window)
|
||||
</span>
|
||||
</a>
|
||||
for more information on recording response bodies.
|
||||
</div>
|
||||
|
|
|
@ -55,6 +55,16 @@ Array [
|
|||
<span
|
||||
data-euiicon-type="popout"
|
||||
/>
|
||||
<span
|
||||
aria-label="External link"
|
||||
class="euiLink__externalIcon"
|
||||
data-euiicon-type="popout"
|
||||
/>
|
||||
<span
|
||||
class="euiScreenReaderOnly"
|
||||
>
|
||||
(opens in a new tab or window)
|
||||
</span>
|
||||
</a>
|
||||
</dd>
|
||||
<dt
|
||||
|
|
|
@ -192,7 +192,7 @@ exports[`EmptyState component does not render empty state with appropriate base
|
|||
</EuiSpacer>
|
||||
<EuiPanel>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingMedium"
|
||||
className="euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<EuiEmptyPrompt
|
||||
actions={
|
||||
|
@ -680,7 +680,7 @@ exports[`EmptyState component doesn't render child components when count is fals
|
|||
</EuiSpacer>
|
||||
<EuiPanel>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingMedium"
|
||||
className="euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<EuiEmptyPrompt
|
||||
actions={
|
||||
|
@ -1173,7 +1173,7 @@ exports[`EmptyState component notifies when index does not exist 1`] = `
|
|||
</EuiSpacer>
|
||||
<EuiPanel>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingMedium"
|
||||
className="euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<EuiEmptyPrompt
|
||||
actions={
|
||||
|
@ -1749,7 +1749,7 @@ exports[`EmptyState component renders error message when an error occurs 1`] = `
|
|||
>
|
||||
<EuiPanel>
|
||||
<div
|
||||
className="euiPanel euiPanel--paddingMedium"
|
||||
className="euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<EuiEmptyPrompt
|
||||
body={
|
||||
|
|
|
@ -850,7 +850,7 @@ exports[`MonitorList component renders the monitor list 1`] = `
|
|||
}
|
||||
|
||||
<div
|
||||
class="euiPanel euiPanel--paddingMedium"
|
||||
class="euiPanel euiPanel--paddingMedium euiPanel--borderRadiusMedium euiPanel--plain euiPanel--shadow"
|
||||
>
|
||||
<div
|
||||
class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsCenter euiFlexGroup--directionRow euiFlexGroup--responsive c0"
|
||||
|
|
|
@ -1433,10 +1433,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@30.1.1":
|
||||
version "30.1.1"
|
||||
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-30.1.1.tgz#7d3a4e8241cca2e27078f9fa6a0138b26acd3db3"
|
||||
integrity sha512-nsqrOFJfPIGS+TTd4W4viesWdPEDCxazfrPc+DZQ4kosRXLKoJ4lLKDuJKbg90HshCeamKSFgEiqWlqKAlyV+A==
|
||||
"@elastic/eui@30.2.0":
|
||||
version "30.2.0"
|
||||
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-30.2.0.tgz#17bc630eb1a03e05d453b9934568cfbf3a82b736"
|
||||
integrity sha512-VUmy7Qz49kN8a3f58bilfMwBo9zCJvHyBOUdDA1O77jFYv3+Hg7e/+uGb7Q1k6kSmCfv4r99eZWrcxVroYU4nQ==
|
||||
dependencies:
|
||||
"@types/chroma-js" "^2.0.0"
|
||||
"@types/lodash" "^4.14.160"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue