Skip to content

Commit

Permalink
CreateAndFillApi()
Browse files Browse the repository at this point in the history
  • Loading branch information
Aishwarya-U-R committed Jan 4, 2024
1 parent bae36c4 commit cb6d11d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/client/cypress/support/Pages/AggregateHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1283,15 +1283,15 @@ export class AggregateHelper {
this.Sleep(200);
}
});
this.Sleep(); //for value set to settle
this.Sleep(); //for value set to register
}

public UpdateFieldInput(selector: string, value: string) {
this.GetElement(selector)
.find("input")
.invoke("attr", "value", value)
.trigger("input");
this.Sleep(); //for value set to settle
this.Sleep(); //for value set to register
}

public ValidateFieldInputValue(selector: string, value: string) {
Expand All @@ -1302,7 +1302,7 @@ export class AggregateHelper {
.then((inputValue) => {
expect(inputValue).to.equal(value);
});
this.Sleep(); //for value set to settle
this.Sleep(); //for value set to register
}

public UpdateTextArea(selector: string, value: string) {
Expand All @@ -1311,15 +1311,15 @@ export class AggregateHelper {
.first()
.invoke("val", value)
.trigger("input");
this.Sleep(500); //for value set to settle
this.Sleep(500); //for value set to register
}

public TypeIntoTextArea(selector: string, value: string) {
this.GetElement(selector)
.find("textarea")
.first()
.type(value, { delay: 0, force: true, parseSpecialCharSequences: false });
this.Sleep(500); //for value set to settle
this.Sleep(500); //for value set to register
}

public UpdateInputValue(selector: string, value: string, force = false) {
Expand Down
1 change: 1 addition & 0 deletions app/client/cypress/support/Pages/ApiPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export class ApiPage {
) {
this.CreateApi(apiName, apiVerb, aftDSSaved);
this.EnterURL(url);
this.agHelper.Sleep(); //Is needed for the entered url value to be registered, else failing locally & CI
this.AssertRunButtonDisability();
if (queryTimeout != 10000) this.SetAPITimeout(queryTimeout);
}
Expand Down

0 comments on commit cb6d11d

Please sign in to comment.