fix(app): the « Client introuvable » screen focuses its heading too

Every client screen focuses its heading when it opens (contract §11.7); the
not-found screen did not. Unit and Chromium tests now assert the focus.
Found by the V1-1.5 verifier.
This commit is contained in:
bchanot committed 2026-10-26 02:11:15 +01:00
1 parent e1c1980949
commit 567ad40c80
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -294,7 +294,7 @@ describe('client edit', () => {
describe('client page', () => {
it('shows the same « introuvable » for an unknown id and a malformed one', async () => {
mount(`/app/clients/${ID}`)
expect(await screen.findByRole('heading', { name: fr['clients.not_found.title'] })).toBeInTheDocument()
expect(await screen.findByRole('heading', { name: fr['clients.not_found.title'] })).toHaveFocus()
cleanup()
mount('/app/clients/not-an-id')
expect(await screen.findByRole('heading', { name: fr['clients.not_found.title'] })).toBeInTheDocument()