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

Failing test: Security Solution Cypress.x-pack/test/security_solution_cypress/cypress/e2e/investigations/alerts/ransomware_prevention·cy·ts - Ransomware Prevention Alerts Ransomware in Timelines Renders ransomware entries in timelines table Renders ransomware entries in timelines table #170310

Closed
kibanamachine opened this issue Nov 1, 2023 · 1 comment · Fixed by #173316
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Threat Hunting:Investigations Security Solution Investigations Team

Comments

@kibanamachine
Copy link
Contributor

A test failed on a tracked branch

CypressError: Timed out retrying after 150000ms: `cy.type()` failed because this element is not visible:

`<textarea class="euiTextArea euiTextArea--resizeVertical euiTextArea--fullWidth kbnQueryBar__textarea kbnQueryBar__textarea--withIcon kbnQueryBar__textarea--isClearable" autocomplete="off" spellcheck="false" aria-label="Start typing to search and filter the Security page" aria-autocomplete="list" role="textbox" data-test-subj="timelineQueryInput" rows="1" id="i7c9f11b1-78b4-11ee-8acf-7588e2fe1e2e" placeholder="Filter your data using KQL syntax"></textarea>`

This element `<textarea#i7c9f11b1-78b4-11ee-8acf-7588e2fe1e2e.euiTextArea.euiTextArea--resizeVertical.euiTextArea--fullWidth.kbnQueryBar__textarea.kbnQueryBar__textarea--withIcon.kbnQueryBar__textarea--isClearable>` is not visible because its parent `<div._StyledDiv-sc-1gsoud4-0.fzKnXL>` has CSS property: `display: none`

Fix this problem, or use `{force: true}` to disable error checking.

https://on.cypress.io/element-cannot-be-interacted-with
    at runVisibilityCheck (http://localhost:5658/__cypress/runner/cypress_runner.js:145086:58)
    at Object.isStrictlyVisible (http://localhost:5658/__cypress/runner/cypress_runner.js:145100:10)
    at runAllChecks (http://localhost:5658/__cypress/runner/cypress_runner.js:112037:26)
    at retryActionability (http://localhost:5658/__cypress/runner/cypress_runner.js:112105:16)
    at tryCatcher (http://localhost:5658/__cypress/runner/cypress_runner.js:1807:23)
    at Promise.attempt.Promise.try (http://localhost:5658/__cypress/runner/cypress_runner.js:4315:29)
    at whenStable (http://localhost:5658/__cypress/runner/cypress_runner.js:143908:68)
    at <unknown> (http://localhost:5658/__cypress/runner/cypress_runner.js:143849:14)
    at tryCatcher (http://localhost:5658/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (http://localhost:5658/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (http://localhost:5658/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (http://localhost:5658/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (http://localhost:5658/__cypress/runner/cypress_runner.js:1701:18)
    at Promise._fulfill (http://localhost:5658/__cypress/runner/cypress_runner.js:1645:18)
    at <unknown> (http://localhost:5658/__cypress/runner/cypress_runner.js:5450:46)
From Your Spec Code:
    at Context.eval (webpack:///./e2e/investigations/alerts/ransomware_prevention.cy.ts:66:29)

First failure: CI Build - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Nov 1, 2023
@botelastic botelastic bot added the needs-team Issues missing a team label label Nov 1, 2023
@kibanamachine kibanamachine added the Team:Threat Hunting:Investigations Security Solution Investigations Team label Nov 1, 2023
@botelastic botelastic bot removed the needs-team Issues missing a team label label Nov 1, 2023
@christineweng christineweng self-assigned this Dec 13, 2023
@PhilippeOberti
Copy link
Contributor

Skipping in this PR

christineweng added a commit that referenced this issue Dec 14, 2023
## Summary

`before` -> `beforeEach` to prevent missing timeline on retry
Unload data after test finish

Fixes: #170310
Fixes: #170846

### Checklist

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed [100/100 ESS and 100/100
Serverless](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4575#_)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Threat Hunting:Investigations Security Solution Investigations Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants