Agent Tests for API, MAUI, and Slop Features

This commit is contained in:
2026-06-03 19:08:35 -04:00
parent 46150d3a69
commit 0feac0f0a0
142 changed files with 4156 additions and 1462 deletions
+6 -2
View File
@@ -3,7 +3,11 @@ namespace Tests.Shared;
public class NavigationBar
{
private readonly Website _website;
public NavigationBar(Website website) => _website = website;
public NavigationBar(Website website)
{
_website = website;
}
public ILocator SearchButton => _website.Locator("#desktop-searchButton");
@@ -17,4 +21,4 @@ public class NavigationBar
await SearchButton.ClickAsync();
return _website.SearchDialog;
}
}
}
+6 -2
View File
@@ -3,7 +3,11 @@ namespace Tests.Shared;
public class SearchDialog
{
private readonly Website _website;
public SearchDialog(Website website) => _website = website;
public SearchDialog(Website website)
{
_website = website;
}
public ILocator SearchBackground => _website.FindById("searchBackground");
public ILocator SearchInput => _website.FindById("searchInput");
@@ -23,4 +27,4 @@ public class SearchDialog
{
await _website.ClickElementAsync(_website.Locator($"button[label=\"{label}\"]"));
}
}
}
+7 -3
View File
@@ -3,7 +3,11 @@ namespace Tests.Shared;
public class ToastComponent
{
private readonly Website _website;
public ToastComponent(Website website) => _website = website;
public ToastComponent(Website website)
{
_website = website;
}
public ILocator Container => _website.Locator(".toastsContainer");
public ILocator Toasts => _website.Locator(".toastsContainer .toastContainer");
@@ -24,7 +28,7 @@ public class ToastComponent
return Array.from(titles).some(t => t.textContent.trim().includes(expected));
}",
text,
new() { Timeout = 3000 }
new PageWaitForFunctionOptions { Timeout = 3000 }
);
return true;
}
@@ -33,4 +37,4 @@ public class ToastComponent
return false;
}
}
}
}