Add end-to-end tests for parent notifications and actions
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m35s

- Implement tests for approving and denying rewards and chores, including token generation and validation.
- Create tests for error handling scenarios with expired, tampered, and fake tokens.
- Add tests for push subscription registration and user profile notification settings.
- Ensure that notifications reflect the correct state of rewards and chores in the UI.
- Validate that toggles for email digest and push notifications function correctly based on user permissions and server state.
This commit is contained in:
2026-04-20 20:32:19 -04:00
parent ee16b49020
commit 4ee5367742
22 changed files with 1814 additions and 67 deletions

View File

@@ -2,20 +2,20 @@
"cookies": [
{
"name": "refresh_token",
"value": "4eQQgcHp1arsl2u0kVDy5k19v75GcVFjYMGYNjSt9sE",
"value": "dRU7FVos5Nre63rKcSXsiGog4IKVkqtodoMq0OpovGI",
"domain": "localhost",
"path": "/api/auth",
"expires": 1783780502.644833,
"expires": 1784492401.312877,
"httpOnly": true,
"secure": true,
"sameSite": "Strict"
},
{
"name": "access_token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImUyZS1kZWxldGVAdGVzdC5jb20iLCJ1c2VyX2lkIjoiZjNjZDUyOWMtZjFiNy00ZDNhLTlhNDYtMzAyYzg4YWQzNmUzIiwidG9rZW5fdmVyc2lvbiI6MCwiZXhwIjoxNzc2MDA1NDAyfQ.Y5NLYXHVRwNd4h5K1VwY9TrzaS-caMyaEey5xd4t5-0",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImUyZS1kZWxldGVAdGVzdC5jb20iLCJ1c2VyX2lkIjoiZWUxMWMzNzYtMzcwZi00YmYyLTg0NGEtYmU4MzI1ZGNjZjc5IiwidG9rZW5fdmVyc2lvbiI6MCwiZXhwIjoxNzc2NzE3MzAxfQ.LyGI4KtvUl7dyukrKSidfW__-EDDXdTrLNhpuYkkp4U",
"domain": "localhost",
"path": "/",
"expires": 1776005402.6442,
"expires": 1776717301.312238,
"httpOnly": true,
"secure": true,
"sameSite": "Lax"
@@ -27,11 +27,11 @@
"localStorage": [
{
"name": "authSyncEvent",
"value": "{\"type\":\"logout\",\"at\":1776004502341}"
"value": "{\"type\":\"logout\",\"at\":1776716400993}"
},
{
"name": "parentAuth",
"value": "{\"expiresAt\":1776177303038}"
"value": "{\"expiresAt\":1776889201788}"
}
]
}