diff --git a/test/functional/services/monaco_editor.ts b/test/functional/services/monaco_editor.ts index 43ce38aa2c787..5e942c8d7e7ad 100644 --- a/test/functional/services/monaco_editor.ts +++ b/test/functional/services/monaco_editor.ts @@ -63,11 +63,13 @@ export class MonacoEditorService extends FtrService { value ); }); - const newCodeEditorValue = await this.getCodeEditorValue(nthIndex); - expect(newCodeEditorValue).equal( - value, - `Expected value was: ${value}, but got: ${newCodeEditorValue}` - ); + await this.retry.try(async () => { + const newCodeEditorValue = await this.getCodeEditorValue(nthIndex); + expect(newCodeEditorValue).equal( + value, + `Expected value was: ${value}, but got: ${newCodeEditorValue}` + ); + }); } public async getCurrentMarkers(testSubjId: string) {