Upgrade EUI to 0.0.52 (#19772)

* Revert "Revert "upping eui to 0.0.52 and updating snapshots (#19761)" (#19770)"
This reverts commit c853072ca5, reintroducing EUI 0.0.52.
* Rename visualize page object selectors for manipulating combo box.
This commit is contained in:
CJ Cenizal 2018-06-12 10:47:20 -07:00 committed by GitHub
parent 6ed5e7095b
commit 647d3366eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 59 additions and 20 deletions

View file

@ -77,7 +77,7 @@
"url": "https://github.com/elastic/kibana.git"
},
"dependencies": {
"@elastic/eui": "v0.0.51",
"@elastic/eui": "v0.0.52",
"@elastic/filesaver": "1.1.2",
"@elastic/numeral": "2.3.2",
"@elastic/ui-ace": "0.2.3",

View file

@ -3,6 +3,7 @@
exports[`after fetch hideWriteControls 1`] = `
<EuiPage
data-test-subj="dashboardLandingPage"
restrictWidth={false}
>
<EuiFlexGroup
alignItems="flexEnd"
@ -115,6 +116,7 @@ exports[`after fetch hideWriteControls 1`] = `
exports[`after fetch renders call to action when no dashboards exist 1`] = `
<EuiPage
data-test-subj="dashboardLandingPage"
restrictWidth={false}
>
<EuiFlexGroup
alignItems="flexEnd"
@ -263,6 +265,7 @@ exports[`after fetch renders call to action when no dashboards exist 1`] = `
exports[`after fetch renders table rows 1`] = `
<EuiPage
data-test-subj="dashboardLandingPage"
restrictWidth={false}
>
<EuiFlexGroup
alignItems="flexEnd"
@ -399,6 +402,7 @@ exports[`after fetch renders table rows 1`] = `
exports[`after fetch renders warning when listingLimit is exceeded 1`] = `
<EuiPage
data-test-subj="dashboardLandingPage"
restrictWidth={false}
>
<EuiFlexGroup
alignItems="flexEnd"
@ -566,6 +570,7 @@ exports[`after fetch renders warning when listingLimit is exceeded 1`] = `
exports[`initialFilter 1`] = `
<EuiPage
data-test-subj="dashboardLandingPage"
restrictWidth={false}
>
<EuiFlexGroup
alignItems="flexEnd"
@ -689,6 +694,7 @@ exports[`initialFilter 1`] = `
exports[`renders table in loading state 1`] = `
<EuiPage
data-test-subj="dashboardLandingPage"
restrictWidth={false}
>
<EuiFlexGroup
alignItems="flexEnd"

View file

@ -36,6 +36,7 @@ exports[`DashboardPanel matches snapshot 1`] = `
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiButtonIcon__icon"
focusable="false"
height="16"
viewBox="0 0 16 16"
width="16"

View file

@ -54,6 +54,7 @@ exports[`renders DashboardSaveModal 1`] = `
data-test-subj="dashboardDescription"
fullWidth={false}
onChange={[Function]}
resize="vertical"
value="dash description"
/>
</EuiFormRow>

View file

@ -21,6 +21,7 @@ Array [
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiCallOutHeader__icon"
focusable="false"
height="16"
viewBox="0 0 16 16"
width="16"
@ -223,6 +224,7 @@ Array [
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiCallOutHeader__icon"
focusable="false"
height="16"
viewBox="0 0 16 16"
width="16"
@ -341,6 +343,7 @@ Array [
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiCallOutHeader__icon"
focusable="false"
height="16"
viewBox="0 0 16 16"
width="16"

View file

@ -3,6 +3,7 @@
exports[`directories should not render directory entry when showOnHomePage is false 1`] = `
<EuiPage
className="home"
restrictWidth={false}
>
<AddData
apmUiEnabled={true}
@ -113,6 +114,7 @@ exports[`directories should not render directory entry when showOnHomePage is fa
exports[`directories should render ADMIN directory entry in "Manage" panel 1`] = `
<EuiPage
className="home"
restrictWidth={false}
>
<AddData
apmUiEnabled={true}
@ -241,6 +243,7 @@ exports[`directories should render ADMIN directory entry in "Manage" panel 1`] =
exports[`directories should render DATA directory entry in "Explore Data" panel 1`] = `
<EuiPage
className="home"
restrictWidth={false}
>
<AddData
apmUiEnabled={true}
@ -369,6 +372,7 @@ exports[`directories should render DATA directory entry in "Explore Data" panel
exports[`should not contain RecentlyAccessed panel when there is no recentlyAccessed history 1`] = `
<EuiPage
className="home"
restrictWidth={false}
>
<AddData
apmUiEnabled={true}
@ -479,6 +483,7 @@ exports[`should not contain RecentlyAccessed panel when there is no recentlyAcce
exports[`should render home component 1`] = `
<EuiPage
className="home"
restrictWidth={false}
>
<React.Fragment>
<RecentlyAccessed

View file

@ -3,6 +3,7 @@
exports[`isCloudEnabled is false should not render instruction toggle when ON_PREM_ELASTIC_CLOUD instructions are not provided 1`] = `
<EuiPage
className="home"
restrictWidth={false}
>
<EuiLink
color="primary"
@ -71,6 +72,7 @@ exports[`isCloudEnabled is false should not render instruction toggle when ON_PR
exports[`isCloudEnabled is false should render ON_PREM instructions with instruction toggle 1`] = `
<EuiPage
className="home"
restrictWidth={false}
>
<EuiLink
color="primary"
@ -158,6 +160,7 @@ exports[`isCloudEnabled is false should render ON_PREM instructions with instruc
exports[`should render ELASTIC_CLOUD instructions when isCloudEnabled is true 1`] = `
<EuiPage
className="home"
restrictWidth={false}
>
<EuiLink
color="primary"

View file

@ -134,6 +134,7 @@ exports[`Table should render the boolean template (true) 1`] = `
<dot
aria-label="Is searchable"
className="euiIcon euiIcon--medium euiIcon--secondary"
focusable="false"
height="16"
style={null}
viewBox="0 0 16 16"

View file

@ -123,7 +123,9 @@ exports[`ObjectsTable relationships should show the flyout 1`] = `
`;
exports[`ObjectsTable should render normally 1`] = `
<EuiPage>
<EuiPage
restrictWidth={false}
>
<EuiPageContent
horizontalPosition="center"
panelPaddingSize="l"

View file

@ -26,6 +26,7 @@ exports[`<EditorOptionsGroup/> renders as expected 1`] = `
>
<svg
class="euiIcon euiIcon--medium"
focusable="false"
height="16"
viewBox="0 0 16 16"
width="16"
@ -107,6 +108,7 @@ exports[`<EditorOptionsGroup/> renders as expected with actions 1`] = `
>
<svg
class="euiIcon euiIcon--medium"
focusable="false"
height="16"
viewBox="0 0 16 16"
width="16"
@ -148,6 +150,7 @@ exports[`<EditorOptionsGroup/> renders as expected with actions 1`] = `
<svg
aria-hidden="true"
class="euiIcon euiIcon--medium euiButtonIcon__icon"
focusable="false"
height="16"
viewBox="0 0 16 16"
width="16"
@ -214,6 +217,7 @@ exports[`<EditorOptionsGroup/> renders as expected with initial collapsed 1`] =
>
<svg
class="euiIcon euiIcon--medium"
focusable="false"
height="16"
viewBox="0 0 16 16"
width="16"

View file

@ -261,14 +261,14 @@ export function VisualizePageProvider({ getService, getPageObjects }) {
async clearComboBox(comboBoxSelector) {
const comboBox = await testSubjects.find(comboBoxSelector);
const clearBtn = await comboBox.findByCssSelector('button.euiFormControlLayout__clear');
const clearBtn = await comboBox.findByCssSelector('button.euiFormControlLayoutClearButton');
await clearBtn.click();
}
async closeComboBoxOptionsList(comboBoxElement) {
const isOptionsListOpen = await testSubjects.exists('comboBoxOptionsList');
if (isOptionsListOpen) {
const closeBtn = await comboBoxElement.findByCssSelector('button.euiFormControlLayout__icon');
const closeBtn = await comboBoxElement.findByCssSelector('button.euiFormControlLayoutCustomIcon');
await closeBtn.click();
}
}

View file

@ -76,7 +76,7 @@
"yargs": "4.7.1"
},
"dependencies": {
"@elastic/eui": "0.0.51",
"@elastic/eui": "0.0.52",
"@elastic/node-crypto": "0.1.2",
"@elastic/node-phantom-simple": "2.2.4",
"@elastic/numeral": "2.3.2",

View file

@ -262,6 +262,7 @@ exports[`DetailView should render with data 1`] = `
<svg
aria-hidden="true"
className="euiIcon euiIcon--medium euiButton__icon"
focusable="false"
height="32"
style={
Object {

View file

@ -1,5 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`LicenseStatus component should display display warning is expired 1`] = `"<div><div class=\\"euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--justifyContentSpaceAround euiFlexGroup--directionRow euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><div class=\\"euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsCenter euiFlexGroup--directionRow euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><svg class=\\"euiIcon euiIcon--medium euiIcon--danger\\" xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 16 16\\"><g fill-rule=\\"evenodd\\"><path d=\\"M7.5 2.236L1.618 14h11.764L7.5 2.236zm.894-.447l5.882 11.764A1 1 0 0 1 13.382 15H1.618a1 1 0 0 1-.894-1.447L6.606 1.789a1 1 0 0 1 1.788 0z\\"></path><path d=\\"M7 6h1v5H7zM7 12h1v1H7z\\"></path></g></svg></div><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><h2 class=\\"euiTitle euiTitle--large\\">Your Platinum license has expired</h2></div></div></div></div><div class=\\"euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--justifyContentSpaceAround euiFlexGroup--directionRow euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><div class=\\"euiText\\"><span class=\\"euiTextColor euiTextColor--subdued\\"><span>Your license expired on <strong></strong></span></span></div></div></div><div class=\\"euiSpacer euiSpacer--l\\"></div></div>"`;
exports[`LicenseStatus component should display display warning is expired 1`] = `"<div><div class=\\"euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--justifyContentSpaceAround euiFlexGroup--directionRow euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><div class=\\"euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsCenter euiFlexGroup--directionRow euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><svg class=\\"euiIcon euiIcon--medium euiIcon--danger\\" focusable=\\"false\\" xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 16 16\\"><g fill-rule=\\"evenodd\\"><path d=\\"M7.5 2.236L1.618 14h11.764L7.5 2.236zm.894-.447l5.882 11.764A1 1 0 0 1 13.382 15H1.618a1 1 0 0 1-.894-1.447L6.606 1.789a1 1 0 0 1 1.788 0z\\"></path><path d=\\"M7 6h1v5H7zM7 12h1v1H7z\\"></path></g></svg></div><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><h2 class=\\"euiTitle euiTitle--large\\">Your Platinum license has expired</h2></div></div></div></div><div class=\\"euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--justifyContentSpaceAround euiFlexGroup--directionRow euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><div class=\\"euiText\\"><span class=\\"euiTextColor euiTextColor--subdued\\"><span>Your license expired on <strong></strong></span></span></div></div></div><div class=\\"euiSpacer euiSpacer--l\\"></div></div>"`;
exports[`LicenseStatus component should display normally when license is active 1`] = `"<div><div class=\\"euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--justifyContentSpaceAround euiFlexGroup--directionRow euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><div class=\\"euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsCenter euiFlexGroup--directionRow euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><svg class=\\"euiIcon euiIcon--medium euiIcon--success\\" width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 16 16\\" xmlns=\\"http://www.w3.org/2000/svg\\"><path d=\\"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm-1.125-5a.377.377 0 0 0 .266-.11l5.25-5.25a.376.376 0 0 0-.531-.53l-4.985 4.985L4.141 7.36a.376.376 0 0 0-.531.53l3 3c.073.073.17.11.265.11z\\" fill-rule=\\"evenodd\\"></path></svg></div><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><h2 class=\\"euiTitle euiTitle--large\\">Your Gold license is active</h2></div></div></div></div><div class=\\"euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--justifyContentSpaceAround euiFlexGroup--directionRow euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><div class=\\"euiText\\"><span class=\\"euiTextColor euiTextColor--subdued\\"><span>Your license will expire on <strong>October 12, 2099 7:00 PM EST</strong></span></span></div></div></div><div class=\\"euiSpacer euiSpacer--l\\"></div></div>"`;
exports[`LicenseStatus component should display normally when license is active 1`] = `"<div><div class=\\"euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--justifyContentSpaceAround euiFlexGroup--directionRow euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><div class=\\"euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsCenter euiFlexGroup--directionRow euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><svg class=\\"euiIcon euiIcon--medium euiIcon--success\\" focusable=\\"false\\" width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 16 16\\" xmlns=\\"http://www.w3.org/2000/svg\\"><path d=\\"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm-1.125-5a.377.377 0 0 0 .266-.11l5.25-5.25a.376.376 0 0 0-.531-.53l-4.985 4.985L4.141 7.36a.376.376 0 0 0-.531.53l3 3c.073.073.17.11.265.11z\\" fill-rule=\\"evenodd\\"></path></svg></div><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><h2 class=\\"euiTitle euiTitle--large\\">Your Gold license is active</h2></div></div></div></div><div class=\\"euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--justifyContentSpaceAround euiFlexGroup--directionRow euiFlexGroup--responsive\\"><div class=\\"euiFlexItem euiFlexItem--flexGrowZero\\"><div class=\\"euiText\\"><span class=\\"euiTextColor euiTextColor--subdued\\"><span>Your license will expire on <strong>October 12, 2099 7:00 PM EST</strong></span></span></div></div></div><div class=\\"euiSpacer euiSpacer--l\\"></div></div>"`;

View file

@ -132,6 +132,7 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
<cross
aria-hidden="true"
className="euiIcon euiIcon--medium euiButtonIcon__icon"
focusable="false"
height="16"
style={
Object {
@ -146,6 +147,7 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
<svg
aria-hidden="true"
className="euiIcon euiIcon--medium euiButtonIcon__icon"
focusable="false"
height="16"
style={
Object {
@ -367,6 +369,7 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
<importAction
aria-hidden="true"
className="euiIcon euiIcon--large euiFilePicker__icon"
focusable="false"
height="16"
style={
Object {
@ -380,6 +383,7 @@ exports[`UploadLicense should display a modal when license requires acknowledgem
<svg
aria-hidden="true"
className="euiIcon euiIcon--large euiFilePicker__icon"
focusable="false"
height="16"
style={
Object {
@ -687,6 +691,7 @@ exports[`UploadLicense should display an error when ES says license is expired 1
<importAction
aria-hidden="true"
className="euiIcon euiIcon--large euiFilePicker__icon"
focusable="false"
height="16"
style={
Object {
@ -700,6 +705,7 @@ exports[`UploadLicense should display an error when ES says license is expired 1
<svg
aria-hidden="true"
className="euiIcon euiIcon--large euiFilePicker__icon"
focusable="false"
height="16"
style={
Object {
@ -1007,6 +1013,7 @@ exports[`UploadLicense should display an error when ES says license is invalid 1
<importAction
aria-hidden="true"
className="euiIcon euiIcon--large euiFilePicker__icon"
focusable="false"
height="16"
style={
Object {
@ -1020,6 +1027,7 @@ exports[`UploadLicense should display an error when ES says license is invalid 1
<svg
aria-hidden="true"
className="euiIcon euiIcon--large euiFilePicker__icon"
focusable="false"
height="16"
style={
Object {
@ -1327,6 +1335,7 @@ exports[`UploadLicense should display an error when submitting invalid JSON 1`]
<importAction
aria-hidden="true"
className="euiIcon euiIcon--large euiFilePicker__icon"
focusable="false"
height="16"
style={
Object {
@ -1340,6 +1349,7 @@ exports[`UploadLicense should display an error when submitting invalid JSON 1`]
<svg
aria-hidden="true"
className="euiIcon euiIcon--large euiFilePicker__icon"
focusable="false"
height="16"
style={
Object {
@ -1647,6 +1657,7 @@ exports[`UploadLicense should display error when ES returns error 1`] = `
<importAction
aria-hidden="true"
className="euiIcon euiIcon--large euiFilePicker__icon"
focusable="false"
height="16"
style={
Object {
@ -1660,6 +1671,7 @@ exports[`UploadLicense should display error when ES returns error 1`] = `
<svg
aria-hidden="true"
className="euiIcon euiIcon--large euiFilePicker__icon"
focusable="false"
height="16"
style={
Object {

View file

@ -2,7 +2,7 @@
exports[`NoData should show a default message if reason is unknown 1`] = `
<div
class="euiPage"
class="euiPage euiPage--widthIsNotRestricted"
>
<div
class="euiPageBody"
@ -12,6 +12,7 @@ exports[`NoData should show a default message if reason is unknown 1`] = `
>
<svg
class="euiIcon euiIcon--xxLarge"
focusable="false"
height="32"
viewBox="0 0 32 32"
width="32"
@ -81,7 +82,7 @@ exports[`NoData should show a default message if reason is unknown 1`] = `
exports[`NoData should show text next to the spinner while checking a setting 1`] = `
<div
class="euiPage"
class="euiPage euiPage--widthIsNotRestricted"
>
<div
class="euiPageBody"
@ -91,6 +92,7 @@ exports[`NoData should show text next to the spinner while checking a setting 1`
>
<svg
class="euiIcon euiIcon--xxLarge"
focusable="false"
height="32"
viewBox="0 0 32 32"
width="32"

View file

@ -2,7 +2,7 @@
exports[`PageLoading should show a simple page loading component 1`] = `
<div
class="euiPage"
class="euiPage euiPage--widthIsNotRestricted"
>
<div
class="euiPageBody"

View file

@ -10,11 +10,10 @@
esutils "^2.0.2"
js-tokens "^3.0.0"
"@elastic/eui@0.0.51":
version "0.0.51"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-0.0.51.tgz#5d809af270dd9994a609fd01eaa84e21a62fff98"
"@elastic/eui@0.0.52":
version "0.0.52"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-0.0.52.tgz#c34c6cd482b458015e0d2b410f98652053994138"
dependencies:
brace "^0.10.0"
classnames "^2.2.5"
core-js "^2.5.1"
focus-trap-react "^3.0.4"
@ -1096,7 +1095,7 @@ brace-expansion@^1.0.0, brace-expansion@^1.1.7:
balanced-match "^1.0.0"
concat-map "0.0.1"
brace@0.10.0, brace@^0.10.0:
brace@0.10.0:
version "0.10.0"
resolved "https://registry.yarnpkg.com/brace/-/brace-0.10.0.tgz#edef4eb9b0928ba1ee5f717ffc157749a6dd5d76"
dependencies:

View file

@ -77,11 +77,10 @@
version "0.0.0"
uid ""
"@elastic/eui@0.0.51", "@elastic/eui@v0.0.51":
version "0.0.51"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-0.0.51.tgz#5d809af270dd9994a609fd01eaa84e21a62fff98"
"@elastic/eui@0.0.52", "@elastic/eui@v0.0.52":
version "0.0.52"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-0.0.52.tgz#c34c6cd482b458015e0d2b410f98652053994138"
dependencies:
brace "^0.10.0"
classnames "^2.2.5"
core-js "^2.5.1"
focus-trap-react "^3.0.4"
@ -1901,7 +1900,7 @@ brace-expansion@^1.0.0, brace-expansion@^1.1.7:
balanced-match "^1.0.0"
concat-map "0.0.1"
brace@0.10.0, brace@^0.10.0:
brace@0.10.0:
version "0.10.0"
resolved "https://registry.yarnpkg.com/brace/-/brace-0.10.0.tgz#edef4eb9b0928ba1ee5f717ffc157749a6dd5d76"
dependencies: