[8.10] Failing test: Security Solution Cypress.x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_creation/custom_query_rule·cy·ts - Custom query rules Custom detection rules deletion and edition Deletion Deletes one (#164345)

# Backport

This will backport the following commits from `main` to `8.10`:
- [Failing test: Security Solution
Cypress.x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_creation/custom_query_rule·cy·ts
- Custom query rules Custom detection rules deletion and edition
Deletion Deletes one rule from detail page Deletes one rule from detail
page #163977 (#164327)](https://github.com/elastic/kibana/pull/164327)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Ievgen
Sorokopud","email":"ievgen.sorokopud@elastic.co"},"sourceCommit":{"committedDate":"2023-08-21T18:36:44Z","message":"Failing
test: Security Solution
Cypress.x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_creation/custom_query_rule·cy·ts
- Custom query rules Custom detection rules deletion and edition
Deletion Deletes one rule from detail page Deletes one rule from detail
page #163977 (#164327)\n\n## Summary\r\n\r\nFixes:
https://github.com/elastic/kibana/issues/163977\r\nFixes:
https://github.com/elastic/kibana/issues/163568\r\n\r\nThese changes fix
the issue with actions popover and the way we check\r\nwhether it is
closed on rule's detail page.\r\n\r\nThe issue happens due to the fact
that after we closed the popover we\r\nshould be testing
`should('not.exist')` instead
of\r\n`should('not.be.visible')`.","sha":"49f95280518d9c3c75a6efd1f2ca488fac18eaf4","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:
SecuritySolution","Team:Detection
Engine","v8.10.0","v8.11.0"],"number":164327,"url":"https://github.com/elastic/kibana/pull/164327","mergeCommit":{"message":"Failing
test: Security Solution
Cypress.x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_creation/custom_query_rule·cy·ts
- Custom query rules Custom detection rules deletion and edition
Deletion Deletes one rule from detail page Deletes one rule from detail
page #163977 (#164327)\n\n## Summary\r\n\r\nFixes:
https://github.com/elastic/kibana/issues/163977\r\nFixes:
https://github.com/elastic/kibana/issues/163568\r\n\r\nThese changes fix
the issue with actions popover and the way we check\r\nwhether it is
closed on rule's detail page.\r\n\r\nThe issue happens due to the fact
that after we closed the popover we\r\nshould be testing
`should('not.exist')` instead
of\r\n`should('not.be.visible')`.","sha":"49f95280518d9c3c75a6efd1f2ca488fac18eaf4"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164327","number":164327,"mergeCommit":{"message":"Failing
test: Security Solution
Cypress.x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_creation/custom_query_rule·cy·ts
- Custom query rules Custom detection rules deletion and edition
Deletion Deletes one rule from detail page Deletes one rule from detail
page #163977 (#164327)\n\n## Summary\r\n\r\nFixes:
https://github.com/elastic/kibana/issues/163977\r\nFixes:
https://github.com/elastic/kibana/issues/163568\r\n\r\nThese changes fix
the issue with actions popover and the way we check\r\nwhether it is
closed on rule's detail page.\r\n\r\nThe issue happens due to the fact
that after we closed the popover we\r\nshould be testing
`should('not.exist')` instead
of\r\n`should('not.be.visible')`.","sha":"49f95280518d9c3c75a6efd1f2ca488fac18eaf4"}}]}]
BACKPORT-->

Co-authored-by: Ievgen Sorokopud <ievgen.sorokopud@elastic.co>
This commit is contained in:
Kibana Machine 2023-08-21 14:43:25 -04:00 committed by GitHub
parent 481e6d5a9a
commit 4997e3b03c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ export const deleteRuleFromDetailsPage = () => {
cy.wait(1000);
cy.get(ALL_ACTIONS).click();
cy.get(RULE_DETAILS_DELETE_BTN).click();
cy.get(RULE_DETAILS_DELETE_BTN).should('not.be.visible');
cy.get(RULE_DETAILS_DELETE_BTN).should('not.exist');
cy.get(CONFIRM_DELETE_RULE_BTN).click();
};