Upgrade EUI to v60.0.0 (#134919)

* Upgrade EUI to v60.0.0

* reorganize style tag injection using EuiProvider.cache options

* Convert Jest snapshots for EUI Emotion classNames to a static `emotion-` prefix instead of a dynamic hash

- The goal of this is to reduce thrashing on downstream Kibana snapshots whenever EUI CSS changes

+ Add serializer to Canvas' storyshots tests as well

+ Switch several .html() snapshots to .render() - render uses the new serializer logic, but .html() does not and will still output CSS hashes, plus is more difficult to read

* Update downstream tests for EuiStat Emotion/className changes

* Fix WithEuiTheme(EuiAccordionClass) references

* Rename mounted snapshots of EuiButtonContent to EuiButtonContentDeprecated

* add emotion/cache to kbn-ui-shared-deps

* Fix non-rendering server-side Emotion CSS

* Fix failing Security Cypress test

- the Cypress query/command being used wasn't working correctly

Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Constance 2022-06-28 11:23:59 -07:00 committed by GitHub
parent 0b0b68786a
commit de20876b30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
160 changed files with 3877 additions and 1164 deletions

View file

@ -9,18 +9,18 @@ exports[`should render entity by expression with aggregatable field options for
class="euiPopover__anchor"
>
<button
class="euiExpression css-c0byu8-euiExpression-isClickable-success-columns"
class="euiExpression emotion-euiExpression-isClickable-success-columns"
data-test-subj="selectIndexExpression"
>
<span
class="euiExpression__description css-s06x37-euiExpression__description-success-isUppercase-columns"
class="euiExpression__description emotion-euiExpression__description-success-isUppercase-columns"
style="flex-basis: 20%;"
>
by
</span>
<span
class="euiExpression__value css-18wds23-euiExpression__value-columns"
class="euiExpression__value emotion-euiExpression__value-columns"
>
FlightNum
</span>