From c61f9c8d5b39088efe3bfd80ac6770aa7a56b833 Mon Sep 17 00:00:00 2001 From: LD-Reborn Date: Sat, 15 Nov 2025 21:54:36 +0100 Subject: [PATCH] Attempt to fix selenium CI test flakiness 5 --- tests/Berufsschule_HAM.E2ETests/Helper/AssetsHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Berufsschule_HAM.E2ETests/Helper/AssetsHelper.cs b/tests/Berufsschule_HAM.E2ETests/Helper/AssetsHelper.cs index 5e7fd81..dd1f263 100644 --- a/tests/Berufsschule_HAM.E2ETests/Helper/AssetsHelper.cs +++ b/tests/Berufsschule_HAM.E2ETests/Helper/AssetsHelper.cs @@ -18,7 +18,7 @@ public static class AssetsHelper driver.FindElement(By.Id("createName")).SendKeys(AppHelper.GetRandomName()); AppHelper.AwaitVisible(driver, By.Id("createLocationSelect-ts-control")); driver.FindElement(By.Id("createLocationSelect-ts-control")).Click(); - AppHelper.AwaitVisible(driver, By.Id("createLocationSelect-opt-1")); + AppHelper.Timeout(driver).Until(ExpectedConditions.ElementToBeClickable(By.Id("createLocationSelect-opt-1"))); driver.ExecuteJavaScript("document.getElementById(\"createLocationSelect-opt-1\").click()"); driver.FindElement(By.Id("createUsersSelect-ts-control")).Click(); AppHelper.AwaitVisible(driver, By.Id("createUsersSelect-opt-1"));