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][Threat Hunting] Fixes failing timeline test #113394

Merged

Conversation

MadameSheema
Copy link
Member

Summary

In this PR we are fixing a failing Cypress test.

After the Cypress upgrade to the latest version, the Create a timeline from a template test started to fail. I don't know exactly the reason but looks like related to the way the assertions were done on the API response.

We need to take into consideration that Cypress should be used purely for testing the UI in those situations where it is impossible to check the same behavior with Jest or the API framework. The API in Cypress should be only used to prepare test data, to prepare the initial status of the test, or to wait for certain events before continuing with the assertions on the UI.

I refactored the test and now the assertions are done using the UI.

@MadameSheema MadameSheema added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 labels Sep 29, 2021
@MadameSheema MadameSheema self-assigned this Sep 29, 2021
@MadameSheema MadameSheema requested a review from a team as a code owner September 29, 2021 12:04
@MadameSheema MadameSheema enabled auto-merge (squash) September 29, 2021 12:05
@MadameSheema MadameSheema changed the title [Security Soltution][Threat Gunting] Fixes failing timeline test [Security Solution][Threat Hunting] Fixes failing timeline test Sep 29, 2021
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @MadameSheema

@MadameSheema MadameSheema merged commit 781fdf9 into elastic:master Sep 29, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 29, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Sep 29, 2021
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
@MadameSheema MadameSheema deleted the fixes/failing_timeline_test branch October 6, 2021 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants