towerops/test/towerops_web
Graham McIntire 89a076fb67
feat: migrate equipment features to gettext and fix sudo mode tests
Migrates all equipment-related flash messages to gettext for internationalization:
- DeviceLive.Index: device discovery, reordering, error messages
- DeviceLive.Show: backup messages, permission errors
- DeviceLive.Form: device CRUD operations
- AlertLive.Index: alert acknowledgment messages
- SiteLive.Show: site discovery messages
- SiteLive.Form: site CRUD and SNMP/agent propagation

Fixes sudo mode test suite issues:
- Updates Accounts.sudo_mode?/2 test to check last_sudo_at instead of authenticated_at
- Adds register_and_log_in_user_with_sudo/1 helper to ConnCase
- Fixes UserAuth sudo mode tests to use session-based authentication
- Updates MyData tests to use sudo mode (now required per router config)
- Removes obsolete UserSettingsLive "without sudo mode" test
- Fixes grant_sudo_mode/1 DateTime truncation to seconds

All equipment module tests passing. Ready for Phase 3 (Admin Features).
2026-02-02 12:41:58 -06:00
..
controllers purge more passkey and gettext updates 2026-02-02 10:20:59 -06:00
helpers fix user deletion bug and implement timezone support 2026-01-18 10:51:11 -06:00
integration test: add C NIF integration tests for web context 2026-01-30 13:29:04 -06:00
live feat: migrate equipment features to gettext and fix sudo mode tests 2026-02-02 12:41:58 -06:00
plugs docs: add gettext internationalization design 2026-02-02 09:33:01 -06:00
user_auth_test.exs feat: migrate equipment features to gettext and fix sudo mode tests 2026-02-02 12:41:58 -06:00