elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.69k stars 8.24k forks source link

Failing test: Security Solution Cypress.x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/detection_alerts/assignments/assignments·cy·ts - Alert user assignment - ESS & Serverless Basic rendering alert with some assignees in alerts table & details flyout alert with some assignees in alerts table & details flyout #178567

Open kibanamachine opened 8 months ago

kibanamachine commented 8 months ago

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="alert-assignees-context-menu-item"])

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 (http://localhost:5682/__cypress/runner/cypress_runner.js:112363:74)
    at tryCatcher (http://localhost:5682/__cypress/runner/cypress_runner.js:1807:23)
    at Promise.attempt.Promise.try (http://localhost:5682/__cypress/runner/cypress_runner.js:4315:29)
    at whenStable (http://localhost:5682/__cypress/runner/cypress_runner.js:143918:68)
    at <unknown> (http://localhost:5682/__cypress/runner/cypress_runner.js:143859:14)
    at tryCatcher (http://localhost:5682/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (http://localhost:5682/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (http://localhost:5682/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (http://localhost:5682/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (http://localhost:5682/__cypress/runner/cypress_runner.js:1701:18)
    at Promise._fulfill (http://localhost:5682/__cypress/runner/cypress_runner.js:1645:18)
    at <unknown> (http://localhost:5682/__cypress/runner/cypress_runner.js:5450:46)
From Your Spec Code:
    at openFirstAlertAssigningActionMenu (webpack:///./tasks/alert_assignments.ts:62:41)
    at updateAssigneesForFirstAlert (webpack:///./tasks/alert_assignments.ts:169:2)
    at Context.eval (webpack:///./e2e/detection_response/detection_engine/detection_alerts/assignments/assignments.cy.ts:69:35)

First failure: CI Build - main

elasticmachine commented 8 months ago

Pinging @elastic/security-detection-engine (Team:Detection Engine)

elasticmachine commented 8 months ago

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

elasticmachine commented 8 months ago

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