Skip to content

Commit

Permalink
Upgrade EUI to v30.2.0 (#82730)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
thompsongl committed Nov 17, 2020
1 parent 242eae0 commit 6adbbae
Show file tree
Hide file tree
Showing 58 changed files with 371 additions and 186 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,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",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -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');
});
});
Expand All @@ -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();
});
Expand All @@ -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');
});
});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6adbbae

Please sign in to comment.