feat(search): add exact company aliases
Embed a versioned local alias overlay and rank exact aliases before legal-name matches and word prefixes. Normalize Unicode consistently, deduplicate by company identity before limiting, and update bilingual search guidance and tests. Refs #24 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -43,7 +43,7 @@ test('ticket #19: search companies by name and follow by company_id while preser
|
||||
|
||||
await page.goto(new URL('/assets', stack.frontendUrl).href)
|
||||
await expect(page.getByRole('heading', { name: 'Rechercher une entreprise' })).toBeVisible({ timeout: 3000 })
|
||||
const query = page.getByRole('textbox', { name: /nom de l'entreprise/i })
|
||||
const query = page.getByRole('textbox', { name: /nom ou nom courant de l’entreprise/i })
|
||||
await expect(page.getByRole('textbox')).toHaveCount(1)
|
||||
await query.fill('BYD')
|
||||
await page.getByRole('button', { name: /rechercher/i }).click()
|
||||
|
||||
Reference in New Issue
Block a user