From 6cdaf56920c7ec04b073c25008caf715a8a877fb 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..2671a6205 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 ); }