mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* Upgrade enzyme and enzyme-adapter-react-16 to the latest * Skip failed expectation * Update yarn.lock * Update snapshot
This commit is contained in:
parent
3f27ffb869
commit
11814c51d5
5 changed files with 49 additions and 29 deletions
|
@ -346,8 +346,8 @@
|
|||
"classnames": "2.2.5",
|
||||
"dedent": "^0.7.0",
|
||||
"delete-empty": "^2.0.0",
|
||||
"enzyme": "^3.7.0",
|
||||
"enzyme-adapter-react-16": "^1.10.0",
|
||||
"enzyme": "^3.9.0",
|
||||
"enzyme-adapter-react-16": "^1.13.1",
|
||||
"enzyme-adapter-utils": "^1.10.0",
|
||||
"enzyme-to-json": "^3.3.4",
|
||||
"eslint": "^5.16.0",
|
||||
|
|
|
@ -325,7 +325,13 @@ test('field name change', async () => {
|
|||
// ensure that after async loading is complete the DynamicOptionsSwitch is disabled, because this is not a "string" field
|
||||
expect(component.find('[data-test-subj="listControlDynamicOptionsSwitch"][disabled=true]')).toHaveLength(0);
|
||||
await update();
|
||||
|
||||
|
||||
/*
|
||||
The issue with enzyme@3.9.0 -> the fix has not been released yet -> https://github.com/airbnb/enzyme/pull/2027
|
||||
TODO: Enable the expectation after the next patch released
|
||||
expect(component.find('[data-test-subj="listControlDynamicOptionsSwitch"][disabled=true]')).toHaveLength(1);
|
||||
*/
|
||||
|
||||
component.setProps({
|
||||
controlParams
|
||||
|
|
|
@ -114,8 +114,8 @@
|
|||
"copy-webpack-plugin": "^4.5.2",
|
||||
"del": "^3.0.0",
|
||||
"dotenv": "2.0.0",
|
||||
"enzyme": "^3.7.0",
|
||||
"enzyme-adapter-react-16": "^1.10.0",
|
||||
"enzyme": "^3.9.0",
|
||||
"enzyme-adapter-react-16": "^1.13.1",
|
||||
"enzyme-adapter-utils": "^1.10.0",
|
||||
"enzyme-to-json": "^3.3.4",
|
||||
"execa": "^1.0.0",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Stat Items disable charts it renders the default widget 1`] = `
|
||||
<Memo()
|
||||
<Component
|
||||
description="HOSTS"
|
||||
fields={
|
||||
Array [
|
||||
|
@ -101,11 +101,11 @@ exports[`Stat Items disable charts it renders the default widget 1`] = `
|
|||
</div>
|
||||
</EuiFlexItem>
|
||||
</Styled(EuiFlexItem)>
|
||||
</Memo()>
|
||||
</Component>
|
||||
`;
|
||||
|
||||
exports[`Stat Items disable charts it renders the default widget 2`] = `
|
||||
<Memo()
|
||||
<Component
|
||||
areaChart={Array []}
|
||||
barChart={Array []}
|
||||
description="HOSTS"
|
||||
|
@ -208,11 +208,11 @@ exports[`Stat Items disable charts it renders the default widget 2`] = `
|
|||
</div>
|
||||
</EuiFlexItem>
|
||||
</Styled(EuiFlexItem)>
|
||||
</Memo()>
|
||||
</Component>
|
||||
`;
|
||||
|
||||
exports[`Stat Items rendering kpis with charts it renders the default widget 1`] = `
|
||||
<Memo()
|
||||
<Component
|
||||
areaChart={
|
||||
Array [
|
||||
Object {
|
||||
|
@ -545,7 +545,7 @@ exports[`Stat Items rendering kpis with charts it renders the default widget 1`]
|
|||
<div
|
||||
className="euiFlexItem sc-bxivhb bQCHAr"
|
||||
>
|
||||
<Memo()
|
||||
<Component
|
||||
barChart={
|
||||
Array [
|
||||
Object {
|
||||
|
@ -581,7 +581,7 @@ exports[`Stat Items rendering kpis with charts it renders the default widget 1`]
|
|||
<div
|
||||
className="sc-bwzfXH gluXfG"
|
||||
>
|
||||
<Memo()
|
||||
<Component
|
||||
data={
|
||||
Array [
|
||||
Object {
|
||||
|
@ -660,11 +660,11 @@ exports[`Stat Items rendering kpis with charts it renders the default widget 1`]
|
|||
</EuiFlexGroup>
|
||||
</Styled(EuiFlexGroup)>
|
||||
</ChartHolder>
|
||||
</Memo()>
|
||||
</Component>
|
||||
</div>
|
||||
</styled.div>
|
||||
</AutoSizer>
|
||||
</Memo()>
|
||||
</Component>
|
||||
</div>
|
||||
</EuiFlexItem>
|
||||
</Styled(EuiFlexItem)>
|
||||
|
@ -675,7 +675,7 @@ exports[`Stat Items rendering kpis with charts it renders the default widget 1`]
|
|||
<div
|
||||
className="euiFlexItem sc-bxivhb bQCHAr"
|
||||
>
|
||||
<Memo()
|
||||
<Component
|
||||
areaChart={
|
||||
Array [
|
||||
Object {
|
||||
|
@ -727,7 +727,7 @@ exports[`Stat Items rendering kpis with charts it renders the default widget 1`]
|
|||
<div
|
||||
className="sc-bwzfXH gluXfG"
|
||||
>
|
||||
<Memo()
|
||||
<Component
|
||||
data={
|
||||
Array [
|
||||
Object {
|
||||
|
@ -769,7 +769,7 @@ exports[`Stat Items rendering kpis with charts it renders the default widget 1`]
|
|||
]
|
||||
}
|
||||
>
|
||||
<Memo()
|
||||
<Component
|
||||
data={
|
||||
Array [
|
||||
Object {
|
||||
|
@ -811,11 +811,11 @@ exports[`Stat Items rendering kpis with charts it renders the default widget 1`]
|
|||
]
|
||||
}
|
||||
/>
|
||||
</Memo()>
|
||||
</Component>
|
||||
</div>
|
||||
</styled.div>
|
||||
</AutoSizer>
|
||||
</Memo()>
|
||||
</Component>
|
||||
</div>
|
||||
</EuiFlexItem>
|
||||
</Styled(EuiFlexItem)>
|
||||
|
@ -826,5 +826,5 @@ exports[`Stat Items rendering kpis with charts it renders the default widget 1`]
|
|||
</div>
|
||||
</EuiFlexItem>
|
||||
</Styled(EuiFlexItem)>
|
||||
</Memo()>
|
||||
</Component>
|
||||
`;
|
||||
|
|
34
yarn.lock
34
yarn.lock
|
@ -5065,6 +5065,11 @@ array-equal@^1.0.0:
|
|||
resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93"
|
||||
integrity sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=
|
||||
|
||||
array-filter@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-1.0.0.tgz#baf79e62e6ef4c2a4c0b831232daffec251f9d83"
|
||||
integrity sha1-uveeYubvTCpMC4MSMtr/7CUfnYM=
|
||||
|
||||
array-filter@~0.0.0:
|
||||
version "0.0.1"
|
||||
resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec"
|
||||
|
@ -10148,10 +10153,10 @@ env-variable@0.0.x:
|
|||
resolved "https://registry.yarnpkg.com/env-variable/-/env-variable-0.0.5.tgz#913dd830bef11e96a039c038d4130604eba37f88"
|
||||
integrity sha512-zoB603vQReOFvTg5xMl9I1P2PnHsHQQKTEowsKKD7nseUfJq6UWzK+4YtlWUO1nhiQUxe6XMkk+JleSZD1NZFA==
|
||||
|
||||
enzyme-adapter-react-16@^1.10.0:
|
||||
version "1.13.2"
|
||||
resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.13.2.tgz#8a574d7cbbef7ef0cab2022e9bfc12aeaebb7ae5"
|
||||
integrity sha512-h0neTuAAFfQUgEZ+PPHVIMDFJ9+CGafI8AjojNlSVh4Fd1pLDgtl2OeVkm4yKF7RSgzrPAwugq4JW8Jjo2iRJA==
|
||||
enzyme-adapter-react-16@^1.13.1:
|
||||
version "1.13.1"
|
||||
resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.13.1.tgz#2e8ee300e38674b9914ae52b04af9493050355e2"
|
||||
integrity sha512-DCKbkiVlfLTbn4SXO8mXDQx1SmmwON5oKXn2QfQSMCt8eTYGwUXy/OBGSuss6KKwY5w5QfK1sQFxhgFOkMCjrw==
|
||||
dependencies:
|
||||
enzyme-adapter-utils "^1.12.0"
|
||||
has "^1.0.3"
|
||||
|
@ -10160,7 +10165,7 @@ enzyme-adapter-react-16@^1.10.0:
|
|||
prop-types "^15.7.2"
|
||||
react-is "^16.8.6"
|
||||
react-test-renderer "^16.0.0-0"
|
||||
semver "^5.7.0"
|
||||
semver "^5.6.0"
|
||||
|
||||
enzyme-adapter-utils@^1.10.0:
|
||||
version "1.10.0"
|
||||
|
@ -10192,18 +10197,20 @@ enzyme-to-json@^3.3.4:
|
|||
dependencies:
|
||||
lodash "^4.17.4"
|
||||
|
||||
enzyme@^3.7.0:
|
||||
version "3.8.0"
|
||||
resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-3.8.0.tgz#646d2d5d0798cb98fdec39afcee8a53237b47ad5"
|
||||
integrity sha512-bfsWo5nHyZm1O1vnIsbwdfhU989jk+squU9NKvB+Puwo5j6/Wg9pN5CO0YJelm98Dao3NPjkDZk+vvgwpMwYxw==
|
||||
enzyme@^3.9.0:
|
||||
version "3.9.0"
|
||||
resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-3.9.0.tgz#2b491f06ca966eb56b6510068c7894a7e0be3909"
|
||||
integrity sha512-JqxI2BRFHbmiP7/UFqvsjxTirWoM1HfeaJrmVSZ9a1EADKkZgdPcAuISPMpoUiHlac9J4dYt81MC5BBIrbJGMg==
|
||||
dependencies:
|
||||
array.prototype.flat "^1.2.1"
|
||||
cheerio "^1.0.0-rc.2"
|
||||
function.prototype.name "^1.1.0"
|
||||
has "^1.0.3"
|
||||
html-element-map "^1.0.0"
|
||||
is-boolean-object "^1.0.0"
|
||||
is-callable "^1.1.4"
|
||||
is-number-object "^1.0.3"
|
||||
is-regex "^1.0.4"
|
||||
is-string "^1.0.4"
|
||||
is-subset "^0.1.1"
|
||||
lodash.escape "^4.0.1"
|
||||
|
@ -13755,6 +13762,13 @@ hpack.js@^2.1.6:
|
|||
readable-stream "^2.0.1"
|
||||
wbuf "^1.1.0"
|
||||
|
||||
html-element-map@^1.0.0:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/html-element-map/-/html-element-map-1.0.1.tgz#3c4fcb4874ebddfe4283b51c8994e7713782b592"
|
||||
integrity sha512-BZSfdEm6n706/lBfXKWa4frZRZcT5k1cOusw95ijZsHlI+GdgY0v95h6IzO3iIDf2ROwq570YTwqNPqHcNMozw==
|
||||
dependencies:
|
||||
array-filter "^1.0.0"
|
||||
|
||||
html-encoding-sniffer@^1.0.1, html-encoding-sniffer@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8"
|
||||
|
@ -23431,7 +23445,7 @@ semver@^5.5.1:
|
|||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.1.tgz#7dfdd8814bdb7cabc7be0fb1d734cfb66c940477"
|
||||
integrity sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==
|
||||
|
||||
semver@^5.6.0, semver@^5.7.0:
|
||||
semver@^5.6.0:
|
||||
version "5.7.0"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b"
|
||||
integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue