From dc9c680460e25e6117ef26f65582e3650ff9cd13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kriszti=C3=A1n=20N=C3=A9meth?= Date: Wed, 2 Aug 2023 16:50:15 +0200 Subject: [PATCH] Fix stale state during folder creation --- .../BasicOrchardFeaturesTestingUITestContextExtensions.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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