[PR #29667] test: Add comprehensive Jest test for AppCard component #32507

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

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

State: closed
Merged: Yes


Summary

  • add comprehensive RTL/Jest spec for AppCard covering modes, icon variants, create CTA, accessibility and edge cases
  • wire canCreate prop to actually gate rendering of the template CTA overlay
  • keep component DOM clean (no data-* hooks) by using semantic queries in tests

Testing

  • pnpm test -- app/components/app/create-app-dialog/app-card/index.spec.tsx
**Original Pull Request:** https://github.com/langgenius/dify/pull/29667 **State:** closed **Merged:** Yes --- ## Summary - add comprehensive RTL/Jest spec for AppCard covering modes, icon variants, create CTA, accessibility and edge cases - wire canCreate prop to actually gate rendering of the template CTA overlay - keep component DOM clean (no data-* hooks) by using semantic queries in tests ## Testing - pnpm test -- app/components/app/create-app-dialog/app-card/index.spec.tsx
yindo added the pull-request label 2026-02-21 20:51:32 -05:00
yindo closed this issue 2026-02-21 20:51:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32507