Skip to content

Commit

Permalink
wait longer for action button to become enabled (opensearch-project#983
Browse files Browse the repository at this point in the history
…) (opensearch-project#989)

(cherry picked from commit 3e01e16)

Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent ee272d9 commit c539151
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cypress/integration/1_detectors.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,17 +491,19 @@ describe('Detectors', () => {
cy.get('[data-test-subj="toggleDetectorButton').click({ force: true });

cy.wait('@detectorsSearch').should('have.property', 'state', 'Complete');

// Need this extra wait time for the Actions button to become enabled again
cy.wait(1000);
cy.wait(2000);

setupIntercept(cy, '/_plugins/_security_analytics/detectors/_search', 'detectorsSearch');
cy.get('[data-test-subj="detectorsActionsButton').click({ force: true });
cy.get('[data-test-subj="toggleDetectorButton').contains('Start');
cy.get('[data-test-subj="toggleDetectorButton').click({ force: true });

cy.wait('@detectorsSearch').should('have.property', 'state', 'Complete');

// Need this extra wait time for the Actions button to become enabled again
cy.wait(1000);
cy.wait(2000);

cy.get('[data-test-subj="detectorsActionsButton').click({ force: true });
cy.get('[data-test-subj="toggleDetectorButton').contains('Stop');
Expand Down

0 comments on commit c539151

Please sign in to comment.