Skip to content

Commit

Permalink
fixes indicator_match_rule.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ecezalp committed Aug 17, 2021
1 parent af051eb commit 567ccd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('indicator match', () => {
const expectedTags = getNewThreatIndicatorRule().tags.join('');
const expectedMitre = formatMitreAttackDescription(getNewThreatIndicatorRule().mitre);
const expectedNumberOfRules = 1;
const expectedNumberOfAlerts = 1;
const expectedNumberOfAlerts = '1 alert';

before(() => {
cleanKibana();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export const fillIndexAndIndicatorIndexPattern = (
) => {
getIndexPatternClearButton().click();
getIndicatorIndex().type(`${indexPattern}{enter}`);
getIndicatorIndicatorIndex().type(`${indicatorIndex}{enter}`);
getIndicatorIndicatorIndex().type(`{backspace}{enter}${indicatorIndex}{enter}`);
};

export const fillEmailConnectorForm = (connector: EmailConnector = getEmailConnector()) => {
Expand Down Expand Up @@ -447,7 +447,7 @@ export const getIndicatorIndicatorIndex = () =>
cy.get(THREAT_MATCH_INDICATOR_INDICATOR_INDEX).eq(0);

/** Returns the index pattern's clear button */
export const getIndexPatternClearButton = () => cy.get(COMBO_BOX_CLEAR_BTN).first();
export const getIndexPatternClearButton = () => cy.get(COMBO_BOX_CLEAR_BTN).should('exist').first();

/** Returns the custom query input */
export const getCustomQueryInput = () => cy.get(THREAT_MATCH_CUSTOM_QUERY_INPUT).eq(0);
Expand Down

0 comments on commit 567ccd5

Please sign in to comment.