mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Upgrade EUI to 9.8.0 (#34486)
* upgrade eui to 9.8.0 * test selector updates
This commit is contained in:
parent
5bb9947b50
commit
865e6739fd
9 changed files with 70 additions and 14 deletions
|
@ -100,7 +100,7 @@
|
|||
"@babel/polyfill": "^7.2.5",
|
||||
"@babel/register": "^7.0.0",
|
||||
"@elastic/datemath": "5.0.2",
|
||||
"@elastic/eui": "9.7.1",
|
||||
"@elastic/eui": "9.8.0",
|
||||
"@elastic/filesaver": "1.1.2",
|
||||
"@elastic/good": "8.1.1-kibana2",
|
||||
"@elastic/numeral": "2.3.2",
|
||||
|
|
|
@ -38,16 +38,16 @@ export function ComboBoxProvider({ getService }) {
|
|||
await this.openOptionsList(comboBoxElement);
|
||||
|
||||
if (value !== undefined) {
|
||||
const options = await find.allByCssSelector(`.euiComboBoxOption[title^="${value.toString().trim()}"]`);
|
||||
const options = await find.allByCssSelector(`.euiFilterSelectItem[title^="${value.toString().trim()}"]`);
|
||||
|
||||
if (options.length > 0) {
|
||||
await options[0].click();
|
||||
} else {
|
||||
// if it doesn't find the item which text starts with value, it will choose the first option
|
||||
await find.clickByCssSelector('.euiComboBoxOption');
|
||||
await find.clickByCssSelector('.euiFilterSelectItem');
|
||||
}
|
||||
} else {
|
||||
await find.clickByCssSelector('.euiComboBoxOption');
|
||||
await find.clickByCssSelector('.euiFilterSelectItem');
|
||||
}
|
||||
|
||||
await this.closeOptionsList(comboBoxElement);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
},
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@elastic/eui": "9.7.1",
|
||||
"@elastic/eui": "9.8.0",
|
||||
"react": "^16.8.0",
|
||||
"react-dom": "^16.8.0"
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
},
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@elastic/eui": "9.7.1",
|
||||
"@elastic/eui": "9.8.0",
|
||||
"react": "^16.8.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@elastic/eui": "9.7.1",
|
||||
"@elastic/eui": "9.8.0",
|
||||
"react": "^16.8.0"
|
||||
},
|
||||
"scripts": {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
},
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@elastic/eui": "9.7.1",
|
||||
"@elastic/eui": "9.8.0",
|
||||
"react": "^16.8.0",
|
||||
"react-dom": "^16.8.0"
|
||||
}
|
||||
|
|
|
@ -144,7 +144,7 @@
|
|||
"@babel/register": "^7.0.0",
|
||||
"@babel/runtime": "^7.3.4",
|
||||
"@elastic/datemath": "5.0.2",
|
||||
"@elastic/eui": "9.7.1",
|
||||
"@elastic/eui": "9.8.0",
|
||||
"@elastic/node-crypto": "0.1.2",
|
||||
"@elastic/numeral": "2.3.2",
|
||||
"@kbn/babel-preset": "1.0.0",
|
||||
|
|
|
@ -153,7 +153,7 @@ export function SecurityPageProvider({ getService, getPageObjects }) {
|
|||
const btn = await find.byButtonText(privilege);
|
||||
await btn.click();
|
||||
|
||||
// const options = await find.byCssSelector(`.euiComboBoxOption`);
|
||||
// const options = await find.byCssSelector(`.euiFilterSelectItem`);
|
||||
// Object.entries(options).forEach(([key, prop]) => {
|
||||
// console.log({ key, proto: prop.__proto__ });
|
||||
// });
|
||||
|
|
64
yarn.lock
64
yarn.lock
|
@ -1207,6 +1207,14 @@
|
|||
pirates "^4.0.0"
|
||||
source-map-support "^0.5.9"
|
||||
|
||||
"@babel/runtime-corejs2@^7.4.2":
|
||||
version "7.4.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/runtime-corejs2/-/runtime-corejs2-7.4.3.tgz#40271fc260e570fb356da984e42e5990bd275860"
|
||||
integrity sha512-anTLTF7IK8Hd5f73zpPzt875I27UaaTWARJlfMGgnmQhvEe1uNHQRKBUbXL0Gc0VEYiVzsHsTPso5XdK8NGvFg==
|
||||
dependencies:
|
||||
core-js "^2.6.5"
|
||||
regenerator-runtime "^0.13.2"
|
||||
|
||||
"@babel/runtime@7.0.0-beta.54":
|
||||
version "7.0.0-beta.54"
|
||||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.0.0-beta.54.tgz#39ebb42723fe7ca4b3e1b00e967e80138d47cadf"
|
||||
|
@ -1331,13 +1339,14 @@
|
|||
tabbable "^1.1.0"
|
||||
uuid "^3.1.0"
|
||||
|
||||
"@elastic/eui@9.7.1":
|
||||
version "9.7.1"
|
||||
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-9.7.1.tgz#817b5018303a2c6160011e201a8d21fca2f3e47b"
|
||||
integrity sha512-yYTnW1jqv586M8dD4TxTa/9wkj84gJuHeDh9F13z7XGeZ/clUN0XP43Y5Jzv80Q3M80VlEuTpABYMGpPqBAw8w==
|
||||
"@elastic/eui@9.8.0":
|
||||
version "9.8.0"
|
||||
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-9.8.0.tgz#669061a2bbd2ccb535f4550295128357aea6ec46"
|
||||
integrity sha512-QsEnmA5Xokj8IJZQGt1+8huDuaGpOpPyJNLCvluzRt1Zvc09ooxc0yisUqny8cUU0CxiJGfn790G1VR+m3BAQQ==
|
||||
dependencies:
|
||||
"@types/lodash" "^4.14.116"
|
||||
"@types/numeral" "^0.0.25"
|
||||
"@types/react-beautiful-dnd" "^10.1.0"
|
||||
classnames "^2.2.5"
|
||||
core-js "^2.5.1"
|
||||
highlight.js "^9.12.0"
|
||||
|
@ -1347,6 +1356,7 @@
|
|||
numeral "^2.0.6"
|
||||
prop-types "^15.6.0"
|
||||
react-ace "^5.5.0"
|
||||
react-beautiful-dnd "^10.1.0"
|
||||
react-color "^2.13.8"
|
||||
react-focus-lock "^1.17.7"
|
||||
react-input-autosize "^2.2.1"
|
||||
|
@ -3250,6 +3260,13 @@
|
|||
resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.2.tgz#690a1475b84f2a884fd07cd797c00f5f31356ea8"
|
||||
integrity sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==
|
||||
|
||||
"@types/react-beautiful-dnd@^10.1.0":
|
||||
version "10.1.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/react-beautiful-dnd/-/react-beautiful-dnd-10.1.1.tgz#7afae39a4247f30c13b8bbb726ccd1b8cda9d4a5"
|
||||
integrity sha512-75XELhEIWKTkyd1GdVZFvS1MtJwDs9tM37BbIat8mevcw+uH5dcJzZiwESHIWAzySHawS48nkKCQk/bEDp13Mw==
|
||||
dependencies:
|
||||
"@types/react" "*"
|
||||
|
||||
"@types/react-dom@^16.8.0":
|
||||
version "16.8.2"
|
||||
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.8.2.tgz#9bd7d33f908b243ff0692846ef36c81d4941ad12"
|
||||
|
@ -8185,6 +8202,13 @@ css-box-model@^1.0.0:
|
|||
resolved "https://registry.yarnpkg.com/css-box-model/-/css-box-model-1.0.0.tgz#60142814f2b25be00c4aac65ea1a55a531b18922"
|
||||
integrity sha512-MGipbCM6/HGmsOwN6Enq1OvNKy8H5Q1XKoyBszxwv2efly7ZVg+HcFILX8O6S0xfj27l1+6P7FyCjcQ90m5HBQ==
|
||||
|
||||
css-box-model@^1.1.1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/css-box-model/-/css-box-model-1.1.1.tgz#c9fd8e7a8b1d59d41d6812fd1765433f671b2ee0"
|
||||
integrity sha512-ZxbuLFeAPEDb0wPbGfT7783Vb00MVAkvOlMKwr0kA2PD5EGxk6P3MAhedvVuyVJCWb54bb+6HQ7pdPYENf8AZw==
|
||||
dependencies:
|
||||
tiny-invariant "^1.0.3"
|
||||
|
||||
css-color-keywords@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/css-color-keywords/-/css-color-keywords-1.0.0.tgz#fea2616dc676b2962686b3af8dbdbe180b244e05"
|
||||
|
@ -17068,6 +17092,11 @@ memoize-one@^5.0.0:
|
|||
resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-5.0.1.tgz#35a709ffb6e5f0cb79f9679a96f09ec3a35addfa"
|
||||
integrity sha512-S3plzyksLOSF4pkf1Xlb7mA8ZRKZlgp3ebg7rULbfwPT8Ww7uZz5CbLgRKaR92GeXpsNiFbfCRWf/uOrCYIbRg==
|
||||
|
||||
memoize-one@^5.0.1:
|
||||
version "5.0.2"
|
||||
resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-5.0.2.tgz#6aba5276856d72fb44ead3efab86432f94ba203d"
|
||||
integrity sha512-o7lldN4fs/axqctc03NF+PMhd2veRrWeJ2n2GjEzUPBD4F9rmNg4A+bQCACIzwjHJEXuYv4aFFMaH35KZfHUrw==
|
||||
|
||||
memoizee@0.4.X:
|
||||
version "0.4.14"
|
||||
resolved "https://registry.yarnpkg.com/memoizee/-/memoizee-0.4.14.tgz#07a00f204699f9a95c2d9e77218271c7cd610d57"
|
||||
|
@ -20308,6 +20337,20 @@ react-apollo@^2.1.4:
|
|||
lodash "^4.17.10"
|
||||
prop-types "^15.6.0"
|
||||
|
||||
react-beautiful-dnd@^10.1.0:
|
||||
version "10.1.1"
|
||||
resolved "https://registry.yarnpkg.com/react-beautiful-dnd/-/react-beautiful-dnd-10.1.1.tgz#d753088d77d7632e77cf8a8935fafcffa38f574b"
|
||||
integrity sha512-TdE06Shfp56wm28EzjgC56EEMgGI5PDHejJ2bxuAZvZr8CVsbksklsJC06Hxf0MSL7FHbflL/RpkJck9isuxHg==
|
||||
dependencies:
|
||||
"@babel/runtime-corejs2" "^7.4.2"
|
||||
css-box-model "^1.1.1"
|
||||
memoize-one "^5.0.1"
|
||||
prop-types "^15.6.1"
|
||||
raf-schd "^4.0.0"
|
||||
react-redux "^5.0.7"
|
||||
redux "^4.0.1"
|
||||
tiny-invariant "^1.0.4"
|
||||
|
||||
react-beautiful-dnd@^8.0.7:
|
||||
version "8.0.7"
|
||||
resolved "https://registry.yarnpkg.com/react-beautiful-dnd/-/react-beautiful-dnd-8.0.7.tgz#2cc7ba62bffe08d3dad862fd8f48204440901b43"
|
||||
|
@ -21351,6 +21394,14 @@ redux@4.0.0, redux@^4.0.0:
|
|||
loose-envify "^1.1.0"
|
||||
symbol-observable "^1.2.0"
|
||||
|
||||
redux@^4.0.1:
|
||||
version "4.0.1"
|
||||
resolved "https://registry.yarnpkg.com/redux/-/redux-4.0.1.tgz#436cae6cc40fbe4727689d7c8fae44808f1bfef5"
|
||||
integrity sha512-R7bAtSkk7nY6O/OYMVR9RiBI+XghjF9rlbl5806HJbQph0LJVHZrU5oaO4q70eUKiqMRqm4y07KLTlMZ2BlVmg==
|
||||
dependencies:
|
||||
loose-envify "^1.4.0"
|
||||
symbol-observable "^1.2.0"
|
||||
|
||||
refractor@^2.4.1:
|
||||
version "2.8.0"
|
||||
resolved "https://registry.yarnpkg.com/refractor/-/refractor-2.8.0.tgz#29d7b2254e823edd2e3e476af286af1c11472bfa"
|
||||
|
@ -24282,6 +24333,11 @@ tiny-invariant@^0.0.3:
|
|||
resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-0.0.3.tgz#4c7283c950e290889e9e94f64d3586ec9156cf44"
|
||||
integrity sha512-SA2YwvDrCITM9fTvHTHRpq9W6L2fBsClbqm3maT5PZux4Z73SPPDYwJMtnoWh6WMgmCkJij/LaOlWiqJqFMK8g==
|
||||
|
||||
tiny-invariant@^1.0.3, tiny-invariant@^1.0.4:
|
||||
version "1.0.4"
|
||||
resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.0.4.tgz#346b5415fd93cb696b0c4e8a96697ff590f92463"
|
||||
integrity sha512-lMhRd/djQJ3MoaHEBrw8e2/uM4rs9YMNk0iOr8rHQ0QdbM7D4l0gFl3szKdeixrlyfm9Zqi4dxHCM2qVG8ND5g==
|
||||
|
||||
tiny-lr@^1.1.1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/tiny-lr/-/tiny-lr-1.1.1.tgz#9fa547412f238fedb068ee295af8b682c98b2aab"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue