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/alerts_charts·cy·ts - Histogram legend hover actions Filter in/out should add a filter to KQL bar Filter in/out should add a filter to KQL bar #170520

Closed
kibanamachine opened this issue Nov 3, 2023 · 2 comments
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 150050ms: `cy.click()` failed because the page updated while this command was executing. Cypress tried to locate elements based on this query:

> cy.get([data-test-subj="legend-New Rule Test-histogramLegendActionFilterOut"])

We initially found matching element(s), but while waiting for them to become actionable, they disappeared from the page. Common situations why this happens:
  - Your JS framework re-rendered asynchronously
  - Your app code reacted to an event firing and removed the element

You can typically solve this by breaking up a chain. For example, rewrite:

> `cy.get('button').click().click()`

to

> `cy.get('button').as('btn').click()`
> `cy.get('@btn').click()`

https://on.cypress.io/element-has-detached-from-dom
    at retryActionability (https://localhost:5639/__cypress/runner/cypress_runner.js:112097:74)
    at tryCatcher (https://localhost:5639/__cypress/runner/cypress_runner.js:1807:23)
    at Promise.attempt.Promise.try (https://localhost:5639/__cypress/runner/cypress_runner.js:4315:29)
    at whenStable (https://localhost:5639/__cypress/runner/cypress_runner.js:143908:68)
    at <unknown> (https://localhost:5639/__cypress/runner/cypress_runner.js:143849:14)
    at tryCatcher (https://localhost:5639/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (https://localhost:5639/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (https://localhost:5639/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (https://localhost:5639/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (https://localhost:5639/__cypress/runner/cypress_runner.js:1701:18)
    at Promise._fulfill (https://localhost:5639/__cypress/runner/cypress_runner.js:1645:18)
    at <unknown> (https://localhost:5639/__cypress/runner/cypress_runner.js:5450:46)
From Your Spec Code:
    at clickAlertsHistogramLegendFilterOut (webpack:///./tasks/alerts.ts:335:46)
    at Context.eval (webpack:///./e2e/investigations/alerts/alerts_charts.cy.ts:53:40)

First failure: CI Build - main

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

Skipping in this PR

@PhilippeOberti PhilippeOberti self-assigned this Dec 14, 2023
PhilippeOberti added a commit that referenced this issue Dec 14, 2023
## Summary

Skipping test as it was failing on main (see
#170520)
@PhilippeOberti
Copy link
Contributor

Fixed in this PR

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

No branches or pull requests

2 participants