-
Notifications
You must be signed in to change notification settings - Fork 0
[Test] bUnit: Archive action behavior in CategoriesPage and StatusesPage #126
Copy link
Copy link
Closed
Labels
go:yesReady to implementReady to implementpriority:p2Next sprintNext sprintrelease:backlogNot yet targetedNot yet targetedsprint-3Sprint 3 — Full CRUD UI + ArchiveSprint 3 — Full CRUD UI + ArchivesquadSquad triage inbox — Lead will assign to a memberSquad triage inbox — Lead will assign to a membersquad:gimliAssigned to Gimli (Tester)Assigned to Gimli (Tester)squad:legolasAssigned to Legolas (Frontend Dev)Assigned to Legolas (Frontend Dev)type:choreMaintenance, refactoring, cleanupMaintenance, refactoring, cleanup
Metadata
Metadata
Labels
go:yesReady to implementReady to implementpriority:p2Next sprintNext sprintrelease:backlogNot yet targetedNot yet targetedsprint-3Sprint 3 — Full CRUD UI + ArchiveSprint 3 — Full CRUD UI + ArchivesquadSquad triage inbox — Lead will assign to a memberSquad triage inbox — Lead will assign to a membersquad:gimliAssigned to Gimli (Tester)Assigned to Gimli (Tester)squad:legolasAssigned to Legolas (Frontend Dev)Assigned to Legolas (Frontend Dev)type:choreMaintenance, refactoring, cleanupMaintenance, refactoring, cleanup
Summary
Once the archive action is added to
CategoriesPageandStatusesPage, this issue covers bUnit component tests verifying the correct admin-only behavior, confirmation dialog flow, and optimistic UI updates.Test Files to Create
tests/Web.Tests.Bunit/Components/Categories/CategoriesPageArchiveTests.csArchiveButton_AdminUser_IsVisibleArchiveButton_NonAdminUser_IsNotVisibleArchiveButton_Clicked_ShowsConfirmDialogConfirmDialog_Confirmed_CallsArchiveApiAndRemovesRowConfirmDialog_Cancelled_DoesNotCallApiArchiveApi_ReturnsError_ShowsErrorMessagetests/Web.Tests.Bunit/Components/Statuses/StatusesPageArchiveTests.csbUnit Setup Notes (follow existing pattern)
TestContextfrom bUnitCategoryApiClient/StatusApiClientvia NSubstituteAuthenticationStateProvidermock to simulate admin vs. non-admintests/Web.Tests.Bunit/Components/tests for patternAcceptance Criteria
Depends On