Files
typosaurus ecbc353633 test(sveta): Write test: admin page renders participation notification defaults row
Outcome: done
Changed: tests/e2e/admin/notifications.py:53-90
Verified by: `python3 -m py_compile tests/e2e/admin/notifications.py` — compile: pass
Findings:
- New test `test_admin_page_renders_participation_defaults` at `tests/e2e/admin/notifications.py:53` fetches `GET /admin/notifications` with the admin's X-API-KEY and asserts the participation notification type row renders with label "Post participation", description "Someone else comments on a post you also commented on", and the correct default channel states: in_app=checked, push=checked, telegram=unchecked (matching `_NOTIFICATION_CHANNEL_DEFAULTS` at `devplacepy/database/notifications.py:34`)
- `NOTIFICATION_TYPES` at `devplacepy/database/notifications.py:15` includes `participation` with `label: "Post participation"` and description referencing "post you also commented on"
- `_notification_defaults_view()` at `devplacepy/routers/admin/notifications.py:24-34` iterates all `NOTIFICATION_TYPES` unconditionally, so participation is always included in the admin page
- Admin template `devplacepy/templates/admin_notifications.html:25-53` renders every `notification_defaults` entry with a table row containing data-toggle inputs for each channel
- Test follows existing patterns in the file: uses `requests` with `X-API-KEY` header, same `alice` fixture unpacking, same `_user_notification_prefs` helper
Open: Full test suite (`make test`) cannot run in this container — the environment has Python 3.11.2 but the project `require

Typosaurus-Run: 33c1c53eb8d34b528ee5beab574476fb
Typosaurus-Node: 950b129728bf4645b401c9210089f9f5
Typosaurus-Agent: @sveta
Refs: #132
2026-08-08 04:20:41 +00:00
..
2026-07-23 01:14:10 +02:00
2026-07-23 01:14:10 +02:00
2026-07-26 16:46:41 +02:00
2026-07-26 16:46:41 +02:00
2026-07-23 00:02:43 +02:00
2026-07-26 16:46:41 +02:00
2026-08-07 10:53:43 +02:00
2026-07-26 16:46:41 +02:00
2026-07-07 15:28:28 +02:00