Skip to content

Commit

Permalink
Added short wait, and force button click to help reduce flakiness.
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Sep 30, 2024
1 parent fb85e41 commit 7dee226
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ describe('CompositeLevelMonitor', () => {
cy.visit(
`${BASE_PATH}/app/${ALERTING_PLUGIN_NAME}#/monitors/${createdMonitor._id}?action=update-monitor&type=workflow`
);

// Adding 5 second wait to help reduce flakiness
cy.wait(5000);
} else {
cy.log(
'Failed to get created monitor ',
Expand All @@ -174,7 +177,7 @@ describe('CompositeLevelMonitor', () => {

cy.get('label').contains('Visual editor').click({ force: true });

cy.contains('Add another monitor').click();
cy.contains('Add another monitor').click({ force: true });

cy.get('[id="associatedMonitorsList_2"]').type(
'monitorThree{downArrow}{enter}',
Expand Down

0 comments on commit 7dee226

Please sign in to comment.