Skip to content

Commit

Permalink
adds condition in cypress test to ensure complete tier cases action i…
Browse files Browse the repository at this point in the history
…s not displayed in essentials tier
  • Loading branch information
dhurley14 committed Jul 16, 2024
1 parent ee5ae09 commit cc33a01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
XMATTERS_ACTION_BTN,
SERVER_LOG_ACTION_BTN,
ACTION_BTN,
CASES_SYSTEM_ACTION_BTN,
} from '../../../../screens/common/rule_actions';

import { createRule } from '../../../../tasks/api_calls/rules';
Expand Down Expand Up @@ -68,6 +69,7 @@ describe(
cy.get(WEBHOOK_ACTION_BTN).should('not.exist');
cy.get(XMATTERS_ACTION_BTN).should('not.exist');
cy.get(SERVER_LOG_ACTION_BTN).should('not.exist');
cy.get(CASES_SYSTEM_ACTION_BTN).should('not.exist');
});
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const SERVER_LOG_ACTION_BTN = '[data-test-subj=".server-log-siem-ActionTy

export const XMATTERS_ACTION_BTN = '[data-test-subj=".xmatters-siem-ActionTypeSelectOption"]';

export const CASES_SYSTEM_ACTION_BTN = '[data-test-subj=".cases-siem-ActionTypeSelectOption"]';

/**
* all rule actions buttons, elements which data-test-subj attribute ends with '-siem-ActionTypeSelectOption'
*/
Expand Down

0 comments on commit cc33a01

Please sign in to comment.