Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Solution][Alert details] - fix failing Cypress test on MKI #196578

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

PhilippeOberti
Copy link
Contributor

@PhilippeOberti PhilippeOberti commented Oct 16, 2024

Summary

A recent EUI PR made a change to one or our NO_DATA_MESSAGE value (here) and since then a Cypress test has been failing on MKI (see this failure). I am not sure why this test works fine locally, in normal CI but not on MKI...

Ultimately, the Cypress test in question doesn't need to check for a text value (this is actually not good practice). This PR replaces the check for a specific text by the existence of the DOM element that renders that text. On top of that, we are already testing the text in a Jest unit test here for session view and here for response, so this was redundant.

Screenshot 2024-10-16 at 11 25 04 AM

This PR skips one timeline notes test as I'm not familiar with how this test works and is supposed to test...

Checklist

@PhilippeOberti PhilippeOberti added backport release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Threat Hunting:Investigations Security Solution Investigations Team v8.16.0 labels Oct 16, 2024
@PhilippeOberti PhilippeOberti requested a review from a team as a code owner October 16, 2024 16:31
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations)

@PhilippeOberti PhilippeOberti merged commit 0c37342 into elastic:main Oct 16, 2024
39 checks passed
@PhilippeOberti PhilippeOberti deleted the fix-flyout-cypress-mki branch October 16, 2024 21:10
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 16, 2024
…n MKI (#196578) (#196611)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution][Alert details] - fix failing Cypress test on MKI
(#196578)](#196578)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Philippe
Oberti","email":"philippe.oberti@elastic.co"},"sourceCommit":{"committedDate":"2024-10-16T21:10:51Z","message":"[Security
Solution][Alert details] - fix failing Cypress test on MKI
(#196578)","sha":"0c37342389505a58f13c94a0f385da2cbb9d50ce","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","v9.0.0","Team:Threat
Hunting:Investigations","v8.16.0"],"title":"[Security Solution][Alert
details] - fix failing Cypress test on
MKI","number":196578,"url":"https://github.com/elastic/kibana/pull/196578","mergeCommit":{"message":"[Security
Solution][Alert details] - fix failing Cypress test on MKI
(#196578)","sha":"0c37342389505a58f13c94a0f385da2cbb9d50ce"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196578","number":196578,"mergeCommit":{"message":"[Security
Solution][Alert details] - fix failing Cypress test on MKI
(#196578)","sha":"0c37342389505a58f13c94a0f385da2cbb9d50ce"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Philippe Oberti <philippe.oberti@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Investigations Security Solution Investigations Team v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants