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

Bringing cypress tests back #109129

Merged
merged 12 commits into from
Aug 19, 2021

Conversation

MadameSheema
Copy link
Member

@MadameSheema MadameSheema commented Aug 18, 2021

Summary

In this PR we are unskipping most of the skipped Cypress test:

Threat Hunting

  • 'Creates a new case with timeline and opens the timeline' test
    • The test has been fixed deleting the assertions that checks the action button since that button does not exist.
  • Attach alerts to a case tests
    • The tests have been fixed forcing the click when trying to open the context menu.
  • Navigation tests
    • Have been unskipped without any fix.
  • Data provider tests
    • Data provider tests related with drag and drop have been deleted since that functionality is not valid anymore.
  • Local storage test
    • Local storage test has been fixed changing the way we are doing the deletion of the column.

Detections

@MadameSheema
Copy link
Member Author

@elasticmachine merge upstream

@MadameSheema MadameSheema self-assigned this Aug 19, 2021
@MadameSheema MadameSheema added Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detections and Resp Security Detection Response Team Team:Threat Hunting Security Solution Threat Hunting Team v7.15.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels Aug 19, 2021
@MadameSheema MadameSheema marked this pull request as ready for review August 19, 2021 12:56
@MadameSheema MadameSheema requested a review from a team as a code owner August 19, 2021 12:56
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@semd
Copy link
Contributor

semd commented Aug 19, 2021

Filter browser test LGTM 🚀

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @MadameSheema

@@ -64,7 +64,7 @@ describe('From alert', () => {
esArchiverUnload('auditbeat_for_exceptions2');
});

// TODO: Looks like the signal is missing some fields. Need to update to make sure it shows up
// TODO: Unskip the test when `https://github.com/elastic/kibana/issues/108244` it is fixed
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 for the references

@@ -62,7 +62,7 @@ describe('From rule', () => {
esArchiverUnload('auditbeat_for_exceptions2');
});

// TODO: Looks like the signal is missing some fields. Need to update to make sure it shows up
// TODO: Unskip the test when `https://github.com/elastic/kibana/issues/108244` it is fixed
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 for the references

Copy link
Contributor

@FrankHassanabad FrankHassanabad left a comment

Choose a reason for hiding this comment

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

LGTM,

  • Looked through the code to see the unskips and good comments about issues and when to unskip things.

@MadameSheema MadameSheema merged commit 91910db into elastic:master Aug 19, 2021
MadameSheema added a commit to MadameSheema/kibana that referenced this pull request Aug 19, 2021
* fixes threshold cypress tests

* add ticket command

* fixes threshold cypress tests

* add ticket command

* fixes 'Creates a new case with timeline and opens the timeline' test

* unskips navigation tests

* removes 'sets correct classes when the user starts dragging a host, but is not hovering over the data providers' test since we are not supporting drag and drop on timeline

* removes drag and drop related tests from 'data_providers.spec.ts'

* modifies todo on skipped exceptions tests to add more clarity

* fixes 'attach' to case and local storage test

Co-authored-by: Kibana Machine <[email protected]>
MadameSheema added a commit to MadameSheema/kibana that referenced this pull request Aug 19, 2021
* fixes threshold cypress tests

* add ticket command

* fixes threshold cypress tests

* add ticket command

* fixes 'Creates a new case with timeline and opens the timeline' test

* unskips navigation tests

* removes 'sets correct classes when the user starts dragging a host, but is not hovering over the data providers' test since we are not supporting drag and drop on timeline

* removes drag and drop related tests from 'data_providers.spec.ts'

* modifies todo on skipped exceptions tests to add more clarity

* fixes 'attach' to case and local storage test

Co-authored-by: Kibana Machine <[email protected]>
MadameSheema added a commit that referenced this pull request Aug 20, 2021
* fixes threshold cypress tests

* add ticket command

* fixes threshold cypress tests

* add ticket command

* fixes 'Creates a new case with timeline and opens the timeline' test

* unskips navigation tests

* removes 'sets correct classes when the user starts dragging a host, but is not hovering over the data providers' test since we are not supporting drag and drop on timeline

* removes drag and drop related tests from 'data_providers.spec.ts'

* modifies todo on skipped exceptions tests to add more clarity

* fixes 'attach' to case and local storage test

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
MadameSheema added a commit that referenced this pull request Aug 20, 2021
* fixes threshold cypress tests

* add ticket command

* fixes threshold cypress tests

* add ticket command

* fixes 'Creates a new case with timeline and opens the timeline' test

* unskips navigation tests

* removes 'sets correct classes when the user starts dragging a host, but is not hovering over the data providers' test since we are not supporting drag and drop on timeline

* removes drag and drop related tests from 'data_providers.spec.ts'

* modifies todo on skipped exceptions tests to add more clarity

* fixes 'attach' to case and local storage test

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
@michaelolo24
Copy link
Contributor

Thanks @MadameSheema!!

@MadameSheema MadameSheema deleted the bringing-cypress-tests-back branch May 16, 2022 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants