Skip to content

Commit

Permalink
[7.x] Upgrade EUI to v30.2.0 (#82730) (#83588)
Browse files Browse the repository at this point in the history
* 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

* fix bad merge resolution
  • Loading branch information
thompsongl authored Nov 18, 2020
1 parent 548b5c0 commit ce49c2a
Show file tree
Hide file tree
Showing 58 changed files with 370 additions and 185 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 ce49c2a

Please sign in to comment.