Skip to content

Commit

Permalink
fixed flaky test
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
amsiglan committed Sep 5, 2023
1 parent 754f1dd commit 0160b8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/integration/1_detectors.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ const validatePendingFieldMappingsPanel = (mappings) => {
const fillDetailsForm = (detectorName, dataSource) => {
getNameField().type(detectorName);
getDataSourceField().selectComboboxItem(dataSource);
getDataSourceField().blur();
getLogTypeField().selectComboboxItem(cypressLogTypeDns);
getLogTypeField().blur();
};
Expand Down Expand Up @@ -371,7 +372,7 @@ describe('Detectors', () => {
getDataSourceField().selectComboboxItem(cypressIndexWindows);
getDataSourceField().focus().blur();

cy.get('.euiCallOut')
cy.get('[data-test-subj="define-detector-diff-log-types-warning"]')
.should('be.visible')
.contains(
'To avoid issues with field mappings, we recommend creating separate detectors for different log types.'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export default class DetectorDataSource extends Component<
<EuiCallOut
title="The selected log sources contain different log types"
color="warning"
data-test-subj={'define-detector-diff-log-types-warning'}
>
<EuiTextColor color={'default'}>
To avoid issues with field mappings, we recommend creating separate detectors for
Expand Down

0 comments on commit 0160b8b

Please sign in to comment.