Commit graph

6 commits

Author SHA1 Message Date
Snider
5a2ce4bab8 test(layout): add comprehensive tests for HLCRF layout system
Add tests for the HLCRF (Header-Left-Content-Right-Footer) layout system
covering all required functionality:

- Layout variant parsing (C, HC, HCF, LC, CR, LCR, HLCRF, etc.)
- Self-documenting ID system (H-0, C-R-2, data-block, data-slot)
- Nested layout rendering with correct path propagation
- Slot rendering with multiple content types (string, Htmlable, closures)
- Alias methods (addHeader, addLeft, addContent, addRight, addFooter)
- Attributes and CSS class management
- Semantic HTML structure (header, aside, main, footer elements)
- Real-world layout patterns (admin dashboard, docs site, email client)
- Edge cases and boundary conditions

80+ tests covering the complete HLCRF layout system.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 19:27:30 +00:00
Snider
e5a71d2a2d test(modal): add comprehensive tests for Livewire modal system
Add tests for modal opening/closing, event handling, data passing,
validation, nested modals, and lifecycle management. Tests use
isolated test double components to verify modal behaviour patterns
used throughout core-admin.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 19:23:17 +00:00
Snider
a27abc6b63 test(search): add comprehensive tests for search provider registry
Tests cover:
- Provider registration (single and multiple)
- Provider availability filtering by user and workspace
- Search execution and result aggregation
- Result flattening for keyboard navigation
- Fuzzy matching (substring, case-insensitive, word-start, abbreviation)
- Relevance scoring hierarchy
- SearchResult creation, conversion, and immutability
- Integration tests with multiple providers

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 19:18:33 +00:00
Snider
cecf4a9f7b test(honeypot): add comprehensive tests for teapot/honeypot anti-spam system
Add tests for the honeypot detection system that catches bots ignoring robots.txt:
- Bot detection patterns (SEO bots, AI crawlers, scripting tools, headless browsers)
- Severity classification (warning vs critical paths)
- TeapotController response (418 status, custom headers, hit logging)
- Rate limiting to prevent log flooding
- Header sanitization (removes sensitive headers before storage)
- Model scopes (recent, fromIp, bots, critical, warning)
- Statistics for dashboard (total, today, unique IPs, top bots)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 19:14:45 +00:00
Snider
0fd8185a99 test(forms): add authorization props tests for form components
Add comprehensive Pest tests for form component authorization props
(canGate/canResource/canHide). Tests cover Button, Input, Select,
Checkbox, Toggle, and Textarea components.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 13:33:14 +00:00
Snider
71c0805bfd monorepo sepration 2026-01-26 20:56:28 +00:00