Skip to content

Conversation

@mgadewoll
Copy link
Contributor

@mgadewoll mgadewoll commented Apr 22, 2025

101.3.0101.4.0

Questions? Please see our Kibana upgrade FAQ.

Changes

This PR only updates tests and snapshots related to changes on EUI side:

  • updated aria-current="true" to aria-current="page"
  • updated icon usage userAvatar to user

Package updates

@elastic/eui

v101.4.0

  • Spread labelProps to the label element in EuiCheckableCard (#8586)
  • Add controls, flask, comment, and readOnly glyphs to EuiIcon (#8580)
  • Refactored EuiExpression, EuiFacetGroup, EuiFacetButton, EuiFilterGroup, EuiHeader, EuiImage and EuiListGroup to memoize their internal Emotion styles (#8565)
  • Updated global border.radius.medium token value for default Borealis theme to 4px (#8563)
  • Updated EuiProvider to build themes including highContrastMode (#8558)

Accessibility

  • Removed the aria-label attribute from the ul element in EuiPagination to avoid duplicate screen reader output (#8597)
  • Set a more specific aria-current="page" on list items in EuiPagination (#8597)
  • Added aria-modal to EuiFlyout with type="overlay" (#8591)

Dependency updates

  • Updated @elastic/prismjs-esql to v1.1.0 (#8587)

@elastic/[email protected]

  • Updated component tokens to use computed values to ensure correct inheritance from theme overrides (#8558)
  • Added overrides.HCM to euiThemeBorealis to support theme internal overrides (#8558)
  • Updated border.radius.medium token value to 4px (#8563)

@elastic/[email protected]

  • Added support for theme overrides as optional part of EuiThemeShape (#8558)
  • Updated getComputed to support high contrast mode overrides defined on overrides.HCM (#8558)

@mgadewoll mgadewoll added release_note:skip Skip the PR/issue when compiling release notes EUI backport:prev-minor v9.1.0 labels Apr 22, 2025
@mgadewoll mgadewoll self-assigned this Apr 22, 2025
- updates assertions on aria-current value from true to page, updated replaced icon
@mgadewoll mgadewoll marked this pull request as ready for review April 22, 2025 13:56
@mgadewoll mgadewoll requested review from a team as code owners April 22, 2025 13:56
@elasticmachine
Copy link
Contributor

Pinging @elastic/eui-team (EUI)

Copy link
Contributor

@davismcphee davismcphee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Data Discovery snapshot changes LGTM

Copy link
Contributor

@tomsonpl tomsonpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Defend Workflows LGTM

Copy link
Contributor

@dmlemeshko dmlemeshko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/platform/test/functional/services/data_grid.ts changes LGTM

Copy link
Contributor

@elena-shostak elena-shostak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@machadoum machadoum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Entity analytics changes LGTM!

Copy link
Contributor

@christineweng christineweng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Investigations changes LGTM

Copy link
Contributor

@rylnd rylnd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Detection Engine changes (a single snapshot file) LGTM. I'll be fixing the overeager tests shortly, as well.

rylnd added a commit to rylnd/kibana that referenced this pull request Apr 23, 2025
These tests serve one purpose: to fail when a component's markup
changes. While this can be useful, in these cases the snapshots are
_mostly_ EUI components, which we trust (but verify) to change over
time.

I had made a previous attempt to correct our testing of EUI in elastic#192747,
but the recent elastic#218778 demonstrated that there are still issues.

Since these tests already contain other, more directed assertions, the
approach here is to simply remove the snapshot assertions.
@mgadewoll
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
controls 420.6KB 420.6KB +6.0B
dashboard 550.2KB 550.2KB +6.0B
maps 3.0MB 3.0MB +6.0B
ml 5.3MB 5.3MB +6.0B
visTypeVega 2.0MB 2.0MB +6.0B
total +30.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
kbnUiSharedDeps-npmDll 6.2MB 6.2MB -39.0B

History

cc @mgadewoll

Copy link
Contributor

@markov00 markov00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Owned code review, LGTM

@mgadewoll mgadewoll merged commit d2d2765 into elastic:main Apr 24, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.0

https://github.com/elastic/kibana/actions/runs/14643440801

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
9.0 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 218778

Questions ?

Please refer to the Backport tool documentation

@mgadewoll
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

mgadewoll added a commit to mgadewoll/kibana that referenced this pull request Apr 24, 2025
`101.3.0` ⏩ `101.4.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

## Changes

This PR only updates tests and snapshots related to changes on EUI side:
- updated `aria-current="true"` to `aria-current="page"`
- updated icon usage `userAvatar` to `user`

## Package updates

### `@elastic/eui`

#### [`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0)

- Spread `labelProps` to the `label` element in `EuiCheckableCard`
([elastic#8586](elastic/eui#8586))
- Add `controls`, `flask`, `comment`, and `readOnly` glyphs to `EuiIcon`
([elastic#8580](elastic/eui#8580))
- Refactored `EuiExpression`, `EuiFacetGroup`, `EuiFacetButton`,
`EuiFilterGroup`, `EuiHeader`, `EuiImage` and `EuiListGroup` to memoize
their internal Emotion styles
([elastic#8565](elastic/eui#8565))
- Updated global `border.radius.medium` token value for default
`Borealis` theme to `4px`
([elastic#8563](elastic/eui#8563))
- Updated `EuiProvider` to build themes including `highContrastMode`
([elastic#8558](elastic/eui#8558))

**Accessibility**

- Removed the `aria-label` attribute from the `ul` element in
`EuiPagination` to avoid duplicate screen reader output
([elastic#8597](elastic/eui#8597))
- Set a more specific `aria-current="page"` on list items in
`EuiPagination` ([elastic#8597](elastic/eui#8597))
- Added `aria-modal` to `EuiFlyout` with `type="overlay"`
([elastic#8591](elastic/eui#8591))

**Dependency updates**

- Updated `@elastic/prismjs-esql` to v1.1.0
([elastic#8587](elastic/eui#8587))

### `@elastic/[email protected]`

- Updated component tokens to use `computed` values to ensure correct
inheritance from theme overrides
([elastic#8558](elastic/eui#8558))
- Added `overrides.HCM` to `euiThemeBorealis` to support theme internal
overrides ([elastic#8558](elastic/eui#8558))
- Updated `border.radius.medium` token value to `4px`
([elastic#8563](elastic/eui#8563))

### `@elastic/[email protected]`

- Added support for theme `overrides` as optional part of
`EuiThemeShape` ([elastic#8558](elastic/eui#8558))
- Updated `getComputed` to support high contrast mode overrides defined
on `overrides.HCM` ([elastic#8558](elastic/eui#8558))

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit d2d2765)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/public/explore/components/paginated_table/__snapshots__/index.test.tsx.snap
#	x-pack/solutions/security/plugins/security_solution/public/explore/components/paginated_table/index.test.tsx
#	x-pack/solutions/security/plugins/security_solution/public/explore/hosts/components/uncommon_process_table/__snapshots__/index.test.tsx.snap
#	x-pack/solutions/security/plugins/security_solution/public/explore/network/components/network_dns_table/__snapshots__/index.test.tsx.snap
#	x-pack/solutions/security/plugins/security_solution/public/explore/network/components/network_http_table/__snapshots__/index.test.tsx.snap
#	x-pack/solutions/security/plugins/security_solution/public/explore/network/components/network_top_countries_table/__snapshots__/index.test.tsx.snap
#	x-pack/solutions/security/plugins/security_solution/public/explore/network/components/network_top_n_flow_table/__snapshots__/index.test.tsx.snap
#	x-pack/solutions/security/plugins/security_solution/public/explore/network/components/tls_table/__snapshots__/index.test.tsx.snap
#	x-pack/solutions/security/plugins/security_solution/public/explore/network/components/users_table/__snapshots__/index.test.tsx.snap
mgadewoll added a commit that referenced this pull request Apr 24, 2025
`101.3.0` ⏩ `101.4.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

>[!IMPORTANT]
This PR is a direct sibling to this [upgrade
PR](#218778) to `main`. The
difference is that it adds a standalone EUI package with the previous
"Amsterdam" theme.
Apart from the theme difference, **there are no further changes added**.

## Changes

This PR only updates tests and snapshots related to changes on EUI side:
- updated `aria-current="true"` to `aria-current="page"`
- updated icon usage `userAvatar` to `user`

## Package updates

### `@elastic/eui`

#### [`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0)

- Spread `labelProps` to the `label` element in `EuiCheckableCard`
([#8586](elastic/eui#8586))
- Add `controls`, `flask`, `comment`, and `readOnly` glyphs to `EuiIcon`
([#8580](elastic/eui#8580))
- Refactored `EuiExpression`, `EuiFacetGroup`, `EuiFacetButton`,
`EuiFilterGroup`, `EuiHeader`, `EuiImage` and `EuiListGroup` to memoize
their internal Emotion styles
([#8565](elastic/eui#8565))
- Updated global `border.radius.medium` token value for default
`Borealis` theme to `4px`
([#8563](elastic/eui#8563))
- Updated `EuiProvider` to build themes including `highContrastMode`
([#8558](elastic/eui#8558))

**Accessibility**

- Removed the `aria-label` attribute from the `ul` element in
`EuiPagination` to avoid duplicate screen reader output
([#8597](elastic/eui#8597))
- Set a more specific `aria-current="page"` on list items in
`EuiPagination` ([#8597](elastic/eui#8597))
- Added `aria-modal` to `EuiFlyout` with `type="overlay"`
([#8591](elastic/eui#8591))

**Dependency updates**

- Updated `@elastic/prismjs-esql` to v1.1.0
([#8587](elastic/eui#8587))

### `@elastic/[email protected]`

- Updated component tokens to use `computed` values to ensure correct
inheritance from theme overrides
([#8558](elastic/eui#8558))
- Added `overrides.HCM` to `euiThemeBorealis` to support theme internal
overrides ([#8558](elastic/eui#8558))
- Updated `border.radius.medium` token value to `4px`
([#8563](elastic/eui#8563))

### `@elastic/[email protected]`

- Added support for theme `overrides` as optional part of
`EuiThemeShape` ([#8558](elastic/eui#8558))
- Updated `getComputed` to support high contrast mode overrides defined
on `overrides.HCM` ([#8558](elastic/eui#8558))
rylnd added a commit to rylnd/kibana that referenced this pull request Apr 24, 2025
These tests serve one purpose: to fail when a component's markup
changes. While this can be useful, in these cases the snapshots are
_mostly_ EUI components, which we trust (but verify) to change over
time.

I had made a previous attempt to correct our testing of EUI in elastic#192747,
but the recent elastic#218778 demonstrated that there are still issues.

Since these tests already contain other, more directed assertions, the
approach here is to simply remove the snapshot assertions.
mgadewoll added a commit that referenced this pull request Apr 24, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [Upgrade EUI to v101.4.0
(#218778)](#218778)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Lene
Gadewoll","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-04-24T13:54:52Z","message":"Upgrade
EUI to v101.4.0 (#218778)\n\n`101.3.0` ⏩ `101.4.0`\n\n[Questions? Please
see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n##
Changes\n\nThis PR only updates tests and snapshots related to changes
on EUI side:\n- updated `aria-current=\"true\"` to
`aria-current=\"page\"`\n- updated icon usage `userAvatar` to
`user`\n\n## Package updates\n\n### `@elastic/eui`\n\n####
[`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0)\n\n-
Spread `labelProps` to the `label` element in
`EuiCheckableCard`\n([#8586](https://github.com/elastic/eui/pull/8586))\n-
Add `controls`, `flask`, `comment`, and `readOnly` glyphs to
`EuiIcon`\n([#8580](https://github.com/elastic/eui/pull/8580))\n-
Refactored `EuiExpression`, `EuiFacetGroup`,
`EuiFacetButton`,\n`EuiFilterGroup`, `EuiHeader`, `EuiImage` and
`EuiListGroup` to memoize\ntheir internal Emotion
styles\n([#8565](https://github.com/elastic/eui/pull/8565))\n- Updated
global `border.radius.medium` token value for default\n`Borealis` theme
to `4px`\n([#8563](https://github.com/elastic/eui/pull/8563))\n- Updated
`EuiProvider` to build themes including
`highContrastMode`\n([#8558](https://github.com/elastic/eui/pull/8558))\n\n**Accessibility**\n\n-
Removed the `aria-label` attribute from the `ul` element
in\n`EuiPagination` to avoid duplicate screen reader
output\n([#8597](https://github.com/elastic/eui/pull/8597))\n- Set a
more specific `aria-current=\"page\"` on list items in\n`EuiPagination`
([#8597](https://github.com/elastic/eui/pull/8597))\n- Added
`aria-modal` to `EuiFlyout` with
`type=\"overlay\"`\n([#8591](https://github.com/elastic/eui/pull/8591))\n\n**Dependency
updates**\n\n- Updated `@elastic/prismjs-esql` to
v1.1.0\n([#8587](https://github.com/elastic/eui/pull/8587))\n\n###
`@elastic/[email protected]`\n\n- Updated component tokens to use
`computed` values to ensure correct\ninheritance from theme
overrides\n([#8558](https://github.com/elastic/eui/pull/8558))\n- Added
`overrides.HCM` to `euiThemeBorealis` to support theme
internal\noverrides
([#8558](https://github.com/elastic/eui/pull/8558))\n- Updated
`border.radius.medium` token value to
`4px`\n([#8563](https://github.com/elastic/eui/pull/8563))\n\n###
`@elastic/[email protected]`\n\n- Added support for theme
`overrides` as optional part of\n`EuiThemeShape`
([#8558](https://github.com/elastic/eui/pull/8558))\n- Updated
`getComputed` to support high contrast mode overrides defined\non
`overrides.HCM`
([#8558](https://github.com/elastic/eui/pull/8558))\n\n---------\n\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"d2d27658f36040752ee7747bddb9d17030823352","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","EUI","backport:prev-minor","v9.1.0"],"title":"Upgrade
EUI to
v101.4.0","number":218778,"url":"https://github.com/elastic/kibana/pull/218778","mergeCommit":{"message":"Upgrade
EUI to v101.4.0 (#218778)\n\n`101.3.0` ⏩ `101.4.0`\n\n[Questions? Please
see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n##
Changes\n\nThis PR only updates tests and snapshots related to changes
on EUI side:\n- updated `aria-current=\"true\"` to
`aria-current=\"page\"`\n- updated icon usage `userAvatar` to
`user`\n\n## Package updates\n\n### `@elastic/eui`\n\n####
[`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0)\n\n-
Spread `labelProps` to the `label` element in
`EuiCheckableCard`\n([#8586](https://github.com/elastic/eui/pull/8586))\n-
Add `controls`, `flask`, `comment`, and `readOnly` glyphs to
`EuiIcon`\n([#8580](https://github.com/elastic/eui/pull/8580))\n-
Refactored `EuiExpression`, `EuiFacetGroup`,
`EuiFacetButton`,\n`EuiFilterGroup`, `EuiHeader`, `EuiImage` and
`EuiListGroup` to memoize\ntheir internal Emotion
styles\n([#8565](https://github.com/elastic/eui/pull/8565))\n- Updated
global `border.radius.medium` token value for default\n`Borealis` theme
to `4px`\n([#8563](https://github.com/elastic/eui/pull/8563))\n- Updated
`EuiProvider` to build themes including
`highContrastMode`\n([#8558](https://github.com/elastic/eui/pull/8558))\n\n**Accessibility**\n\n-
Removed the `aria-label` attribute from the `ul` element
in\n`EuiPagination` to avoid duplicate screen reader
output\n([#8597](https://github.com/elastic/eui/pull/8597))\n- Set a
more specific `aria-current=\"page\"` on list items in\n`EuiPagination`
([#8597](https://github.com/elastic/eui/pull/8597))\n- Added
`aria-modal` to `EuiFlyout` with
`type=\"overlay\"`\n([#8591](https://github.com/elastic/eui/pull/8591))\n\n**Dependency
updates**\n\n- Updated `@elastic/prismjs-esql` to
v1.1.0\n([#8587](https://github.com/elastic/eui/pull/8587))\n\n###
`@elastic/[email protected]`\n\n- Updated component tokens to use
`computed` values to ensure correct\ninheritance from theme
overrides\n([#8558](https://github.com/elastic/eui/pull/8558))\n- Added
`overrides.HCM` to `euiThemeBorealis` to support theme
internal\noverrides
([#8558](https://github.com/elastic/eui/pull/8558))\n- Updated
`border.radius.medium` token value to
`4px`\n([#8563](https://github.com/elastic/eui/pull/8563))\n\n###
`@elastic/[email protected]`\n\n- Added support for theme
`overrides` as optional part of\n`EuiThemeShape`
([#8558](https://github.com/elastic/eui/pull/8558))\n- Updated
`getComputed` to support high contrast mode overrides defined\non
`overrides.HCM`
([#8558](https://github.com/elastic/eui/pull/8558))\n\n---------\n\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"d2d27658f36040752ee7747bddb9d17030823352"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/218778","number":218778,"mergeCommit":{"message":"Upgrade
EUI to v101.4.0 (#218778)\n\n`101.3.0` ⏩ `101.4.0`\n\n[Questions? Please
see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n##
Changes\n\nThis PR only updates tests and snapshots related to changes
on EUI side:\n- updated `aria-current=\"true\"` to
`aria-current=\"page\"`\n- updated icon usage `userAvatar` to
`user`\n\n## Package updates\n\n### `@elastic/eui`\n\n####
[`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0)\n\n-
Spread `labelProps` to the `label` element in
`EuiCheckableCard`\n([#8586](https://github.com/elastic/eui/pull/8586))\n-
Add `controls`, `flask`, `comment`, and `readOnly` glyphs to
`EuiIcon`\n([#8580](https://github.com/elastic/eui/pull/8580))\n-
Refactored `EuiExpression`, `EuiFacetGroup`,
`EuiFacetButton`,\n`EuiFilterGroup`, `EuiHeader`, `EuiImage` and
`EuiListGroup` to memoize\ntheir internal Emotion
styles\n([#8565](https://github.com/elastic/eui/pull/8565))\n- Updated
global `border.radius.medium` token value for default\n`Borealis` theme
to `4px`\n([#8563](https://github.com/elastic/eui/pull/8563))\n- Updated
`EuiProvider` to build themes including
`highContrastMode`\n([#8558](https://github.com/elastic/eui/pull/8558))\n\n**Accessibility**\n\n-
Removed the `aria-label` attribute from the `ul` element
in\n`EuiPagination` to avoid duplicate screen reader
output\n([#8597](https://github.com/elastic/eui/pull/8597))\n- Set a
more specific `aria-current=\"page\"` on list items in\n`EuiPagination`
([#8597](https://github.com/elastic/eui/pull/8597))\n- Added
`aria-modal` to `EuiFlyout` with
`type=\"overlay\"`\n([#8591](https://github.com/elastic/eui/pull/8591))\n\n**Dependency
updates**\n\n- Updated `@elastic/prismjs-esql` to
v1.1.0\n([#8587](https://github.com/elastic/eui/pull/8587))\n\n###
`@elastic/[email protected]`\n\n- Updated component tokens to use
`computed` values to ensure correct\ninheritance from theme
overrides\n([#8558](https://github.com/elastic/eui/pull/8558))\n- Added
`overrides.HCM` to `euiThemeBorealis` to support theme
internal\noverrides
([#8558](https://github.com/elastic/eui/pull/8558))\n- Updated
`border.radius.medium` token value to
`4px`\n([#8563](https://github.com/elastic/eui/pull/8563))\n\n###
`@elastic/[email protected]`\n\n- Added support for theme
`overrides` as optional part of\n`EuiThemeShape`
([#8558](https://github.com/elastic/eui/pull/8558))\n- Updated
`getComputed` to support high contrast mode overrides defined\non
`overrides.HCM`
([#8558](https://github.com/elastic/eui/pull/8558))\n\n---------\n\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"d2d27658f36040752ee7747bddb9d17030823352"}}]}]
BACKPORT-->
rylnd added a commit that referenced this pull request Apr 30, 2025
… components (#219026)

## Summary

This removes some snapshot tests for some UI components related to
Security Exceptions.

These tests serve one purpose: to fail when a component's markup
changes. While this can be useful, in these cases the snapshots are
_mostly_ EUI components, which we trust (but verify) to change over
time.

I had made a previous attempt to correct our testing of EUI in
#192747, but the recent
#218778 demonstrated that there
are still issues.

Since these tests already contain other, more direct assertions, and
since the components being tested are themselves mostly comprised of EUI
components, the approach here is to simply remove the snapshot
assertions themselves.


### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
pborgonovi pushed a commit that referenced this pull request Apr 30, 2025
… components (#219026)

## Summary

This removes some snapshot tests for some UI components related to
Security Exceptions.

These tests serve one purpose: to fail when a component's markup
changes. While this can be useful, in these cases the snapshots are
_mostly_ EUI components, which we trust (but verify) to change over
time.

I had made a previous attempt to correct our testing of EUI in
#192747, but the recent
#218778 demonstrated that there
are still issues.

Since these tests already contain other, more direct assertions, and
since the components being tested are themselves mostly comprised of EUI
components, the approach here is to simply remove the snapshot
assertions themselves.


### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
akowalska622 pushed a commit to akowalska622/kibana that referenced this pull request May 29, 2025
`101.3.0` ⏩ `101.4.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

## Changes

This PR only updates tests and snapshots related to changes on EUI side:
- updated `aria-current="true"` to `aria-current="page"`
- updated icon usage `userAvatar` to `user`

## Package updates

### `@elastic/eui`

#### [`v101.4.0`](https://github.com/elastic/eui/releases/v101.4.0)

- Spread `labelProps` to the `label` element in `EuiCheckableCard`
([elastic#8586](elastic/eui#8586))
- Add `controls`, `flask`, `comment`, and `readOnly` glyphs to `EuiIcon`
([elastic#8580](elastic/eui#8580))
- Refactored `EuiExpression`, `EuiFacetGroup`, `EuiFacetButton`,
`EuiFilterGroup`, `EuiHeader`, `EuiImage` and `EuiListGroup` to memoize
their internal Emotion styles
([elastic#8565](elastic/eui#8565))
- Updated global `border.radius.medium` token value for default
`Borealis` theme to `4px`
([elastic#8563](elastic/eui#8563))
- Updated `EuiProvider` to build themes including `highContrastMode`
([elastic#8558](elastic/eui#8558))

**Accessibility**

- Removed the `aria-label` attribute from the `ul` element in
`EuiPagination` to avoid duplicate screen reader output
([elastic#8597](elastic/eui#8597))
- Set a more specific `aria-current="page"` on list items in
`EuiPagination` ([elastic#8597](elastic/eui#8597))
- Added `aria-modal` to `EuiFlyout` with `type="overlay"`
([elastic#8591](elastic/eui#8591))

**Dependency updates**

- Updated `@elastic/prismjs-esql` to v1.1.0
([elastic#8587](elastic/eui#8587))

### `@elastic/[email protected]`

- Updated component tokens to use `computed` values to ensure correct
inheritance from theme overrides
([elastic#8558](elastic/eui#8558))
- Added `overrides.HCM` to `euiThemeBorealis` to support theme internal
overrides ([elastic#8558](elastic/eui#8558))
- Updated `border.radius.medium` token value to `4px`
([elastic#8563](elastic/eui#8563))

### `@elastic/[email protected]`

- Added support for theme `overrides` as optional part of
`EuiThemeShape` ([elastic#8558](elastic/eui#8558))
- Updated `getComputed` to support high contrast mode overrides defined
on `overrides.HCM` ([elastic#8558](elastic/eui#8558))

---------

Co-authored-by: Elastic Machine <[email protected]>
akowalska622 pushed a commit to akowalska622/kibana that referenced this pull request May 29, 2025
… components (elastic#219026)

## Summary

This removes some snapshot tests for some UI components related to
Security Exceptions.

These tests serve one purpose: to fail when a component's markup
changes. While this can be useful, in these cases the snapshots are
_mostly_ EUI components, which we trust (but verify) to change over
time.

I had made a previous attempt to correct our testing of EUI in
elastic#192747, but the recent
elastic#218778 demonstrated that there
are still issues.

Since these tests already contain other, more direct assertions, and
since the components being tested are themselves mostly comprised of EUI
components, the approach here is to simply remove the snapshot
assertions themselves.


### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

EUI release_note:skip Skip the PR/issue when compiling release notes v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.