AAE-6757 Improving e2e tests relating to modeling-ee. Part one - improve flaky tests, ProcessModelerComponent (#7412)

* AAE-6757 Improving e2e tests relating to modeling-ee. Part one - improve locators and most flaky tests

* Add custom delay for input text

* trigger travis
This commit is contained in:
MichalFidor
2021-12-21 10:44:10 +01:00
committed by GitHub
parent 65a9d2bbfa
commit 65a5535308

View File

@@ -48,9 +48,9 @@ export class CardTextItemPage {
await BrowserVisibility.waitUntilElementIsVisible(labelElement);
}
async enterTextField(text: string): Promise<void> {
async enterTextField(text: string, pauseBetweenTypingChars = 500): Promise<void> {
await BrowserVisibility.waitUntilElementIsVisible(this.rootElement.$(this.textField));
await BrowserActions.clearSendKeys(this.rootElement.$(this.textField), text, 500);
await BrowserActions.clearSendKeys(this.rootElement.$(this.textField), text, pauseBetweenTypingChars);
await this.rootElement.$(this.textField).sendKeys(Key.TAB);
}