fix: Update Context Vue tests to use GUID format instead of numeric IDs (#290)

Commit: f31ff1af9c2166f4796c86f2218150bf99c38600
Date: 2025-09-03 12:48:40 +0200
Author: PascalHavelange

Commit Message

fix: Update Context Vue tests to use GUID format instead of numeric IDs (#290)

* Fix Context Vue tests: Convert from Language-style numeric IDs to Project-style GUIDs

- Replace all numeric/3-character IDs with GUID format in Context test files
- Fix spy expectation failures by replacing with result-based testing
- Add missing PencilIcon mocks in integration tests
- Update route paths from /contexts/1 to /contexts/{guid} format
- Resolve ID format inconsistencies between Language and Context components
- All Context tests now pass (102/102) with proper GUID ID handling

Affected files:
- ContextDetail.test.ts: Basic unit tests with GUID IDs
- ContextDetailIntegration.test.ts: Component integration tests
- ContextDetailLogic.test.ts: Business logic with proper ID formats
- ContextIntegration.test.ts: End-to-end integration testing
- ContextsLogic.test.ts: List component business logic
- ContextDetailResource.integration.test.ts: Resource workflow tests

* fix: Update Context Vue tests to use GUID format instead of numeric IDs

- Update Context tests to follow Project pattern with GUID IDs
- Standardize ID formats across test utilities (test-utils.ts)
- Add missing HeroIcons mocks (CheckIcon, XMarkIcon)
- Replace ALL numeric IDs in test logic across multiple files
- Implement Context "set default" functionality with GUID format
- Ensure consistency between Context and Project test patterns
- Maintain 3-character lowercase codes for Language/Country entities

Resolves inconsistent ID format usage in Vue test files.
All 1,335 tests now pass with proper GUID format throughout.

---------

Co-authored-by: Pascal HAVELANGE <havelangep@hotmail.com>

Files Changed


This documentation was automatically generated from Git commit data.