Skip to content

Commit

Permalink
adjusments
Browse files Browse the repository at this point in the history
  • Loading branch information
MadameSheema committed Oct 30, 2023
1 parent 9861c5b commit db7574a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ describe(`Detections : Page Filters`, { tags: ['@ess', '@serverless'] }, () => {
it(`URL is updated when filters are updated`, () => {
openPageFilterPopover(1);
cy.get(OPTION_SELECTABLE(1, 'high')).should('be.visible');
cy.get(OPTION_SELECTABLE(1, 'high')).click({});
cy.get(OPTION_SELECTABLE(1, 'high')).click();
closePageFilterPopover(1);

const NEW_FILTERS = DEFAULT_DETECTION_PAGE_FILTERS.map((filter) => {
Expand Down Expand Up @@ -327,14 +327,11 @@ describe(`Detections : Page Filters`, { tags: ['@ess', '@serverless'] }, () => {
});

context('Impact of inputs', () => {
afterEach(() => {
resetFilters();
});
it('should recover from invalid kql Query result', () => {
// do an invalid search
//
kqlSearch('\\');
cy.get(ALERTS_REFRESH_BTN).trigger('click');
cy.get(ALERTS_REFRESH_BTN).click();
waitForPageFilters();
cy.get(TOASTER).should('contain.text', 'KQLSyntaxError');
togglePageFilterPopover(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const refreshAlertPageFilter = () => {
};

export const togglePageFilterPopover = (filterIndex: number) => {
cy.get(OPTION_LIST_VALUES(filterIndex)).click({ force: true });
cy.get(OPTION_LIST_VALUES(filterIndex)).click();
};

export const openPageFilterPopover = (filterIndex: number) => {
Expand Down

0 comments on commit db7574a

Please sign in to comment.