tests(apphost.tests): added support for end to end testing using playwright
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user