[PR #30201] test(web): add unit tests for Avatar component #32728

Closed
opened 2026-02-21 20:51:58 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/30201

State: closed
Merged: Yes


Closes #30200

Added comprehensive tests for the Avatar component covering:

  • Rendering with image URL vs fallback initial
  • Size, className, and textClassName props
  • Image load error handling and state recovery
  • Edge cases like empty names, CJK characters, zero/large sizes

All tests pass locally. Should help catch regressions when touching this component.

**Original Pull Request:** https://github.com/langgenius/dify/pull/30201 **State:** closed **Merged:** Yes --- Closes #30200 Added comprehensive tests for the Avatar component covering: - Rendering with image URL vs fallback initial - Size, className, and textClassName props - Image load error handling and state recovery - Edge cases like empty names, CJK characters, zero/large sizes All tests pass locally. Should help catch regressions when touching this component.
yindo added the pull-request label 2026-02-21 20:51:58 -05:00
yindo closed this issue 2026-02-21 20:51:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32728