Skip to content

Commit

Permalink
[FEATURE] Add cypress custom commands to support better type events o…
Browse files Browse the repository at this point in the history
…pensearch-project#364

Signed-off-by: Jovan Cvetkovic <[email protected]>
  • Loading branch information
jovancvetkovic3006 committed Jan 14, 2023
1 parent 35c2031 commit 2fc036f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cypress/integration/1_detectors.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,10 @@ describe('Detectors', () => {
});

// Change detector name
cy.get(`input[placeholder="Enter a name for the detector."]`).type(
'{selectall}{backspace}test detector edited'
);
cy.get(`input[placeholder="Enter a name for the detector."]`)
.realClick()
.ospClear()
.realType('test detector edited');

// Change detector description
cy.get(`[data-test-subj="define-detector-detector-description"]`)
Expand Down

0 comments on commit 2fc036f

Please sign in to comment.