Skip to content

Commit

Permalink
tmp timeout increase
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Jelinek <[email protected]>
  • Loading branch information
djelinek committed Jul 29, 2024
1 parent da6866a commit 3531461
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/page-objects/src/components/editor/TextEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean> {
private async waitForCursorPositionAtLine(line: number, timeout: number = 2_500): Promise<boolean> {
return await this.getDriver().wait(
async () => {
return await this.isLine(line);
},
timeout,
`Unable to set cursor at line ${line}`,
500,
);
}

Expand All @@ -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<boolean> {
private async waitForCursorPositionAtColumn(column: number, timeout: number = 2_500): Promise<boolean> {
return await this.getDriver().wait(
async () => {
return await this.isColumn(column);
},
timeout,
`Unable to set cursor at column ${column}`,
500,
);
}

Expand Down

0 comments on commit 3531461

Please sign in to comment.