Skip to content

Commit

Permalink
fixed cypress tests
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
  • Loading branch information
amsiglan committed Mar 16, 2024
1 parent f38b5ce commit 667e3d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/integration/1_detectors.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ describe('Detectors', () => {
// Waiting for Actions menu button to be enabled
cy.wait(1000);

setupIntercept(cy, '/_plugins/_security_analytics/detectors/_search', 'detectorsSearch');
cy.intercept('/detectors/_search').as('detectorsSearch');

cy.get('[data-test-subj="detectorsActionsButton').click({ force: true });
cy.get('[data-test-subj="toggleDetectorButton').contains('Stop');
Expand All @@ -517,7 +517,7 @@ describe('Detectors', () => {
// Need this extra wait time for the Actions button to become enabled again
cy.wait(1000);

setupIntercept(cy, '/_plugins/_security_analytics/detectors/_search', 'detectorsSearch');
cy.intercept('/detectors/_search').as('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 });
Expand Down

0 comments on commit 667e3d8

Please sign in to comment.