Commit Graph
4 Commits
Author SHA1 Message Date
Arnaud Dartois c45ee9f9aa fix(tests): use correct icon button index in UsersPage tests after camera access button added 2026-10-10 18:42:36 +02:00
Arnaud Dartois ed363ab1b0 chore(format): dotnet format whitespace — alignement style CI 2026-08-12 19:49:30 +02:00
Arnaud Dartois 5db7d84d9c fix(test): immunise les tests bUnit contre le flaky UnknownEventHandlerIdException
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).
2026-08-11 16:58:54 +02:00
Arnaud Dartois 93757dfe8b test(web): couvre les pages IHM restantes (Users, Profile, Settings, Events, Snapshots, Audit, Agents, AllAgents) — 158 tests Web verts
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
2026-08-10 13:10:37 +02:00