[test] Exercise service-worker push and notification-click behavior
维护者通常 3 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 70/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 18
- 派生
- 250
- 平均合并
- 4 天 12 小时
- 30 天内合并 PR
- 65
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
LabsCrypt/flowfi 的其他 Issue
-
[test] Cover indexed fee event accounting可能已有人在做 @huangji6693-max 于 2 天前认领。 未关闭backend points: 150 testing
难度 2/5 1-3 小时 新手友好度 68/100
LabsCrypt/flowfi#1764 · 2 条评论 ·
维护者通常 3 天内回复
-
backend points: 150 testing
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 3 天内回复
-
backend points: 150 testing
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 3 天内回复
-
backend points: 150 testing
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 3 天内回复
-
[test] Cover admin ledger reset validation可能已有人在做 @Ranjeet2063 于 1 天前认领。 未关闭backend points: 150 testing
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 3 天内回复
相似的 Issue
-
Parallel reticle_verify opens per-flow leases without the source lease's ignoreHTTPSErrors可能已有人在做 @as992949791 今天认领。 未关闭good first issue help wanted
难度 2/5 1-3 小时 新手友好度 85/100
reticlehq/reticle#2033 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area:quality p3-medium ready-for-agent type:docs
难度 2/5 1-3 小时 新手友好度 83/100
fderuiter/deruiter.dev#3589 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
manfredsteyer/angular-oauth2-oidc#1514 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
marmelab/react-admin#11431 ·
维护者通常 1 天内回复