Skip to content

Commit

Permalink
forcing name typing (#865)
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
amsiglan committed Sep 19, 2023
1 parent 3483571 commit 34db037
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,26 +71,30 @@ describe('CompositeLevelMonitor', () => {
cy.get('[data-test-subj="visualEditorRadioCard"]').click({ force: true });

// Wait for input to load and then type in the monitor name
cy.get('input[name="name"]').type(SAMPLE_VISUAL_EDITOR_MONITOR);
cy.get('input[name="name"]').type(SAMPLE_VISUAL_EDITOR_MONITOR, {
force: true,
});

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

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

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

// Type trigger name
cy.get('[data-test-subj="composite-trigger-name"]')
.type('{selectall}')
.type('{backspace}')
.type('Composite trigger');
.type('{selectall}', { force: true })
.type('{backspace}', { force: true })
.type('Composite trigger', { force: true });

cy.intercept('api/alerting/workflows').as('createMonitorRequest');
cy.intercept(`api/alerting/monitors?*`).as('getMonitorsRequest');
Expand Down

0 comments on commit 34db037

Please sign in to comment.