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/detection_response/detection_engine/detection_alerts/assignments/assignments·cy·ts - Alert user assignment - ESS & Serverless Basic rendering alert with some assignees in alerts table alert with some assignees in alerts table #172894

Closed
kibanamachine opened this issue Dec 7, 2023 · 6 comments
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Detection Engine Security Solution Detection Engine Area Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. triage_needed

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Dec 7, 2023

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:5676/__cypress/runner/cypress_runner.js:112097:74)
    at tryCatcher (http://localhost:5676/__cypress/runner/cypress_runner.js:1807:23)
    at Promise.attempt.Promise.try (http://localhost:5676/__cypress/runner/cypress_runner.js:4315:29)
    at whenStable (http://localhost:5676/__cypress/runner/cypress_runner.js:143908:68)
    at <unknown> (http://localhost:5676/__cypress/runner/cypress_runner.js:143849:14)
    at tryCatcher (http://localhost:5676/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (http://localhost:5676/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (http://localhost:5676/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (http://localhost:5676/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (http://localhost:5676/__cypress/runner/cypress_runner.js:1701:18)
    at Promise._fulfill (http://localhost:5676/__cypress/runner/cypress_runner.js:1645:18)
    at <unknown> (http://localhost:5676/__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:81:30)

First failure: CI Build - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Dec 7, 2023
@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 7, 2023
@mistic mistic added the Team:Detection Engine Security Solution Detection Engine Area label Dec 8, 2023
@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 8, 2023
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - 8.12

@banderror banderror added triage_needed Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. labels Dec 15, 2023
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

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

@yctercero yctercero removed their assignment Jan 2, 2024
@e40pud
Copy link
Contributor

e40pud commented Mar 6, 2024

We refactored these tests in #176930 also the last failure happened three months ago. Closing it for now.

cc @yctercero

@e40pud e40pud closed this as completed Mar 6, 2024
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:Detection Engine Security Solution Detection Engine Area Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. triage_needed
Projects
None yet
Development

No branches or pull requests

6 participants