From 3531461ce79411596fcf88d62c97d32b5cce3d1f Mon Sep 17 00:00:00 2001 From: Dominik Jelinek Date: Mon, 29 Jul 2024 16:07:13 +0200 Subject: [PATCH] tmp timeout increase Signed-off-by: Dominik Jelinek --- packages/page-objects/src/components/editor/TextEditor.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, ); }