Skip to content

Commit d956bc8

Browse files
committed
try to fix flake
1 parent 7451304 commit d956bc8

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

x-pack/solutions/security/test/security_solution_cypress/cypress/tasks/alerts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,10 @@ export const showTopNAlertProperty = (propertySelector: string, rowIndex: number
454454
export const waitForAlerts = () => {
455455
waitForPageFilters();
456456
cy.get(REFRESH_BUTTON).should('not.have.attr', 'aria-label', 'Needs updating');
457+
cy.waitForNetworkIdle('/internal/search/privateRuleRegistryAlertsSearchStrategy', 500);
457458
cy.get(DATAGRID_CHANGES_IN_PROGRESS).should('not.be.true');
458459
cy.get(EVENT_CONTAINER_TABLE_LOADING).should('not.exist');
459460
cy.get(LOADING_INDICATOR).should('not.exist');
460-
cy.waitForNetworkIdle('/internal/search/privateRuleRegistryAlertsSearchStrategy', 500);
461461
};
462462

463463
export const scrollAlertTableColumnIntoView = (columnSelector: string) => {

x-pack/solutions/security/test/security_solution_cypress/cypress/tasks/create_new_rule.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@ export const waitForAlertsToPopulate = (alertCountThreshold = 1) => {
901901
() => {
902902
cy.log('Waiting for alerts to appear');
903903
refreshPage();
904+
cy.waitForNetworkIdle('/internal/search/privateRuleRegistryAlertsSearchStrategy', 500);
904905
cy.get([EMPTY_ALERT_TABLE, ALERTS_TABLE_COUNT].join(', '));
905906
return cy.root().then(($el) => {
906907
const emptyTableState = $el.find(EMPTY_ALERT_TABLE);

0 commit comments

Comments
 (0)