Skip to content

Commit

Permalink
Increased more timeouts for the slow CI system
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankHassanabad committed Jul 15, 2021
1 parent 21b624c commit ccb5f43
Showing 1 changed file with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,18 @@ describe('Actions with prebuilt rules', () => {
'have.text',
`Elastic rules (${expectedNumberOfRulesAfterDeletion})`
);
cy.get(RELOAD_PREBUILT_RULES_BTN).should('exist');
cy.get(RELOAD_PREBUILT_RULES_BTN).should('have.text', 'Install 1 Elastic prebuilt rule ');

// Have to add a 5 minute timeout wait as this can timeout on slow CI system
cy.get(RELOAD_PREBUILT_RULES_BTN, { timeout: 300000 }).should('exist');
cy.get(RELOAD_PREBUILT_RULES_BTN, { timeout: 300000 }).should(
'have.text',
'Install 1 Elastic prebuilt rule '
);

reloadDeletedRules();

cy.get(RELOAD_PREBUILT_RULES_BTN).should('not.exist');
// Have to add a 5 minute timeout wait as this can timeout on slow CI system
cy.get(RELOAD_PREBUILT_RULES_BTN, { timeout: 300000 }).should('not.exist');

cy.reload();
changeRowsPerPageTo100();
Expand All @@ -154,8 +160,9 @@ describe('Actions with prebuilt rules', () => {
cy.reload();
changeRowsPerPageTo100();

cy.get(RELOAD_PREBUILT_RULES_BTN).should('exist');
cy.get(RELOAD_PREBUILT_RULES_BTN).should(
// Have to add a 5 minute timeout wait as this can timeout on slow CI system
cy.get(RELOAD_PREBUILT_RULES_BTN, { timeout: 300000 }).should('exist');
cy.get(RELOAD_PREBUILT_RULES_BTN, { timeout: 300000 }).should(
'have.text',
`Install ${numberOfRulesToBeSelected} Elastic prebuilt rules `
);
Expand All @@ -166,7 +173,8 @@ describe('Actions with prebuilt rules', () => {

reloadDeletedRules();

cy.get(RELOAD_PREBUILT_RULES_BTN).should('not.exist');
// Have to add a 5 minute timeout wait as this can timeout on slow CI system
cy.get(RELOAD_PREBUILT_RULES_BTN, { timeout: 300000 }).should('not.exist');

cy.reload();
changeRowsPerPageTo100();
Expand Down

0 comments on commit ccb5f43

Please sign in to comment.