diff --git a/Lombiq.Tests.UI/Extensions/BasicOrchardFeaturesTestingUITestContextExtensions.cs b/Lombiq.Tests.UI/Extensions/BasicOrchardFeaturesTestingUITestContextExtensions.cs index 1ac95a9f7..2c6582c45 100644 --- a/Lombiq.Tests.UI/Extensions/BasicOrchardFeaturesTestingUITestContextExtensions.cs +++ b/Lombiq.Tests.UI/Extensions/BasicOrchardFeaturesTestingUITestContextExtensions.cs @@ -612,7 +612,11 @@ await context context.Get(By.Id("create-folder-name")).SendKeys("Example Folder"); - await context.Get(By.Id("modalFooterOk")).ClickReliablyAsync(context); + await context.ClickReliablyOnAsync(By.Id("modalFooterOk")); + + // Wait until new folder is created. + context.Exists( + By.XPath("//div[contains(@class, 'alert-info') and contains(.,'This folder is empty')]")); context.UploadSamplePngByIdOfAnyVisibility("fileupload"); // #spell-check-ignore-line context.UploadSamplePdfByIdOfAnyVisibility("fileupload"); // #spell-check-ignore-line