Attempt to fix selenium CI test flakiness 9

This commit is contained in:
2025-11-15 22:37:39 +01:00
parent 9519f4a222
commit 07aaf468a8

View File

@@ -19,6 +19,7 @@ public static class AssetsHelper
AppHelper.AwaitVisible(driver, By.Id("createLocationSelect-ts-control"));
driver.FindElement(By.Id("createLocationSelect-ts-control")).Click();
AppHelper.Timeout(driver, 30).Until(ExpectedConditions.ElementExists(By.Id("createLocationSelect-opt-1")));
driver.ExecuteJavaScript("document.getElementById(\"createLocationSelect-ts-control\").value=\"somewhere\"");
driver.ExecuteJavaScript("document.getElementById(\"createLocationSelect-opt-1\").click()");
driver.FindElement(By.Id("createUsersSelect-ts-control")).Click();
AppHelper.AwaitVisible(driver, By.Id("createUsersSelect-opt-1"));