flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

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

Open K1NGD4VID opened this issue 1 month ago • 11 comments

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.

K1NGD4VID avatar Oct 21 '26 17:10 K1NGD4VID

@Clararosey67 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

I’d really love to work on this🥹💕 Please assign it to me

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Clararosey67 to this issue.

Clararosey67 avatar Oct 21 '26 22:10 Clararosey67

@Ayfataan has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

I’d like to work on this issue

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Ayfataan to this issue.

Ayfataan avatar Oct 21 '26 23:10 Ayfataan

@YoungBoss04 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hi Maintainer, I've studied the issue closely and understand the outcome you're after. I can deliver a solution that satisfies the requirements, and I'd be grateful for the assignment.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @YoungBoss04 to this issue.

YoungBoss04 avatar Oct 22 '26 06:10 YoungBoss04

@Maxwell-tom has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hi maintainer I would like to work on this issue

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Maxwell-tom to this issue.

Maxwell-tom avatar Oct 22 '26 07:10 Maxwell-tom

@Zuliyat has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hello, I’ve gone through the requirements and I’m confident I can implement a proper solution that matches the acceptance criteria. Kindly assign this issue to me.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Zuliyat to this issue.

Zuliyat avatar Oct 22 '26 08:10 Zuliyat

@chidii has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

Hello Maintainer, I've reviewed this issue thoroughly and I'm well positioned to resolve it — experienced across the relevant stack and comfortable navigating the existing codebase. Ready to start right away.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @chidii to this issue.

chidii avatar Oct 22 '26 08:10 chidii

Congratulations, @Maxwell-tom! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

🧑‍💻 @Maxwell-tom: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Oct 22 '26 09:10 drips-wave[bot]

@cythecode has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

I’d love to help out with this issue. I’ve checked the current codebase/documentation and know exactly what needs to be updated to make this clearer. I will ensure everything aligns perfectly with your existing contribution guidelines.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @cythecode to this issue.

cythecode avatar Nov 21 '26 08:11 cythecode

@simplex001 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

i can resolve

ℹ️ Repo Maintainers: To accept this application, review their application or assign @simplex001 to this issue.

simplex001 avatar Nov 21 '26 08:11 simplex001

Congratulations, @simplex001! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

🧑‍💻 @simplex001: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Nov 21 '26 08:11 drips-wave[bot]

This issue has been completed by @simplex001 as part of the Stellar Wave Program's 11th Wave 🥳

😎 @simplex001: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Nov 22 '26 20:11 drips-wave[bot]