This commit is contained in:
6d486f49
2026-08-14 15:56:17 -04:00
parent af64b9e95c
commit 09a8adfc4a
827 changed files with 65045 additions and 71849 deletions
+34
View File
@@ -0,0 +1,34 @@
using Microsoft.Playwright;
using Microsoft.Playwright.NUnit;
namespace Tests;
[Parallelizable(ParallelScope.Self)]
[TestFixture]
public class CardsPageTests : PageTest
{
private const string BaseUrl = "http://localhost:5256";
[Test]
public async Task CardsPage_InspectRendering()
{
var consoleMessages = new List<string>();
var pageErrors = new List<string>();
Page.Console += (_, msg) => Console.WriteLine($"[BROWSER {msg.Type}] {msg.Text}");
Page.PageError += (_, err) => Console.WriteLine($"[BROWSER PAGE ERROR] {err}");
await Page.GotoAsync($"{BaseUrl}/cards");
await Page.WaitForSelectorAsync("h1", new() { Timeout = 30000 });
// Give Blazor WASM a moment to render
await Page.WaitForTimeoutAsync(3000);
var cardCells = Page.Locator(".card-cell");
var count = await cardCells.CountAsync();
Console.WriteLine($"Found {count} card cells");
var html = await Page.ContentAsync();
File.WriteAllText("cards_page_dump.html", html);
}
}