Après .Input()/.Change() (MudTextField Immediate), le dialog re-rend de
manière asynchrone : un FindAll() puis .Click()/.Submit() hors InvokeAsync
peut référencer un event handler périmé → bUnit
UnknownEventHandlerIdException en CI (flaky, non reproductible en local).
Workaround officiel bUnit : wrapper le Find+action dans
cut.InvokeAsync(...). Appliqué à tous les patterns Input/Change → Click/Submit
des tests de pages (Sites, Cameras, Groups, Users, Settings, Snapshots,
Register, Profile, AuditLogs, Login, SiteDetail, Discoveries).
Ajout des tests bUnit : UsersPageTests (11), ProfileTests, SettingsPageTests,
EventsPageTests, SnapshotsPageTests, AuditLogsPageTests, AgentsPageTests,
AllAgentsPageTests.
Découvertes de bugs réels par les tests :
- SnapshotsPage : OnClick passé à MudPaper est ignoré (pas de paramètre
OnClick dans MudBlazor 9.7) → lightbox jamais ouvrable au clic
- FilterBar : SearchChanged déclaré mais jamais invoqué → la recherche ne
recharge que via le submit du form