test: add tests for admin modal components #36

Open
Charon wants to merge 1 commit from feat/test-admin-modals into dev
Member

Summary

  • Adds Pest test suites for 4 critical admin modals: Settings, PlatformUser, ActivityLog, ServiceManager
  • Uses test double components following existing LivewireModalTest.php pattern
  • 134 test cases covering tab navigation, form validation, CRUD flows, filter combinations, state management, and edge cases

Test Coverage

Component Tests Patterns Covered
Settings 34 Tab nav, profile/preferences/password validation, 2FA, account deletion
PlatformUser 42 Tab nav, tier/verification mgmt, delete flow, package/entitlement modals, GDPR export, anonymisation
ActivityLog 34 Search, log name/event filters, combined filters, clear filters, item mapping
ServiceManager 38 Edit modal open/close, form validation, save/update, toggle enabled, sync, table structure

Fixes #7


🤖 Generated with Claude Code

## Summary - Adds Pest test suites for 4 critical admin modals: **Settings**, **PlatformUser**, **ActivityLog**, **ServiceManager** - Uses test double components following existing `LivewireModalTest.php` pattern - 134 test cases covering tab navigation, form validation, CRUD flows, filter combinations, state management, and edge cases ## Test Coverage | Component | Tests | Patterns Covered | |-----------|-------|------------------| | Settings | 34 | Tab nav, profile/preferences/password validation, 2FA, account deletion | | PlatformUser | 42 | Tab nav, tier/verification mgmt, delete flow, package/entitlement modals, GDPR export, anonymisation | | ActivityLog | 34 | Search, log name/event filters, combined filters, clear filters, item mapping | | ServiceManager | 38 | Edit modal open/close, form validation, save/update, toggle enabled, sync, table structure | Fixes #7 --- 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Charon added 1 commit 2026-03-24 16:52:16 +00:00
Adds Pest test suites for the four critical admin modals using test double
components, following the existing LivewireModalTest.php pattern. Covers
tab navigation, form validation, CRUD flows, filter combinations, and
state management. Fixes #7.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/test-admin-modals:feat/test-admin-modals
git checkout feat/test-admin-modals

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout dev
git merge --no-ff feat/test-admin-modals
git checkout feat/test-admin-modals
git rebase dev
git checkout dev
git merge --ff-only feat/test-admin-modals
git checkout feat/test-admin-modals
git rebase dev
git checkout dev
git merge --no-ff feat/test-admin-modals
git checkout dev
git merge --squash feat/test-admin-modals
git checkout dev
git merge --ff-only feat/test-admin-modals
git checkout dev
git merge feat/test-admin-modals
git push origin dev
Sign in to join this conversation.
No description provided.