Skip to content

Conversation

SuchitraSwain
Copy link
Contributor

@SuchitraSwain SuchitraSwain commented Sep 11, 2025

lidel and others added 2 commits August 28, 2025 21:34
port fix from ipfs/ipfs-desktop#2983 to ensure interactive elements
(inputs, buttons, selects) work properly within electron's
draggable regions by setting app-region: no-drag

this resolves left-click focus issues on macos where inputs
were not receiving focus due to pointer events being blocked
@lidel
Copy link
Member

lidel commented Sep 17, 2025

Thank you for the contribution, but these tests aren't suitable for merging:

  1. Everything is mocked - All components and dependencies are replaced with mocks, so tests only verify mock behavior, not actual functionality
  2. Wrong testing library - Uses @testing-library/react which isn't in our dependencies
  3. No real coverage - Tests like "renders without crashing" with fully mocked components don't catch real bugs
  4. Unrelated to issue - References authentication/Firebase features that don't exist in ipfs-webui

Good tests should test actual component behavior and integration. These tests would add maintenance burden without improving code quality or catching regressions.

If you'd like to contribute meaningful tests, please:

  • Test real component logic without mocking everything
  • Follow existing test patterns in the codebase
  • Focus on actual ipfs-webui functionality

@lidel lidel closed this Sep 17, 2025
@lidel lidel mentioned this pull request Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: update unit test case
2 participants