Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add screen smoke tests for the public-screens detail/feed/static screens

Đang mở
#30 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
frontend, testing

Hướng nghiên cứu

Bắt đầu bằng cách đọc PR #28 và các smoke test hiện có cho các màn hình công khai, sau đó kiểm tra apps/web/tests/test-utils.tsx để tìm renderScreen(), mockOk() và mockPaginated(). Thêm coverage cho PersonDetail, TagDetail, cả hai feed, Volunteer và Sponsor, đồng thời xác nhận các Display Rules được liệt kê; hoàn tất nghĩa là mỗi màn hình có hai hoặc ba assertion trong smoke test và test suite chạy thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Context: PR #28 (feat/public-screens) shipped screen smoke tests for Home, ProjectsIndex, ProjectDetail, HelpWantedIndex — the screens with the most spec-bound Display Rules. The remaining screens were exercised only via the build + browser walkthrough, not unit tests.

Add smoke tests for:

  • PersonDetail — renders fullName + "Member since {month yyyy}" + projects list sorted by maintainer / joinedAt
  • TagDetail — renders the three sections (Projects / Help-wanted / Members), hides Members on event namespace
  • ProjectUpdatesFeed — renders cards reverse-chron, filtered empty state
  • ProjectBuzzFeed — same shape, external-link headlines
  • Volunteer — hero CTA toggles on auth state, live project count uses /api/projects?perPage=1
  • Sponsor — static content + copy-to-clipboard button

Each test: render with renderScreen() from apps/web/tests/test-utils.tsx, mock fetch with mockOk / mockPaginated, assert two or three load-bearing Display Rules from the spec.

Scoped small enough for a single follow-up PR.

Ngôn ngữ chính
TypeScript
Star
1
Fork
1
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
25

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CodeForPhilly/codeforphilly-ng

Tất cả issue của CodeForPhilly/codeforphilly-ng

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.