Skip to content

Commit

Permalink
fixed cypress test
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
  • Loading branch information
amsiglan committed Aug 8, 2023
1 parent 91b1f26 commit 73f3ed9
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions cypress/integration/composite_level_monitor_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ describe('CompositeLevelMonitor', () => {
cy.get('input[name="name"]').type(SAMPLE_VISUAL_EDITOR_MONITOR);

// Select associated monitors
cy.get('[data-test-subj="monitors_list_0"]')
.type('monitorOne', { delay: 50 })
.type('{enter}');
cy.get('[data-test-subj="monitors_list_1"]')
.type('monitorTwo', { delay: 50 })
.type('{enter}');
cy.get('[data-test-subj="monitors_list_0"]').type('monitorOne', { delay: 50 });
cy.get('[title="monitorOne"]').click({ force: true });

cy.get('[data-test-subj="monitors_list_1"]').type('monitorTwo', { delay: 50 });
cy.get('[title="monitorTwo"]').click({ force: true });

cy.get('button').contains('Add trigger').click({ force: true });

Expand Down Expand Up @@ -138,9 +137,8 @@ describe('CompositeLevelMonitor', () => {

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

cy.get('[data-test-subj="monitors_list_2"]')
.type('monitorThree', { delay: 50 })
.type('{enter}');
cy.get('[data-test-subj="monitors_list_2"]').type('monitorThree', { delay: 50 });
cy.get('[title="monitorThree"]').click({ force: true });

cy.get('button').contains('Composite trigger').click({ force: true });

Expand Down

0 comments on commit 73f3ed9

Please sign in to comment.