diff --git a/app/client/cypress/support/Pages/AggregateHelper.ts b/app/client/cypress/support/Pages/AggregateHelper.ts index 742336eba1..b46d97cb55 100644 --- a/app/client/cypress/support/Pages/AggregateHelper.ts +++ b/app/client/cypress/support/Pages/AggregateHelper.ts @@ -467,9 +467,20 @@ export class AggregateHelper { cy.xpath(this.locator._actionTextArea(actionName)) .eq(index) .scrollIntoView() - .focus() - .type("{uparrow}", { force: true }) - .type("{ctrl}{shift}{downarrow}{del}", { force: true }); + .parents(".CodeMirror") + .first() + .then((ins: any) => { + const input = ins[0].CodeMirror; + input.focus(); + this.Sleep(200); + input.setValue(""); + this.Sleep(200); + }); + + //Not working consistenly, hence commenting + // .focus() + // .type("{uparrow}", { force: true }) + // .type("{ctrl}{shift}{downarrow}{del}", { force: true }); cy.focused().then(($cm: any) => { if ($cm.contents != "") { cy.log("The field is not empty");