Skip to content

Commit

Permalink
[Security Solution] Fix Cypress tests to account for combobox changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Sep 29, 2023
1 parent 85e2c70 commit d8f4370
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ describe('indicator match', { tags: ['@ess', '@serverless', '@brokenInServerless
validColumns: 'indicatorField',
});
getIndicatorDeleteButton().click();
getIndicatorIndexComboField().should('have.text', 'agent.name');
getIndicatorIndexComboField().find('input').should('have.value', 'agent.name');
getIndicatorMappingComboField().should(
'have.text',
getNewThreatIndicatorRule().threat_mapping[0].entries[0].value
Expand All @@ -309,7 +309,9 @@ describe('indicator match', { tags: ['@ess', '@serverless', '@brokenInServerless
validColumns: 'indexField',
});
getIndicatorDeleteButton().click();
getIndicatorMappingComboField().should('have.text', 'second-non-existent-value');
getIndicatorMappingComboField()
.find('input')
.should('have.value', 'second-non-existent-value');
getIndicatorIndexComboField(2).should('not.exist');
getIndicatorMappingComboField(2).should('not.exist');
});
Expand All @@ -328,7 +330,9 @@ describe('indicator match', { tags: ['@ess', '@serverless', '@brokenInServerless
validColumns: 'indicatorField',
});
getIndicatorDeleteButton().click();
getIndicatorIndexComboField().should('have.text', 'second-non-existent-value');
getIndicatorIndexComboField()
.find('input')
.should('have.value', 'second-non-existent-value');
getIndicatorIndexComboField(2).should('not.exist');
getIndicatorMappingComboField(2).should('not.exist');
});
Expand Down

0 comments on commit d8f4370

Please sign in to comment.