towerops/test/towerops_web/live/org
Graham McIntire 0ea54b63db
perf(tests): disable TOTP by default in fixtures for faster tests
**Performance improvement: 52s → 33.2s test suite (35% faster)**

Changes:
- Disable TOTP by default in user_fixture (was enabled for all 7400+ tests)
- Enable TOTP only where needed (auth flows, TOTP-specific tests)
- Update ConnCase helpers to enable TOTP (required for authenticated sessions)
- Update test setups that need TOTP for LiveView authentication

Impact:
- Eliminates unnecessary TOTP secret generation + DB writes for most tests
- Reduces Argon2 password hashing overhead across test suite
- 281 tests now properly handle TOTP requirements

Files updated:
- test/support/fixtures/accounts_fixtures.ex: enable_totp default false → true only when needed
- test/support/conn_case.ex: register_and_log_in_user helpers enable TOTP
- test/towerops/accounts_test.exs: TOTP-related describe blocks enable TOTP
- test/towerops_web/user_auth_test.exs: setup enables TOTP
- test/towerops_web/live/admin/*: admin LiveView tests enable TOTP
- test/towerops_web/live/org/preseem_devices_live_test.exs: enable TOTP
2026-03-06 07:21:52 -06:00
..
integrations_live_test.exs Redesign integrations page: billing providers as picker 2026-02-15 13:00:10 -06:00
preseem_devices_live_test.exs perf(tests): disable TOTP by default in fixtures for faster tests 2026-03-06 07:21:52 -06:00
preseem_insights_live_test.exs add network insights feed page with filters and bulk dismiss 2026-02-13 09:00:34 -06:00
settings_live_members_test.exs Fix pre-existing test failures from role enum and MikroTik changes 2026-02-16 16:11:32 -06:00
settings_live_property_test.exs perf(test): reduce property test iterations from 15 to 10 2026-03-05 15:09:54 -06:00
settings_live_test.exs fix: resolve compilation errors, test failures, and credo issues 2026-02-14 12:23:10 -06:00