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

[test] Exercise service-worker push and notification-click behavior

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

Maintainer thường phản hồi trong vòng 7 ngày

@Maxwell-tom đang làm issue này rồi.

Từ ngày 22/10/2026.

  • #1812 của @Maxwell-tom — đang mở

Đá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
70/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
frontend, testing

Hướng nghiên cứu

Start with frontend/public/sw.js and the existing frontend notification tests, which currently mock the browser push helpers. Build a worker harness that executes the actual script, then cover valid, malformed, and missing push payloads and notification clicks with and without an existing window. Done means the tests assert notification closing, navigation or openWindow behavior, and event.waitUntil lifetimes.

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

Mô tả

frontend points: 150 Stellar Wave testing

Labels: testing, frontend, points: 150
File/location: frontend/public/sw.js:9

Description:
Existing notification tests mock the browser push helpers and never execute public/sw.js. Push parsing, waitUntil lifetimes, window reuse and openWindow behavior can regress without a failing test.

Acceptance Criteria:

  • Execute the actual service-worker script in a worker harness and test valid JSON, malformed JSON/text and missing push payloads.
  • Test notification clicks with an existing window and with no window, asserting close/navigation/openWindow and event.waitUntil behavior.

Notes:
Searched tests: none execute public/sw.js; frontend notification tests mock subscribe/unsubscribe helpers.

Audited commit: 649b6976a100fd964ce191428eef1faeb50aaa39. Closest prior issues reviewed: #1474. This report concerns the specific failure or uncovered test paths described above, rather than repeating the original feature request.

Ngôn ngữ chính
TypeScript
Star
18
Fork
250
Merge trung bình
5 ngày 6 giờ
Pull request đã merge (30 ngày)
82

Chuẩn bị môi trường

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 LabsCrypt/flowfi

Tất cả issue của LabsCrypt/flowfi

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.