Adding vibe tests

This commit is contained in:
2026-06-25 10:52:11 -04:00
parent 00e7184b3b
commit f8b0974b79
7 changed files with 219 additions and 8 deletions
+21
View File
@@ -0,0 +1,21 @@
using Microsoft.Playwright;
namespace Tests.PageObjects;
public abstract class BasePage
{
protected readonly IPage Page;
protected readonly string BaseUrl = "http://localhost:5256";
protected BasePage(IPage page)
{
Page = page;
}
public async Task NavigateToAsync(string path)
{
await Page.GotoAsync($"{BaseUrl}{path}");
}
public ILocator GetHeading() => Page.Locator("h1");
}