sorcha-ui
Skill2 starsChanged 10 months agoMITView on GitHub
Builds Sorcha.UI Blazor WASM pages with accompanying Playwright E2E tests using the Docker test infrastructure. Use when: Working on Sorcha.UI, building new pages, replacing template pages, adding UI features, or testing UI functionality against Docker.
In this repository79 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- docs/llms-full.txtllms.txt
- llms.txtllms.txt
- aspireSkill
- aspnet-coreSkill
- blazorSkill
- blueprint-builderSkill
- configuring-opentelemetry-dotnetSkill
- coverage-analysisSkill
- coverletSkill
- cryptographySkill
- database-expertSkill
- dockerSkill
- dotnetSkill
- entity-framework-coreSkill
- entity-frameworkSkill
- fluent-assertionsSkill
- frontend-designSkill
- grpcSkill
- jwtSkill
- mcpSkill
- microsoft-extensionsSkill
- migrate-xunit-to-xunit-v3Skill
- minimal-api-file-uploadSkill
- minimal-apisSkill
- mongodbSkill
- moqSkill
- nbitcoinSkill
- network-bootstrapSkill
- nunitSkill
- optimizing-ef-core-queriesSkill
- playwrightSkill
- postgresqlSkill
- prodexecSkill
- redisSkill
- scalarSkill
- signalrSkill
- sorcha-appSkill
- sorcha-architectureSkill
- sorcha-cliSkill
- speckit-agent-context-updateSkill
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-git-commitSkill
- speckit-git-featureSkill
- speckit-git-initializeSkill
- speckit-git-remoteSkill
- speckit-git-validateSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
- verifiable-credentialsSkill
- walkthrough-builderSkill
- worker-servicesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Test-driven UI development for Sorcha.UI.
- Very specific: line 270
Only end users → Services/User/<Subject>/ or Models/User/<Subject>/
- Very specific: line 271
Only admin/designer → Services/Admin/<Subject>/ or Models/Admin/<Subject>/
- Distinctive: line 351
Use one of three replacement surfaces:
- Very specific: line 459
Always mutation-check a new guard here: revert the fix, confirm the test goes RED, restore.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sorcha UI Development Skill
Test-driven UI development for Sorcha.UI. Every page change is paired with Playwright E2E tests that run against the Docker environment (docker-compose up -d). Tests automatically validate console errors, network failures, MudBlazor CSS health, and take screenshots on failure.
Prerequisites
Docker must be running with all services:
docker-compose up -d
# UI at http://localhost:5400 | API Gateway at http://localhost:80
# Login: admin@sorcha.local / Dev_Pass_2025!Workflow: Building a Page
For every page you build or modify, follow these steps in order:
Step 1: Create the Page Object
Create tests/Sorcha.UI.E2E.Tests/PageObjects/{PageName}Page.cs:
using Microsoft.Playwright;
using Sorcha.UI.E2E.Tests.Infrastructure;
using Sorcha.UI.E2E.Tests.PageObjects.Shared;
namespace Sorcha.UI.E2E.Tests.PageObjects;
public class WalletListPage
{
private readonly IPage _page;
public WalletListPage(IPage page) => _page = page;
// Use data-testid as primary selector strategy
public ILocator WalletCards => MudBlazorHelpers.TestIdPrefix(_page, "wallet-card-");
public ILocator CreateButton => MudBlazorHelpers.TestId(_page, "create-wallet-btn");
public ILocator EmptyState => MudBlazorHelpers.TestId(_page, "wallet-empty-state");
public ILocator SearchInput => _page.Locator("input[placeholder*='Search']");
// Fallback to MudBlazor class selectors
public ILocator Table => MudBlazorHelpers.Table(_page);
public ILocator LoadingSpinner => MudBlazorHelpers.CircularProgress(_page);
public async Task NavigateAsync()
{
await _page.GotoAsync($"{TestConstants.UiWebUrl}{TestConstants.AuthenticatedRoutes.Wallets}");
await _page.WaitForLoadStateAsync(LoadState.NetworkIdle);
await MudBlazorHelpers.WaitForBlazorAsync(_page);
}
public async Task<int> GetWalletCountAsync() => await WalletCards.CountAsync();
public async Task<bool> IsEmptyStateVisibleAsync() =>
await EmptyState.CountAsync() > 0 && await EmptyState.IsVisibleAsync();
}Step 2: Write the Playwright Tests (Test-First)
Create tests/Sorcha.UI.E2E.Tests/Docker/{Feature}Tests.cs:
using Sorcha.UI.E2E.Tests.Infrastructure;
using Sorcha.UI.E2E.Tests.PageObjects;
namespace Sorcha.UI.E2E.Tests.Docker;
[Parallelizable(ParallelScope.Self)]
[TestFixture]
[Category("Docker")]
[Category("Wallets")]
[Category("Authenticated")]
public class WalletListTests : AuthenticatedDockerTestBase
{
private WalletListPage _walletList = null!;
[SetUp]
public override async Task BaseSetUp()
{
await base.BaseSetUp();
_walletList = new WalletListPage(Page);
}
[Test]
[Retry(2)]
public async Task WalletList_LoadsWithoutErrors()
{
await NavigateAuthenticatedAsync(TestConstants.AuthenticatedRoutes.Wallets);
// Base class automatically checks console errors, network 5xx, CSS health
}
[Test]
public async Task WalletList_ShowsEmptyStateOrWallets()
{
await _walletList.NavigateAsync();
var count = await _walletList.GetWalletCountAsync();
if (count == 0)
{
Assert.That(await _walletList.IsEmptyStateVisibleAsync(), Is.True,
"Empty system should show empty state message");
}
else
{
Assert.That(count, Is.GreaterThan(0));
}
}
}Step 3: Build the Blazor Page
Edit src/Apps/Sorcha.UI/Sorcha.UI.Web.Client/Pages/{Page}.razor:
@page "/wallets"
@layout MainLayout
@rendermode @(new InteractiveWebAssemblyRenderMode(prerender: false))
@attribute [Authorize]
@inject HttpClient Http
<PageTitle>Wallets - Sorcha</PageTitle>
@if (_isLoading)
{
<MudProgressCircular Indeterminate="true" data-testid="wallet-loading" />
}
else if (_wallets.Count == 0)
{
<MudAlert Severity="Severity.Info" data-testid="wallet-empty-state">
No wallets found. Create your first wallet to get started.
</MudAlert>
}
else
{
@foreach (var wallet in _wallets)
{
<MudCard data-testid="wallet-card-@wallet.Id" Class="mb-3">
<MudCardContent>
<MudText Typo="Typo.h6">@wallet.Name</MudText>
</MudCardContent>
</MudCard>
}
}
<MudButton data-testid="create-wallet-btn" Variant="Variant.Filled"
Color="Color.Primary" Href="wallets/create">
Create Wallet
</MudButton>Step 4: Run Tests
# Run tests for the feature you just built
dotnet test tests/Sorcha.UI.E2E.Tests --filter "Category=Wallets"
# Run all smoke tests (fast CI gate)
dotnet test tests/Sorcha.UI.E2E.Tests --filter "Category=Smoke"
# Run all Docker tests
dotnet test tests/Sorcha.UI.E2E.Tests --filter "Category=Docker"
--filtergotcha (issue #818): these filtered runs only work becauseSorcha.UI.E2E.Tests.csprojsetsUseMicrosoftTestingPlatformRunner=false. The sharedtests/Directory.Build.propsforces Microsoft.Testing.Platform on every test project (correct for the xunit.v3 suite), but this project is NUnit/VSTest with no MTP runner — under forced MTP a--filterrun silently matched nothing and exited 0, so a broken test could "pass" without executing. If you ever see a filtered E2E run report success while running 0 tests, that opt-out has been lost. Confirm discovery withdotnet test tests/Sorcha.UI.E2E.Tests --list-tests.
Step 5: Check Artifacts on Failure
Screenshots are saved to tests/Sorcha.UI.E2E.Tests/bin/Debug/net10.0/screenshots/ on any test failure. Console errors and network failures are reported in the test output.
Key Concepts
| Concept | Usage | Location |
DockerTestBase | Unauthenticated tests with auto error capture | Infrastructure/DockerTestBase.cs |
AuthenticatedDockerTestBase | Login once, reuse auth state across tests | Infrastructure/AuthenticatedDockerTestBase.cs |
TestConstants | URLs, credentials, routes, timeouts | Infrastructure/TestConstants.cs |
| Page Objects | Encapsulate selectors and actions per page | PageObjects/*.cs |
MudBlazorHelpers | Shared MudBlazor locators and layout validation | PageObjects/Shared/MudBlazorHelpers.cs |
data-testid | Primary selector strategy for resilient tests | Added to Razor components |
| Categories | Filter tests by feature or concern | [Category("Wallets")] on test classes |
Test Inheritance
PageTest (Playwright NUnit)
└── DockerTestBase (console errors, network failures, screenshots)
├── ComponentHealthTests, LoginTests (unauthenticated)
└── AuthenticatedDockerTestBase (login once, reuse state, layout health)
├── DashboardTests
├── NavigationTests
├── WalletTests
└── ... (one per feature area)Test Categories
| Category | Scope | Use |
Smoke | All pages load, no JS errors | CI gate |
Docker | All tests targeting Docker | Full Docker suite |
Auth | Login, logout, redirects | Authentication features |
Authenticated | All tests needing login | Post-login features |
Dashboard | Dashboard page | Dashboard development |
Navigation | Drawer, app bar, routing | Layout changes |
Components | CSS, MudBlazor, responsive | Style/component changes |
Wallets | Wallet pages | Wallet features |
Blueprints | Blueprint pages | Blueprint features |
Registers | Register pages | Register features |
Schemas | Schema library | Schema features |
Admin | Administration pages | Admin features |
File Locations
| What | Where |
| Blazor pages | src/Apps/Sorcha.UI/Sorcha.UI.Web.Client/Pages/ |
| Shared components | src/Apps/Sorcha.UI/Sorcha.UI.Core/ |
| Layout | src/Apps/Sorcha.UI/Sorcha.UI.Web.Client/Components/Layout/ |
| Test infrastructure | tests/Sorcha.UI.E2E.Tests/Infrastructure/ |
| Page objects | tests/Sorcha.UI.E2E.Tests/PageObjects/ |
| Docker tests | tests/Sorcha.UI.E2E.Tests/Docker/ |
| MudBlazor helpers | tests/Sorcha.UI.E2E.Tests/PageObjects/Shared/MudBlazorHelpers.cs |
Host mounts & route prefixes
Two Blazor hosts, two mount prefixes behind the API Gateway. There is no /admin route — the entire platform/admin/designer experience IS the /app SPA.
| Mount | Host | Audience | Tier (spec 136) |
/app/… | Sorcha.UI.Web + Sorcha.UI.Web.Client (WASM SPA) | platform admin / org operator / designer and some citizen web surfaces (F125/F126, e.g. /app/strathcarron/…) | Platform |
/wallet/… | Sorcha.Wallet.Pwa (PWA) | citizen / wallet holder | Consumer |
Practical consequences:
- A new Razor page
@page "/foo"inSorcha.UI.Web.Clientis reachable at…/app/foo(NOT…/foo); a PWA page is at…/wallet/foo. On n1 that'shttps://n1.sorcha.dev/app/…and…/wallet/…. - Tier classification (F136):
RequestedTierResolver.ClassifyReturnTomaps/wallet→Consumer,/app→Platform. Web login fails safe to Platform (ClassifyReturnTo(returnTo, allowlist) ?? Tier.Platform) because/appis the platform host; the consumer token comes from a/walletreturnTo or the enrol-redeem path. See the jwt skill → "Tiered audiences".
Citizen Wallet PWA — path-prefix gotchas
The Citizen Wallet PWA (Sorcha.Wallet.Pwa) mounts at /wallet/ behind the API Gateway via PathRemovePrefix. Two rules apply only here, not to the main Sorcha.UI.Web app:
- All
NavigateTo/Hrefpaths must be base-relative, not origin-absolute.NavigateTo("enrol")✓ —NavigateTo("/enrol")404s in production. Home isNavigateTo(""), notNavigateTo("/"). Full rationale in the blazor skill → "PWA navigation when mounted under a path prefix". Twelve broken nav buttons shipped through CI as PR #698; the fix scope was global acrossMainLayout.razor,Index.razor,Enrol.razor,CredentialDetail.razor. nginx.confcache rules must excludedotnet.jsandblazor.webassembly.jsfrom theimmutableregex. Those two files are NOT fingerprinted but DO change every build — caching them as immutable for a year breaks return-visits after every redeploy. Pattern in the blazor skill → "nginx caching for Blazor WASM" plus PR #699. Regression guard:tests/Sorcha.UI.E2E.Tests/Docker/CitizenWallet/CitizenWalletNginxCacheHeadersTests.cs.
PWA test coverage discipline (every nav element gets data-testid + click+URL test) is in the playwright skill. Issue #700 tracks the broader PWA test-coverage gap.
See Also
- patterns - Page implementation and test patterns
- workflows - Development workflow and checklist
Audience-tag convention (Feature 123)
Sorcha.UI.Core is partitioned by audience at the folder level — Services/User/, Services/Admin/, Services/Shared/, with the same three folders under Models/. When you add a new service interface or model type, the audience determines the folder.
Pick the audience by asking: "does an end user on a user-facing page need this?"
- Only end users →
Services/User/<Subject>/orModels/User/<Subject>/ - Only admin/designer →
Services/Admin/<Subject>/orModels/Admin/<Subject>/ - Both →
Services/Shared/<Subject>/with a narrowI<Subject>ReadServiceinterface (the Shared read interface does NOT inherit from the Admin interface — admin pages that need both inject both)
Namespaces stay at the subject level — a file in Models/User/Forms/ declares namespace Sorcha.UI.Core.Models.Forms;, not …Models.User.Forms;. The audience folder is filesystem metadata, not part of the type's address. This is what keeps consumer using directives stable across moves.
Bi-modal smell detector — stop and refactor before any of these solidify:
- An interface directly under
Services/(not in an audience folder). - A plain
IFooServicewhose methods mix "list things for the signed-in user" with "manage admin policy" — split it into two interfaces, same concrete class. - A DTO record defined inside a service-interface file (extract to
Services/Shared/<Subject>/<Dto>.cs, keep the original namespace). - A user-facing component injecting
*AdminService. - An admin page injecting a Shared read interface and transitively pulling admin-only types from its return values — the "Shared" interface isn't actually shared.
Full convention + worked examples: src/Apps/Sorcha.UI/Sorcha.UI.Core/README.md. Motivating discovery (what bi-modal coupling did to Feature 122 Phase 2): specs/122-shared-user-components/phase-2-discovery.md.
Shared user-facing component library (Feature 122)
User-facing components shared between Sorcha.UI (web) and Sorcha.Wallet.Pwa (PWA) live in src/Apps/Sorcha.UI/Sorcha.UI.Components.User. Admin / designer / explorer components remain in Sorcha.UI.Core. The PWA references Sorcha.UI.Components.User directly; Sorcha.UI.Core ProjectReferences it (transparent re-export to the six web host apps).
Placement rule when adding a new component:
- User-facing, possibly shared with PWA →
Sorcha.UI.Components.User/Components/<Subject>/ - Admin / designer / explorer only →
Sorcha.UI.Core/Components/<Subject>/ - User-facing models the PWA also needs →
Sorcha.UI.Components.User/Models/User/<Subject>/(folder is metadata; namespace staysSorcha.UI.Core.Models.<Subject>per the audience-tag convention above)
Full placement matrix + worked examples: src/Apps/Sorcha.UI/Sorcha.UI.Components.User/README.md. CI bundle-hygiene gate: scripts/check-pwa-bundle.ps1 (wired into nuget-ci.yml) asserts forbidden assemblies absent + Sorcha.UI.Components.User present in the PWA bundle on every push.
Council application enrolment gate (Feature 126)
Drop-in component EnrolGateComponent in Sorcha.UI.Components.User/Components/EnrolGate/ (namespace Sorcha.UI.Core.Components.EnrolGate). Any council page that needs to onboard a citizen as a side-effect of an application form wraps the form in it:
<EnrolGateComponent CouncilName="Strathcarron Council"
ServiceLabel="driving licence application"
OnReady="@HandleCitizenReadyAsync">
<DrivingLicenceForm />
</EnrolGateComponent>The component owns:
- Tier detection (parallel
/whoami+/me/devicesprobes, 200 ms timeout each). - Surface branching —
PreflightSignupSurface(Tier 3 / ColdStart) →WalletPairingSurfacewithTierMode.MiniGate(Tier 2) orTierMode.PostSignup(Tier 3 post-signup) →ChildContent(Tier 1 / FastPath). - Session-token mint + lifecycle: calls
POST /api/auth/enrol-session, renders the returned QR viaHybridQrAffordance, watches expiry via aTask.Delay(ExpiresAt - now)and flips to a regenerate affordance when the token times out without a pairing signal. - Cross-device coordination: subscribes to
IEnrolPairingSignal.OnDeviceEnrolled(TenantHubConnection.OnDeviceEnrolled+ 3-second/me/devicespoll fallback) and firesOnReadyonce the citizen reaches FastPath.
HybridQrAffordance.Layout (enum: Auto / QrFirst / LinkFirst) controls prominence. Auto (default) emits an enrol-hybrid-qr--auto CSS class so a @media (max-width: 600px) rule can swap ordering on mobile — no IJSRuntime probe needed.
PWA-side wire-up lives in Sorcha.Wallet.Pwa:
Pages/Enrol.razorreads?session=<token>from the URL, callsIEnrolSessionRedeemer.RedeemAsync, rendersEnrolmentRedeemConfirmDialogwith the bound user's email + display name (the friend-scans-by-mistake mitigation), then on Confirm stores the access token viaIAccessTokenStoreand falls through to the existing F114 device-pairing stepper.- Cancel from the dialog routes to
Pages/CancelledEnrolment.razor— no device registered.
Test patterns (UI.Core.Tests):
BunitContext+JSInterop.Mode = JSRuntimeMode.Loosefor any EnrolGate component that calls JS (clipboard, QR SVG render).- Stub HttpClient via a custom
HttpMessageHandlerfor the gate's whoami / mint round-trips —EnrolGateComponent.ResolveBoundPlatformUserIdAsyncwill hang the test if the gateway URL doesn't resolve.
Related Skills
- See the blazor skill for Blazor WASM component architecture
- See the playwright skill for Playwright API reference
- See the frontend-design skill for MudBlazor styling
- See the minimal-apis skill for backend API endpoints the pages call
- See the jwt skill for authentication token handling
Documentation Resources
Fetch latest Playwright .NET and MudBlazor documentation with Context7.
Library IDs:
/websites/playwright_dev_dotnet(Playwright .NET)/websites/mudblazor(MudBlazor component library)
Recommended Queries:
- "Locators selectors data-testid"
- "NUnit test fixtures parallel"
- "MudBlazor card table dialog"
- "MudBlazor form validation"
- "Browser storage state authentication"
Anti-Pattern: Don't Use ISnackbar
The Sorcha UI has retired MudBlazor's Snackbar.Add(...) toast surface from every user-facing page and PWA component (PRs #740-#755). New code MUST NOT inject ISnackbar — a CI gate at scripts/check-no-snackbar.ps1 enforces the ratchet via .snackbar-allowlist.
Use one of three replacement surfaces:
IInlineFeedbackfor actor's-own-action feedback in the current page (success / error / info / warning). API:Feedback.ShowSuccess(msg, detailHref?, autoDismissMs?)/ShowError/ShowInfo/ShowWarning. Default 4s auto-dismiss; passautoDismissMs: 0for errors that need explicit acknowledgement. NamespaceSorcha.UI.Core.Services.Feedback. Renders viaInlineFeedbackHostmounted inMainLayout. Do NOT call from inside a dialog body — the host mounts in the layout, not in dialog surfaces.- Server-side inbox writer for workflow / lifecycle / security events that should live in the durable Feature 118 bell drawer across sessions. Existing writers:
WalletWorkflowInboxWriter,WalletInboxWriter,CitizenDeviceInboxWriter,TenantSecurityInboxWriter, plus the membership writer. Alwaystry/LogError/ swallow — a writer failure must NOT roll back the underlying admin operation. CopyButtonprimitive for clipboard affordances.<CopyButton Value="@x" Label="Copy" />for labelled buttons,<CopyButton Value="@x" Variant="CopyButtonVariant.IconButton" Label="Copy hash" />for icon-only inside lists. Morphs to "Copied ✓" for ~2s on success.
Dialog content rule: dialog success closes with MudDialog.Close(DialogResult.Ok(...)) so the parent renders inline feedback; dialog errors render an inline <MudAlert Severity="Severity.Error" Dense="true" Class="mb-2"> at the top of DialogContent.
Full architecture and migration history: specs/118-notifications-architecture/MIGRATION.md and Critical Pattern #12 in CLAUDE.md.
Rendering traps: where MudBlazor and Blazor silently disagree
Four bugs in one session, all shipped through review, all invisible to a green unit suite, all found only by opening a real browser. They share one shape — each side of a boundary is individually correct and nothing verifies the join — so treat this list as a pre-flight check, not trivia.
1. Splatting a Dictionary<string, object> can hit a typed component parameter
Blazor attribute splatting matches component parameters case-insensitively. So an entry meant as an HTML attribute can bind to a component parameter of a different type:
attrs["inputmode"] = "email"; // a string, because that is what an HTML attribute is
// splatted onto MudTextField → binds MudBlazor's InputMode parameter, typed MudBlazor.InputMode
// → cast throws at RENDER time → the render batch aborts → "An unhandled error has occurred."Parse to the component's type before splatting:
if (Enum.TryParse<MudBlazor.InputMode>(InputMode, ignoreCase: true, out var typed))
attrs["inputmode"] = typed;Note the blast radius is hard to read from the code. Only the email hint set inputmode, so it looked
like "email fields" and meant "every application form on the platform". The sibling keys
(autocapitalize, autocorrect, spellcheck) have no matching MudBlazor parameter, passed through
as plain HTML, and worked — which is exactly why the mechanism was never suspected.
Check: for any splatted dictionary, list the keys and ask whether the target component has a parameter of that name in ANY casing.
2. A Razor comment inside an attribute list becomes an attribute NAME
<MudTextField Value="@x"
@* explaining the next line *@ ← NOT stripped here
Label="Postcode" />The browser throws InvalidCharacterError: Failed to execute 'setAttribute' and the render batch
dies, taking neighbouring fields down with it — they render as bare labels with no input. Put the
comment above the element. There is a CI gate for this (razor-comment-placement, added after it
happened).
3. MudSelect's closed field ignores MudSelectItem child content
The collapsed input's text comes from the bound value through the converter; the child content is
only rendered inside the open popover. Bind Value and display a different Label and the citizen
opens the list, sees "United Kingdom", picks it, and the field collapses back to GB.
<MudSelect T="string" Value="@_value" ToStringFunc="@LabelFor"> ... </MudSelect>MudRadio has no equivalent problem — it always renders its child content — so ChoiceRenderer
needs nothing.
4. text-transform does not inherit into form controls
Putting Style="text-transform: uppercase;" on a MudTextField lands it on MudBlazor's wrapper
div. That div computes uppercase — correctly, and visibly so in DevTools — while the <input>
inside computes none, because the UA stylesheet sets text-transform: none on form controls. The
fix looks right in the markup, right on the element it was written to, and does nothing on screen.
Target the input from CSS isolation instead. ::deep is required because the input is rendered by a
child component, so the scope attribute is on your wrapper, not on it:
/* PostcodeLookupRenderer.razor.css */
.postcode-lookup ::deep input { text-transform: uppercase; }Existing precedents for reaching MudBlazor internals this way: PresentationRequestCard.razor.css,
IdCardLayout.razor.css, LinkExistingAccountPrompt.razor.css.
Testing these
Unit tests cannot see any of the four. Use bUnit render tests:
public sealed class FooTests : BunitContext
{
public FooTests()
{
// MudSelect builds a popover and throws without a MudPopoverProvider in the tree — a layout
// concern the real app meets in MainLayout and a control rendered alone does not.
Services.AddMudServices(o => o.PopoverOptions.CheckForPopoverProvider = false);
JSInterop.Mode = JSRuntimeMode.Loose;
}
}bUnit has no style engine, so trap 4 is not assertable — verify that half live. What IS assertable is the join CSS depends on: the stylesheet addresses markup by a class name and nothing relates the two, so assert the wrapper class renders and the input sits inside it. Renaming the wrapper otherwise breaks the styling with no build error, no warning and no failing test.
Always mutation-check a new guard here: revert the fix, confirm the test goes RED, restore. (When
restoring from a backup file, mv carries the OLD mtime and MSBuild will skip the rebuild — the test
stays red and looks like a failed fix. touch the file.)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

