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 749b34f commit 35c2031
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cypress/integration/1_detectors.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,9 @@ describe('Detectors', () => {
});

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

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

0 comments on commit 35c2031

Please sign in to comment.