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: [MKI][QA][Periodic] "before each" hook for "should substitute parameters in investigation guide" - Alert Event Details - dynamic params "before each" hook for "should substitute parameters in investigation guide" #207919

Open
kibanamachine opened this issue Jan 22, 2025 · 1 comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test needs-team Issues missing a team label

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Jan 22, 2025

A test failed on a tracked branch

CypressError: Timed out retrying after 60000ms: The command was expected to run against origin `https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud` but the application is at origin `https://console.qa.cld.elstc.co`.

This commonly happens when you have either not navigated to the expected origin or have navigated away unexpectedly.

Using `cy.origin()` to wrap the commands run on `https://console.qa.cld.elstc.co` will likely fix this issue.

`cy.origin('https://console.qa.cld.elstc.co', () => {`
`  <commands targeting https://console.qa.cld.elstc.co go here>`
`})`

https://on.cypress.io/cy-visit-succeeded-but-commands-fail

Because this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `Alert Event Details - dynam...`
    at cypressErr (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:76065:18)
    at Object.errByPath (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:76119:10)
    at Object.commandCanCommunicateWithAUT (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:145064:90)
    at <unknown> (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:131970:22)
    at HTMLBodyElement.<anonymous> (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:132109:23)
    at Function.each (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:7274:19)
    at jQuery.fn.init.each (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:7109:17)
    at <unknown> (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:132107:15)
    at Object.subjectFn (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:143866:16)
    at $Cy.verifyUpcomingAssertions (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:143205:31)
    at onRetry (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:143857:15)
    at tryCatcher (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:1830:23)
    at Promise.attempt.Promise.try (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:4338:29)
    at whenStable (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:143744:68)
    at <unknown> (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:143685:14)
    at tryCatcher (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:1830:23)
    at Promise._settlePromiseFromHandler (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:1542:31)
    at Promise._settlePromise (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:1599:18)
    at Promise._settlePromise0 (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:1644:10)
    at Promise._settlePromises (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:1724:18)
    at Promise._fulfill (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:1668:18)
    at <unknown> (https://kibana-cypress-security-solution-ephemeral-5f658b4-f08ae7.kb.eu-west-1.aws.qa.elastic.cloud/__cypress/runner/cypress_runner.js:5473:46)
From Your Spec Code:
    at clickRuleName (webpack:///./tasks/live_query.ts:184:5)
    at loadRuleAlerts (webpack:///./tasks/live_query.ts:125:2)
    at Context.eval (webpack:///./e2e/all/alerts_multiple_agents.cy.ts:40:21)

First failure: kibana-serverless-security-solution-quality-gate-defend-workflows - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Jan 22, 2025
@botelastic botelastic bot added the needs-team Issues missing a team label label Jan 22, 2025
@kibanamachine
Copy link
Contributor Author

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 needs-team Issues missing a team label
Projects
None yet
Development

No branches or pull requests

1 participant