Updating Mudblazor Version
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user