3 Commits

Author SHA1 Message Date
Dicklesworthstone dbcaababa9 docs(test): Update test infrastructure, fixtures, and no-mock audit
Test infrastructure and documentation updates:

test-results/no_mock_audit.md:
- Updated audit to reflect completed T6.x work
- Status: All transitional mock patterns eliminated
- Documented permanently allowlisted patterns

test-results/no_mock_allowlist.json:
- Cleaned up transitional entries
- Retained only true boundary mocks (install.rs fixture constructors)
- Added documentation comments for each allowlisted pattern

tests/fixtures/:
- cli_contract/introspect.json: Updated CLI contract spec
- connectors/MANIFEST.json: Connector fixture manifest
- models/README.md: Model fixture documentation

tests/package.json, tests/package-lock.json:
- Updated Playwright dependencies
- Added accessibility testing packages

tests/playwright.config.ts:
- Added JSONL reporter configuration
- Improved test sharding
- Added mobile device profiles

Cargo.toml:
- Minor dependency updates

TESTING.md:
- Comprehensive testing documentation
- E2E logging schema reference
- Fixture organization guidelines
- CI integration notes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 00:45:12 -06:00
Dicklesworthstone fb4b7db45f test(e2e): Enhance E2E test suite with export and clipboard tests
Expand E2E testing coverage with export functionality tests,
clipboard interaction tests, and improved test utilities.

- Add tests/e2e/exports/ directory for export testing
- Create copy-clipboard.spec.ts for clipboard operations
- Enhance password-flow.spec.ts and basic-render.spec.ts
- Update global-setup.ts and test-utils.ts
- Add .env.test for test environment configuration
- Update playwright.config.ts and package-lock.json

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-25 21:04:41 -05:00
Dicklesworthstone a172b1aba8 feat(html): Complete HTML export module with encryption and test infrastructure
Major expansion of the html_export module for self-contained session exports:

Encryption (Web Crypto compatible):
- Add PBKDF2 key derivation for password-based encryption
- Implement AES-GCM encryption matching browser Web Crypto API
- Support optional encryption with graceful degradation
- Add pbkdf2 dependency for key derivation

Template & Rendering:
- Complete HtmlExporter with full template generation
- Add sophisticated CSS with dark/light theme support
- Implement message rendering with syntax highlighting
- Add search, filtering, and navigation JavaScript
- Support tool invocation collapsible sections

Filename Generation:
- Smart cross-platform filename sanitization
- Configurable components (date, agent, project)
- Max length truncation with word boundaries

Test Infrastructure:
- Add Node.js test harness for encryption compatibility
- Create test fixtures with edge cases and real sessions
- Add package.json for JS test dependencies

Enable 'encryption' feature by default in Cargo.toml.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-25 18:04:40 -05:00