From 5a904bcc876c1ba1b727a69db434b187dd37f0f2 Mon Sep 17 00:00:00 2001 From: LD-Reborn Date: Sat, 15 Nov 2025 22:13:43 +0100 Subject: [PATCH] Attempt to fix selenium CI test flakiness 7 --- 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 dd1f263..bd1d080 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.Timeout(driver).Until(ExpectedConditions.ElementToBeClickable(By.Id("createLocationSelect-opt-1"))); + AppHelper.Timeout(driver, 30).Until(ExpectedConditions.ElementExists(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"));