Updating Mudblazor Version

This commit is contained in:
Jonathan
2025-04-27 19:34:50 -04:00
parent 38ff4e3e89
commit e820457176
153 changed files with 5010 additions and 2059 deletions
+5 -7
View File
@@ -1,5 +1,4 @@
using System.Diagnostics;
using System.Globalization;
using System.Globalization;
using System.Runtime.CompilerServices;
namespace TestAutomation.Utils;
@@ -22,12 +21,11 @@ public class TestReport
{
if (!Tests.Last().Result)
{
string messages = string.Join("\n", Tests.Last().Messages.Select(x => x.Description).ToList());
var messages = string.Join("\n", Tests.Last().Messages.Select(x => x.Description).ToList());
throw new Exception(
$"{Tests.Last().Name} test failed with {Tests.Last().Messages.Count} messages.\n\n{messages}");
}
}
public async Task VerifyLinks(BasePage page)
@@ -35,8 +33,8 @@ public class TestReport
foreach (var link in page.GetLinks())
try
{
if(link.StartsWith("mailto")) continue;
if (link.StartsWith("mailto")) continue;
using var client = new HttpClient();
var response = await client.GetAsync(link);
+5 -5
View File
@@ -8,7 +8,7 @@ namespace TestAutomation.Utils;
public class Website
{
public static readonly DeploymentType DeploymentType =
Environment.GetEnvironmentVariable("TEST_HOOK")!.Contains("localhost")
Environment.GetEnvironmentVariable("TEST_HOOK")!.Contains("localhost")
? DeploymentType.Local
: DeploymentType.Dev;
@@ -19,8 +19,6 @@ public class Website
public readonly ScreenType ScreenType = ScreenType.Desktop;
public TestReport TestReport { get; set; }
public Website(IWebDriver webDriver, TestReport testReport)
{
WebDriver = webDriver;
@@ -38,6 +36,8 @@ public class Website
WebsiteSearchDialog = new WebsiteSearchDialog(this);
}
public TestReport TestReport { get; set; }
public IWebDriver WebDriver { get; }
public HarassCalculatorPage HarassCalculatorPage { get; }
@@ -117,7 +117,7 @@ public class Website
{
return WebDriver.FindElements(By.TagName(tag));
}
public ReadOnlyCollection<IWebElement> FindAllWithTag(IWebElement parent, string tag)
{
return parent.FindElements(By.TagName(tag));
@@ -210,7 +210,7 @@ public class Website
public void Goto(string path)
{
var url = $"{Url}/{path}";
WebDriver.Navigate().GoToUrl($"{url}");
}
}