More notes and added store precons

This commit is contained in:
6d486f49
2026-06-25 09:45:21 -04:00
parent 89bd1ca1f9
commit 68872f0dac
96 changed files with 61430 additions and 278 deletions
+33
View File
@@ -1,3 +1,4 @@
using Microsoft.Playwright;
using Microsoft.Playwright.NUnit;
namespace Tests;
@@ -6,4 +7,36 @@ namespace Tests;
[TestFixture]
public class PlaywrightTests : PageTest
{
private const string BaseUrl = "http://localhost:5256";
[Test]
public async Task HomePage_ShouldLoad()
{
await Page.GotoAsync(BaseUrl);
await Expect(Page).ToHaveTitleAsync(new System.Text.RegularExpressions.Regex("Chrono CCG"));
// Check for some content that should be on the home page
var heading = Page.Locator("h1");
await Expect(heading).ToBeVisibleAsync();
await Expect(heading).ToContainTextAsync("Slop Game Reference - Chrono CCG");
}
[Test]
public async Task DocsPage_ShouldLoad()
{
await Page.GotoAsync($"{BaseUrl}/docs");
var heading = Page.Locator("h1");
await Expect(heading).ToBeVisibleAsync();
await Expect(heading).ToContainTextAsync("Documentation");
}
[Test]
public async Task AgentsPage_ShouldLoad()
{
await Page.GotoAsync($"{BaseUrl}/agents");
// Agents page uses Telerik Grid, let's wait for it
await Page.WaitForLoadStateAsync(LoadState.NetworkIdle);
var grid = Page.Locator(".agents-grid");
await Expect(grid).ToBeVisibleAsync();
}
}