diff --git a/x-pack/plugins/security_solution/cypress/tasks/alerts_detection_rules.ts b/x-pack/plugins/security_solution/cypress/tasks/alerts_detection_rules.ts index a260f3ec489558..c33eb82963f88a 100644 --- a/x-pack/plugins/security_solution/cypress/tasks/alerts_detection_rules.ts +++ b/x-pack/plugins/security_solution/cypress/tasks/alerts_detection_rules.ts @@ -205,9 +205,10 @@ export const waitForRulesTableToBeAutoRefreshed = () => { }; export const waitForPrebuiltDetectionRulesToBeLoaded = () => { - cy.get(LOAD_PREBUILT_RULES_BTN).should('not.exist'); - cy.get(RULES_TABLE).should('exist'); - cy.get(RULES_TABLE_REFRESH_INDICATOR).should('not.exist'); + // Wait up to 5 minutes for the rules to load as in CI containers this can be very slow + cy.get(LOAD_PREBUILT_RULES_BTN, { timeout: 300000 }).should('not.exist'); + cy.get(RULES_TABLE, { timeout: 300000 }).should('exist'); + cy.get(RULES_TABLE_REFRESH_INDICATOR, { timeout: 300000 }).should('not.exist'); }; export const waitForRuleToChangeStatus = () => {