Skip to content

Commit

Permalink
Added the code to hopefully the correct spot
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankHassanabad committed Jul 15, 2021
1 parent 6c23e77 commit 21b624c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 21b624c

Please sign in to comment.