test: Cypress - Flaky fix (#22248)
## Description - This PR fixes below flaky test in CI - by improving the EnterActionValue() agHelper metod: - setInterval_spec.js ## Type of change - Script fix (non-breaking change which fixes CI failure) ## How Has This Been Tested? - Cypress local run ## Checklist: ### QA activity: - [X] Added Test Plan Approved label after reviewing all changes
This commit is contained in:
parent
217c40b20b
commit
00695e0600
|
|
@ -467,9 +467,20 @@ export class AggregateHelper {
|
||||||
cy.xpath(this.locator._actionTextArea(actionName))
|
cy.xpath(this.locator._actionTextArea(actionName))
|
||||||
.eq(index)
|
.eq(index)
|
||||||
.scrollIntoView()
|
.scrollIntoView()
|
||||||
.focus()
|
.parents(".CodeMirror")
|
||||||
.type("{uparrow}", { force: true })
|
.first()
|
||||||
.type("{ctrl}{shift}{downarrow}{del}", { force: true });
|
.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) => {
|
cy.focused().then(($cm: any) => {
|
||||||
if ($cm.contents != "") {
|
if ($cm.contents != "") {
|
||||||
cy.log("The field is not empty");
|
cy.log("The field is not empty");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user