Prasad P. Pawar created ATLAS-5179:
--------------------------------------

             Summary: Implement Unit Tests for Redux Slices
                 Key: ATLAS-5179
                 URL: https://issues.apache.org/jira/browse/ATLAS-5179
             Project: Atlas
          Issue Type: Sub-task
          Components: atlas-webui
            Reporter: Prasad P. Pawar
            Assignee: Prasad P. Pawar


Objective
Implement unit tests for all Redux slices to ensure state management, actions, 
and reducers work correctly.

Slices Already Completed
 - ✅ detailPageSlice
 - ✅ glossarySlice
 - ✅ sessionSlice
 - ✅ typedefEntitySlice

Slices Remaining (11+ files)
1. entitySlice (or similar)
2. searchSlice
3. filterSlice
4. userSlice
5. authSlice
6. Other slices as identified

Test Coverage Required
 - Initial state
 - Action creators
 - Reducers (pending, fulfilled, rejected states)
 - Async thunks
 - State updates

Acceptance Criteria
 - ✅ All Redux slices have test files
 - ✅ Each slice has at least 6+ test cases
 - ✅ Tests cover initial state, actions, and reducers
 - ✅ Tests cover async thunks (pending, fulfilled, rejected)
 - ✅ All tests pass successfully
 - ✅ Code coverage for Redux slices is 85%+

Test Files Pattern
 - `src/redux/slice/_{_}tests{_}_/[sliceName]Slice.test.ts`

Estimated Test Cases
 - Total: ~66+ test cases (6 per slice)

Dependencies
 - Redux Toolkit
 - Mock store setup
 - Test utilities for Redux testing



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to