## Summary Enhanced the search resolver integration tests to comprehensively validate bidirectional accent-insensitive search functionality. Users can now search with or without accents and find all relevant records regardless of how the data was originally stored. ## Changes Made ### Test Data Enhancements - Added 2 new person IDs: `TEST_PERSON_6_ID`, `TEST_PERSON_7_ID` - Expanded corpus from 5 to 13 records: - 7 persons - 2 companies - 4 pets - Refactored test data into single arrays with content-driven variable naming for better maintainability ### Test Coverage Improvements - Added 6 comprehensive bidirectional tests covering French, Spanish, and German characters - Validated multiple fields: - `firstName`, `lastName`, `jobTitle`, `email`, `company name`, `pet name` - Cross-object search testing across Person, Company, and Pet - Updated all ranking values to account for the enlarged test corpus (5 → 13 records) ## Test Cases Added/Updated - [x] should find both **"José"** and **"Jose"** when searching for `"jose"` (bidirectional accent-insensitive) - [x] should find both **"García"** and **"Garcia"** when searching for `"garcia"` (bidirectional accent-insensitive) - [x] should find both accented and non-accented **"Café"** / **"Cafe"** records when searching for `"cafe"` (bidirectional accent-insensitive) - [x] should find both accented and non-accented **"Naïve"** / **"Naive"** records when searching for `"naive"` (bidirectional accent-insensitive) - [x] should find both **"Müller"** and **"Muller"** when searching for `"muller"` (bidirectional accent-insensitive) - [x] should find both **"François"** and **"Francois"** when searching for `"francois"` (bidirectional accent-insensitive)
10 lines
589 B
TypeScript
10 lines
589 B
TypeScript
export const TEST_PERSON_1_ID = '777a8457-eb2d-40ac-a707-551b615b6980';
|
|
export const TEST_PERSON_2_ID = '777a8457-eb2d-40ac-a707-551b615b6981';
|
|
export const TEST_PERSON_3_ID = '777a8457-eb2d-40ac-a707-551b615b6982';
|
|
export const TEST_PERSON_4_ID = '777a8457-eb2d-40ac-a707-551b615b6983';
|
|
export const TEST_PERSON_5_ID = '777a8457-eb2d-40ac-a707-551b615b6984';
|
|
export const TEST_PERSON_6_ID = '777a8457-eb2d-40ac-a707-551b615b6985';
|
|
export const TEST_PERSON_7_ID = '777a8457-eb2d-40ac-a707-551b615b6986';
|
|
export const NOT_EXISTING_TEST_PERSON_ID =
|
|
'777a8457-eb2d-40ac-a707-551b615b6990';
|