Vibe passkey

This commit is contained in:
6d486f49
2026-07-03 14:31:40 -04:00
parent e1cb1a81a3
commit ed95535e0a
25 changed files with 917 additions and 15 deletions
+21
View File
@@ -0,0 +1,21 @@
using Microsoft.Playwright;
namespace Tests.PageObjects;
public class LoginPage : BasePage
{
public LoginPage(IPage page) : base(page) { }
public ILocator EnrollButton => Page.GetByRole(AriaRole.Button, new() { Name = "Enroll Passkey" });
public ILocator SignInButton => Page.GetByRole(AriaRole.Button, new() { Name = "Sign in with Passkey" });
public ILocator ErrorMessage => Page.Locator(".alert-danger");
public async Task GotoAsync() => await NavigateToAsync("/login");
public async Task WaitForInteractiveAsync()
{
await Page.WaitForLoadStateAsync(LoadState.NetworkIdle);
// Wait for Blazor circuit: either button must be visible
await Page.WaitForSelectorAsync("button", new PageWaitForSelectorOptions { Timeout = 10_000 });
}
}