Force popover click for manual rule run (#211623)

## Summary

Similar to other place which use this popover, let's try force click to
fix flaky tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Khristinin Nikita 2025-02-21 16:00:04 +01:00 committed by GitHub
parent 6a6f0e70b3
commit 99c84fcc3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,14 +132,14 @@ export const deleteFirstRule = () => {
};
export const deleteRuleFromDetailsPage = () => {
cy.get(POPOVER_ACTIONS_TRIGGER_BUTTON).click();
cy.get(POPOVER_ACTIONS_TRIGGER_BUTTON).click({ force: true });
cy.get(RULE_DETAILS_DELETE_BTN).click();
cy.get(RULE_DETAILS_DELETE_BTN).should('not.exist');
cy.get(CONFIRM_DELETE_RULE_BTN).click();
};
export const manualRuleRunFromDetailsPage = () => {
cy.get(POPOVER_ACTIONS_TRIGGER_BUTTON).click();
cy.get(POPOVER_ACTIONS_TRIGGER_BUTTON).click({ force: true });
cy.get(RULE_DETAILS_MANUAL_RULE_RUN_BTN).click();
cy.get(RULE_DETAILS_MANUAL_RULE_RUN_BTN).should('not.exist');
cy.get(MODAL_CONFIRMATION_BTN).click();