Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#1,712 7 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 7 días

@Maxwell-tom ya está trabajando en esto.

Desde el 22/10/2026.

  • #1812 de @Maxwell-tom — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
70/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
frontend, testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
18
Forks
250
Merge medio
5 d 6 h
PR fusionados (30 d)
82

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de LabsCrypt/flowfi

Todos los issues de LabsCrypt/flowfi

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.