[Detection Engine] Chore: Remove jest snapshots containing mostly EUI components#219026
[Detection Engine] Chore: Remove jest snapshots containing mostly EUI components#219026rylnd merged 3 commits intoelastic:mainfrom
Conversation
|
/ci |
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.
See previous commit for more info; this applies the same logic/changes to other exception-list-components that are clearly mainly testing EUI components (as evidenced by the contents of the deleted snapshots).
b437cd2 to
114d9ae
Compare
|
/ci |
|
Pinging @elastic/security-detection-engine (Team:Detection Engine) |
💚 Build Succeeded
Metrics [docs]
History
|
|
Starting backport for target branches: 7.17, 8.17, 8.18, 8.19, 9.0 https://github.com/elastic/kibana/actions/runs/14758070841 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
… 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
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
6 similar comments
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
This PR should only be relevant moving forward, so these backports aren't needed. |
… 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
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