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] fix data providers cypress tests #94933

Merged
merged 5 commits into from
Mar 22, 2021

Conversation

angorayc
Copy link
Contributor

@angorayc angorayc commented Mar 18, 2021

Summary

This PR is to unskip the tests here: #94576

In the test of data provider, I no longer check the style of the element, but the classes added instead. Hope this could reduce flakiness and the influence of EUI change as well.

@angorayc angorayc requested a review from a team as a code owner March 18, 2021 14:54
@angorayc angorayc added v7.12.0 v7.13.0 release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. labels Mar 18, 2021
@elasticmachine
Copy link
Contributor

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

@angorayc angorayc added the Team:Threat Hunting Security Solution Threat Hunting Team label Mar 18, 2021
@elasticmachine
Copy link
Contributor

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

@angorayc angorayc requested a review from MadameSheema March 18, 2021 15:16
@angorayc
Copy link
Contributor Author

@elasticmachine merge upstream

@angorayc
Copy link
Contributor Author

@elasticmachine merge upstream

@angorayc angorayc merged commit 04e4661 into elastic:master Mar 22, 2021
angorayc added a commit to angorayc/kibana that referenced this pull request Mar 22, 2021
* fix data providers cypress tests

* add scrollToBottom to common tasks file

Co-authored-by: Kibana Machine <[email protected]>
angorayc added a commit to angorayc/kibana that referenced this pull request Mar 22, 2021
* fix data providers cypress tests

* add scrollToBottom to common tasks file

Co-authored-by: Kibana Machine <[email protected]>
# Conflicts:
#	x-pack/plugins/security_solution/cypress/integration/timelines/data_providers.spec.ts
#	x-pack/plugins/security_solution/cypress/integration/timelines/flyout_button.spec.ts
angorayc added a commit that referenced this pull request Mar 22, 2021
* fix data providers cypress tests

* add scrollToBottom to common tasks file

Co-authored-by: Kibana Machine <[email protected]>
# Conflicts:
#	x-pack/plugins/security_solution/cypress/integration/timelines/data_providers.spec.ts
#	x-pack/plugins/security_solution/cypress/integration/timelines/flyout_button.spec.ts
angorayc added a commit that referenced this pull request Mar 22, 2021
* fix data providers cypress tests

* add scrollToBottom to common tasks file

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

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

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Closes and opens alerts.Closing alerts Closes and opens alerts

Link to Jenkins

Stack Trace

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

AssertionError: Timed out retrying after 60000ms: expected '<span.euiBadge.euiBadge--hollow.euiBadge--iconLeft>' to have text '397', but the text was '497'
    at Context.eval (http://localhost:6121/__cypress/tests?p=cypress/integration/detection_alerts/closing.spec.ts:20202:43)

Kibana Pipeline / general / "before all" hook for "should contain the right query".Timeline query tab Query tab "before all" hook for "should contain the right query"

Link to Jenkins

Stack Trace

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

AssertionError: Timed out retrying after 60000ms: Expected to find element: `[data-test-subj="title-0a902170-8b29-11eb-b94f-d96cd22c4258"]`, but never found it.

Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `Timeline query tab`

Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
    at Object.openTimelineById (http://localhost:6121/__cypress/tests?p=cypress/integration/timelines/query_tab.spec.ts:16077:15)
    at Context.eval (http://localhost:6121/__cypress/tests?p=cypress/integration/timelines/query_tab.spec.ts:15045:28)

Metrics [docs]

✅ unchanged

History

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

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: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v7.12.0 v7.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants