[Security Solution][Detections] Fixes broken cypress test (#109533)

## Summary

Fixes `acknowledged.spec.ts` test that is currently failing on some ci builds

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
This commit is contained in:
Davis Plumlee 2021-08-20 17:05:48 -04:00 committed by GitHub
parent f4e18d47c0
commit 0ebe3c6b09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ describe('Marking alerts as acknowledged', () => {
refreshPage();
waitForAlertsToBeLoaded();
goToOpenedAlerts();
waitForAlertsToBeLoaded();
const expectedNumberOfAlerts = +numberOfAlerts - numberOfAlertsToBeMarkedAcknowledged;
cy.get(ALERTS_COUNT).should('have.text', `${expectedNumberOfAlerts} alerts`);