Vibe passkey

This commit is contained in:
6d486f49
2026-07-03 14:31:40 -04:00
parent e98e7bf29d
commit 678e20d402
26 changed files with 1006 additions and 15 deletions
+20
View File
@@ -0,0 +1,20 @@
using Microsoft.Playwright.NUnit;
namespace Tests;
/// <summary>
/// Base class for Playwright tests that require an authenticated session.
/// Signs in via the dev-only bypass endpoint before each test.
/// </summary>
public abstract class AuthenticatedPageTest : PageTest
{
protected const string BaseUrl = "http://localhost:5256";
[SetUp]
public async Task SignIn()
{
var response = await Page.APIRequestContext.PostAsync($"{BaseUrl}/api/auth/dev-login");
if (!response.Ok)
throw new Exception($"Dev login failed with status {response.Status}. Ensure the server is running in Development mode.");
}
}