cherry-studio/src/renderer
Jason Young f58378daa0
test: add comprehensive tests for CopyButton component (#7719)
* test: add comprehensive tests for CopyButton component

- Add tests for basic rendering and functionality
- Add clipboard API mocking and error handling
- Add tests for custom props (size, tooltip, label)
- Add edge case testing (empty text, special characters)
- Improve component test coverage

Signed-off-by: Jason Young <farion1231@gmail.com>

* fix: resolve linting issues in CopyButton tests

- Sort imports alphabetically
- Remove trailing whitespace
- Add final newline

Signed-off-by: Jason Young <farion1231@gmail.com>

* refactor: consolidate similar test cases in CopyButton tests

- Merge 'should render copy icon' and 'should render with basic structure'
- Merge 'should apply custom size to icon' and 'should apply custom size to label'
- Reduce test duplication while maintaining full coverage
- Address maintainer feedback for better test organization

Signed-off-by: Jason Young <farion1231@gmail.com>

---------

Signed-off-by: Jason Young <farion1231@gmail.com>
2025-07-01 23:37:44 +08:00
..
src test: add comprehensive tests for CopyButton component (#7719) 2025-07-01 23:37:44 +08:00
index.html refactor: update spinner handling and improve initialization timing 2025-05-18 22:05:35 +08:00
miniWindow.html fix: miniWindow not found 2025-05-11 23:54:47 +08:00
selectionAction.html feat: Selection Assistant / 划词助手 (#5900) 2025-05-26 16:50:52 +08:00
selectionToolbar.html refactor(SelectionAssistant): make all Toolbar CSS variables customizable (#7532) 2025-06-26 10:17:09 +08:00