Converting Tests back to C# but still with Playwright

This commit is contained in:
2026-06-03 14:45:18 -04:00
parent 85834466f1
commit 46150d3a69
209 changed files with 1503 additions and 683 deletions
+20
View File
@@ -0,0 +1,20 @@
namespace Tests.Shared;
public class NavigationBar
{
private readonly Website _website;
public NavigationBar(Website website) => _website = website;
public ILocator SearchButton => _website.Locator("#desktop-searchButton");
public async Task ClickHomeLinkAsync()
{
await _website.Locator("a:has-text(\"IGP Fan Reference\")").ClickAsync();
}
public async Task<SearchDialog> ClickSearchButtonAsync()
{
await SearchButton.ClickAsync();
return _website.SearchDialog;
}
}