Skip to content

Commit

Permalink
fixed cypress tests
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
amsiglan committed Oct 13, 2023
1 parent 4983178 commit e98bc41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 146 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/1_detectors.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const createDetector = (detectorName, dataSource, expectFailure) => {

cy.getElementByText('.euiAccordion .euiTitle', 'Detection rules (14 selected)')
.click({ force: true, timeout: 5000 })
.then(() => cy.contains('.euiTable .euiTableRow', 'Dns'));
.then(() => cy.contains('.euiTable .euiTableRow', 'DNS'));

cy.getElementByText('.euiAccordion .euiTitle', 'Configure field mapping - optional');
cy.get('[aria-controls="mappedTitleFieldsAccordion"]').then(($btn) => {
Expand Down
142 changes: 0 additions & 142 deletions cypress/integration/5_integrations.spec.js

This file was deleted.

5 changes: 2 additions & 3 deletions public/pages/Findings/components/FindingDetailsFlyout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import { CorrelationFinding, RuleItemInfoBase } from '../../../../types';
import { FindingFlyoutTabId, FindingFlyoutTabs } from '../utils/constants';
import { DataStore } from '../../../store/DataStore';
import { CorrelationsTable } from './CorrelationsTable/CorrelationsTable';
import { getLogTypeLabel } from '../../LogTypes/utils/helpers';

export interface FindingDetailsFlyoutBaseProps {
finding: FindingItemType;
Expand Down Expand Up @@ -249,9 +250,7 @@ export default class FindingDetailsFlyout extends Component<
label={'Log type'}
data-test-subj={'finding-details-flyout-rule-category'}
>
<EuiText>
{capitalizeFirstLetter(fullRule.category) || DEFAULT_EMPTY_DATA}
</EuiText>
<EuiText>{getLogTypeLabel(fullRule.category) || DEFAULT_EMPTY_DATA}</EuiText>
</EuiFormRow>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down

0 comments on commit e98bc41

Please sign in to comment.