Uploaded image for project: 'Insights Experiences'
  1. Insights Experiences
  2. HMS-10290

store: Add unit tests for wizardSlice selectors and reducers

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Image Builder
    • None

      Add unit tests for existing selectors and reducers in wizardSlice.ts to create a safety net before structural changes. This covers the 72 selectors and reducers with non-trivial logic (filesystem, users, content).

      Acceptance Criteria:

      • Unit tests cover all selectors in wizardSlice.ts, validated against RootState
      • Unit tests cover filesystem reducers (disk management, partitions, FSC mode)
      • Unit tests cover users reducers (user management, user groups)
      • Unit tests cover content reducers (repositories, packages, modules, groups, snapshotting)
      • Tests focus on behavior, not implementation details
      • All tests pass

      Notes:

      • Generated/vibecoded tests as a starting point are acceptable
      • We won't co-locate the tests with the code until after some of the reorganisation

              gzuccare@redhat.com Gianluca Zuccarelli
              gzuccare@redhat.com Gianluca Zuccarelli
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: