Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Solution] Unblocks main #130771

Merged
merged 2 commits into from
Apr 21, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ import {
SHOWING_RULES_TEXT,
} from '../../screens/alerts_detection_rules';
import {
ABOUT_CONTINUE_BTN,
ABOUT_EDIT_BUTTON,
// ABOUT_CONTINUE_BTN,
// ABOUT_EDIT_BUTTON,
ACTIONS_THROTTLE_INPUT,
CUSTOM_QUERY_INPUT,
DEFINE_CONTINUE_BUTTON,
DEFINE_EDIT_BUTTON,
// DEFINE_CONTINUE_BUTTON,
// DEFINE_EDIT_BUTTON,
DEFINE_INDEX_INPUT,
DEFAULT_RISK_SCORE_INPUT,
RULE_DESCRIPTION_INPUT,
Expand Down Expand Up @@ -134,6 +134,7 @@ describe('Custom query rules', () => {
fillAboutRuleAndContinue(this.rule);
fillScheduleRuleAndContinue(this.rule);

/* Commenting this piece of code due to the following issue: https://github.com/elastic/kibana/issues/130767
// expect define step to repopulate
cy.get(DEFINE_EDIT_BUTTON).click();
cy.get(CUSTOM_QUERY_INPUT).should('have.value', this.rule.customQuery);
Expand All @@ -144,7 +145,7 @@ describe('Custom query rules', () => {
cy.get(ABOUT_EDIT_BUTTON).click();
cy.get(RULE_NAME_INPUT).invoke('val').should('eql', this.rule.name);
cy.get(ABOUT_CONTINUE_BTN).should('exist').click({ force: true });
cy.get(ABOUT_CONTINUE_BTN).should('not.exist');
cy.get(ABOUT_CONTINUE_BTN).should('not.exist'); */

createAndEnableRule();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,14 @@ describe('indicator match', () => {
visitWithoutDateRange(RULE_CREATION);
selectIndicatorMatchType();
});
it('Has a default set of *:*', () => {

// Unskip once https://github.com/elastic/kibana/issues/130770 is fixed
it.skip('Has a default set of *:*', () => {
getCustomQueryInput().should('have.text', '*:*');
});

it('Shows invalidation text if text is removed', () => {
// Unskip once https://github.com/elastic/kibana/issues/1307707 is fixed
it.skip('Shows invalidation text if text is removed', () => {
getCustomQueryInput().type('{selectall}{del}');
getCustomQueryInvalidationText().should('exist');
});
Expand Down Expand Up @@ -398,7 +401,8 @@ describe('indicator match', () => {
});

describe('Schedule', () => {
it('IM rule has 1h time interval and lookback by default', () => {
// Unskip once https://github.com/elastic/kibana/issues/1307707 is fixed
it.skip('IM rule has 1h time interval and lookback by default', () => {
visitWithoutDateRange(RULE_CREATION);
selectIndicatorMatchType();
fillDefineIndicatorMatchRuleAndContinue(getNewThreatIndicatorRule());
Expand All @@ -417,7 +421,8 @@ describe('indicator match', () => {
deleteAlertsAndRules();
});

it('Creates and enables a new Indicator Match rule', () => {
// Unskip once https://github.com/elastic/kibana/issues/1307707 is fixed
it.skip('Creates and enables a new Indicator Match rule', () => {
visitWithoutDateRange(RULE_CREATION);
selectIndicatorMatchType();
fillDefineIndicatorMatchRuleAndContinue(getNewThreatIndicatorRule());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ACTIONS_THROTTLE_INPUT =

export const EMAIL_ACTION_BTN = '[data-test-subj=".email-ActionTypeSelectOption"]';

export const CREATE_ACTION_CONNECTOR_BTN = '[data-test-subj="createActionConnectorButton-0"]';
export const CREATE_ACTION_CONNECTOR_BTN = '[data-test-subj="addNewActionConnectorButton-.email"]';

export const SAVE_ACTION_CONNECTOR_BTN = '[data-test-subj="saveActionButtonModal"]';

Expand Down