Skip to content

Commit fa1b5ff

Browse files
committed
Wait for Monaco readiness in studio workflow
1 parent 3b96d6a commit fa1b5ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/PrompterOne.Web.UITests.Studio/Scenarios/StudioWorkflowScenarioTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ private static async Task OpenDemoScriptInEditorAsync(IPage page)
118118
{
119119
await page.GotoAsync(BrowserTestConstants.Routes.EditorDemo);
120120
await Expect(page.GetByTestId(UiTestIds.Editor.Page)).ToBeVisibleAsync();
121+
await EditorMonacoDriver.WaitUntilReadyAsync(page);
121122
await UiScenarioArtifacts.CapturePageAsync(page, BrowserTestConstants.StudioWorkflow.Name, BrowserTestConstants.StudioWorkflow.EditorInitialStep);
122123
}
123124

@@ -160,6 +161,7 @@ private static async Task OpenEmptyEditorDraftAsync(IPage page)
160161
await page.GetByTestId(UiTestIds.Header.LibraryNewScript).ClickAsync();
161162
await page.WaitForURLAsync(BrowserTestConstants.Routes.Pattern(AppRoutes.Editor));
162163
await Expect(page.GetByTestId(UiTestIds.Editor.Page)).ToBeVisibleAsync();
164+
await EditorMonacoDriver.WaitUntilReadyAsync(page);
163165
await Expect(page.GetByTestId(UiTestIds.Editor.SourceInput)).ToHaveValueAsync(string.Empty);
164166
await UiScenarioArtifacts.CapturePageAsync(page, BrowserTestConstants.NewScriptWorkflow.Name, BrowserTestConstants.NewScriptWorkflow.EditorEmptyStep);
165167
}

0 commit comments

Comments
 (0)