-
Notifications
You must be signed in to change notification settings - Fork 0
[Test] bUnit: IssuesPage filter and search wiring #125
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:copilotAssigned to @copilot (Coding Agent) for autonomous workAssigned to @copilot (Coding Agent) for autonomous worksquad:gimliAssigned to Gimli (Tester)Assigned to Gimli (Tester)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:copilotAssigned to @copilot (Coding Agent) for autonomous workAssigned to @copilot (Coding Agent) for autonomous worksquad:gimliAssigned to Gimli (Tester)Assigned to Gimli (Tester)type:choreMaintenance, refactoring, cleanupMaintenance, refactoring, cleanup
Summary
After the IssuesPage filter bug (#116) is fixed, this issue adds bUnit tests to lock in the correct behavior and prevent regression.
Test File to Create
tests/Web.Tests.Bunit/Components/Issues/IssuesPageFilterTests.csTests
LoadIssues_OnInit_CallsApiWithDefaultParams— verifiesGetAllAsync(page:1, pageSize:20, searchTerm:null, statusName:null, categoryName:null)called on mountSearchBox_WhenFilled_PassesSearchTermToApiStatusFilter_WhenSelected_PassesStatusNameToApiCategoryFilter_WhenSelected_PassesCategoryNameToApiMultipleFilters_AllPassedToApiCombinedClearButton_ResetsAllFiltersAndCallsApiWithDefaultsFilterChange_ResetsPageToOne— changing a filter resets to first pageMocking
IssueApiClientvia NSubstituteGetAllAsyncand assert on themAcceptance Criteria
Depends On