kibana icon indicating copy to clipboard operation
kibana copied to clipboard

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 many assignees (collapsed into badge) in alert's details flyout alert with many assignees (collapsed into badge) in alert's details flyout

Open kibanamachine opened this issue 1 year ago • 9 comments

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:5691/__cypress/runner/cypress_runner.js:112097:74)
    at tryCatcher (http://localhost:5691/__cypress/runner/cypress_runner.js:1807:23)
    at Promise.attempt.Promise.try (http://localhost:5691/__cypress/runner/cypress_runner.js:4315:29)
    at whenStable (http://localhost:5691/__cypress/runner/cypress_runner.js:143908:68)
    at <unknown> (http://localhost:5691/__cypress/runner/cypress_runner.js:143849:14)
    at tryCatcher (http://localhost:5691/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (http://localhost:5691/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (http://localhost:5691/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (http://localhost:5691/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (http://localhost:5691/__cypress/runner/cypress_runner.js:1701:18)
    at Promise._fulfill (http://localhost:5691/__cypress/runner/cypress_runner.js:1645:18)
    at <unknown> (http://localhost:5691/__cypress/runner/cypress_runner.js:5450:46)
From Your Spec Code:
    at openAlertAssigningActionMenu (webpack:///./tasks/alert_assignments.ts:61:41)
    at updateAssigneesForAlert (webpack:///./tasks/alert_assignments.ts:172:2)
    at Context.eval (webpack:///./e2e/detection_response/detection_engine/detection_alerts/assignments/assignments.cy.ts:106:30)

First failure: CI Build - main

kibanamachine avatar Dec 05 '23 17:12 kibanamachine

New failure: CI Build - 8.12

kibanamachine avatar Dec 08 '23 17:12 kibanamachine

New failure: CI Build - main

kibanamachine avatar Dec 11 '23 12:12 kibanamachine

New failure: CI Build - main

kibanamachine avatar Dec 11 '23 15:12 kibanamachine

New failure: CI Build - 8.12

kibanamachine avatar Dec 11 '23 21:12 kibanamachine

Skipped.

main: 8a94bac 8.12: c87b62d

mistic avatar Dec 12 '23 00:12 mistic

Addressed in https://github.com/elastic/kibana/pull/173284

yctercero avatar Dec 14 '23 21:12 yctercero

New failure: CI Build - main

kibanamachine avatar Dec 28 '23 15:12 kibanamachine

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

elasticmachine avatar Jan 03 '24 10:01 elasticmachine

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

elasticmachine avatar Jan 03 '24 10:01 elasticmachine

We refactored these tests in https://github.com/elastic/kibana/pull/176930 also the last failure happened more than two months ago. Closing it for now.

cc @yctercero

e40pud avatar Mar 06 '24 14:03 e40pud