Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Sep 13, 2023
1 parent 6139b52 commit c3e7dc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ describe('Alert details flyout', { tags: ['@ess', '@serverless', '@brokenInServe
beforeEach(() => {
login();
disableExpandableFlyout();
visit(ALERTS_URL);
visitWithTimeRange(ALERTS_URL);
waitForAlertsToPopulate();
expandFirstAlert();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
import { createRule } from '../../../tasks/api_calls/rules';
import { cleanKibana } from '../../../tasks/common';
import { login } from '../../../tasks/login';
import { visit } from '../../../tasks/navigation';
import { visitWithTimeRange } from '../../../tasks/navigation';
import { ALERTS_URL } from '../../../urls/navigation';
import {
closePageFilterPopover,
Expand Down Expand Up @@ -116,7 +116,7 @@ describe(`Detections : Page Filters`, { tags: ['@ess', '@brokenInServerless'] },

beforeEach(() => {
login();
visit(ALERTS_URL);
visitWithTimeRange(ALERTS_URL);
waitForAlerts();
resetFilters();
});
Expand All @@ -128,7 +128,7 @@ describe(`Detections : Page Filters`, { tags: ['@ess', '@brokenInServerless'] },
context('Alert Page Filters Customization ', () => {
beforeEach(() => {
login();
visit(ALERTS_URL);
visitWithTimeRange(ALERTS_URL);
waitForAlerts();
});

Expand Down Expand Up @@ -197,7 +197,7 @@ describe(`Detections : Page Filters`, { tags: ['@ess', '@brokenInServerless'] },
const currURL = new URL(url);

currURL.searchParams.set('pageFilters', encode(formatPageFilterSearchParam(NEW_FILTERS)));
visit(currURL.toString());
visitWithTimeRange(currURL.toString());
waitForAlerts();
assertFilterControlsWithFilterObject(NEW_FILTERS);
});
Expand All @@ -218,7 +218,7 @@ describe(`Detections : Page Filters`, { tags: ['@ess', '@brokenInServerless'] },
const currURL = new URL(url);

currURL.searchParams.set('pageFilters', encode(pageFilterUrlString));
visit(currURL.toString());
visitWithTimeRange(currURL.toString());

waitForAlerts();
cy.get(OPTION_LIST_LABELS).should((sub) => {
Expand Down

0 comments on commit c3e7dc4

Please sign in to comment.