mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-19 22:41:55 +00:00
Increased timeout for CI environment
This commit is contained in:
@@ -11,7 +11,7 @@ public static class AppHelper
|
|||||||
{
|
{
|
||||||
public const string ServerUrl = "http://localhost:5275";
|
public const string ServerUrl = "http://localhost:5275";
|
||||||
public static Uri ServerUri = new(ServerUrl);
|
public static Uri ServerUri = new(ServerUrl);
|
||||||
public static int DefaultTimeout = 5;
|
public static int DefaultTimeout = 10;
|
||||||
public static async Task<Process> StartApp(string appUrl)
|
public static async Task<Process> StartApp(string appUrl)
|
||||||
{
|
{
|
||||||
var startInfo = new ProcessStartInfo
|
var startInfo = new ProcessStartInfo
|
||||||
@@ -73,7 +73,7 @@ public static class AppHelper
|
|||||||
password.SendKeys("Test1234.");
|
password.SendKeys("Test1234.");
|
||||||
IWebElement submit = driver.FindElement(By.CssSelector("button[type=\"submit\"]"));
|
IWebElement submit = driver.FindElement(By.CssSelector("button[type=\"submit\"]"));
|
||||||
submit.Click();
|
submit.Click();
|
||||||
Timeout(driver).Until(ExpectedConditions.UrlContains("/Home/Index"));
|
Timeout(driver).Until(ExpectedConditions.UrlContains("/Home/Index"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool TryRetryFindSuccessToast(ChromeDriver driver)
|
public static bool TryRetryFindSuccessToast(ChromeDriver driver)
|
||||||
|
|||||||
Reference in New Issue
Block a user