diff --git a/packages/page-objects/src/components/editor/TextEditor.ts b/packages/page-objects/src/components/editor/TextEditor.ts index cef7d5c77..8828909b6 100644 --- a/packages/page-objects/src/components/editor/TextEditor.ts +++ b/packages/page-objects/src/components/editor/TextEditor.ts @@ -531,13 +531,14 @@ export class TextEditor extends Editor { * @param line line number to wait * @param timeout default timeout is wait for 1.5s */ - private async waitForCursorPositionAtLine(line: number, timeout: number = 1_500): Promise { + private async waitForCursorPositionAtLine(line: number, timeout: number = 2_500): Promise { return await this.getDriver().wait( async () => { return await this.isLine(line); }, timeout, `Unable to set cursor at line ${line}`, + 500, ); } @@ -546,13 +547,14 @@ export class TextEditor extends Editor { * @param column column number to wait * @param timeout default timeout is wait for 1.5s */ - private async waitForCursorPositionAtColumn(column: number, timeout: number = 1_500): Promise { + private async waitForCursorPositionAtColumn(column: number, timeout: number = 2_500): Promise { return await this.getDriver().wait( async () => { return await this.isColumn(column); }, timeout, `Unable to set cursor at column ${column}`, + 500, ); }