drive-web icon indicating copy to clipboard operation
drive-web copied to clipboard

[PB-5542]: add unit tests for Redux file versions slice and version item actions hook

Open terrerox opened this issue 3 weeks ago • 2 comments

Description

Add comprehensive test coverage for fileVersions Redux slice and useVersionItemActions hook. Tests include thunk operations (fetch versions, fetch limits), reducer state management (loading, errors, cache invalidation), and menu action handlers (restore, download, delete). Uses icon-based menu item selection for robust, maintainable tests.

Related Issues

Related Pull Requests

Checklist

  • [x] Changes have been tested locally.
  • [x] Unit tests have been written or updated as necessary.
  • [x] The code adheres to the repository's coding standards.
  • [ ] Relevant documentation has been added or updated.
  • [x] No new warnings or errors have been introduced.
  • [x] SonarCloud issues have been reviewed and addressed.
  • [ ] QA Passed

Testing Process

Additional Notes

terrerox avatar Dec 18 '25 04:12 terrerox