tests(apphost.tests): added support for end to end testing using playwright

This commit is contained in:
Stevan Freeborn
2026-02-23 05:53:17 -06:00
parent fd2cd68d73
commit b45463e56b
11 changed files with 166 additions and 3 deletions
@@ -0,0 +1,14 @@
namespace FiscalOS.AppHost.Tests;
public class LoginPageTests(
AspireFixture aspire,
PlaywrightFixture playwright
) : BaseTest(aspire, playwright)
{
[Fact]
public async Task LoginPage_WhenNavigatedTo_ItShouldDisplaysLoginButton()
{
await Page.GotoAsync("/public/login");
await Expect(Page.GetByText("Login")).ToBeVisibleAsync();
}
}