From 1a49126666e96d4418750eb1b86f8afdc503812a Mon Sep 17 00:00:00 2001 From: Davis McPhee Date: Fri, 4 Oct 2024 20:39:05 -0300 Subject: [PATCH] Fix monaco editor check --- test/functional/services/monaco_editor.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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) {