fix(editor): name vertex handles after their zone, in a named group
Criterion 18: « Sommet {n} de {nom} », « Ajouter un sommet après le sommet
{n} de {nom} », « Retirer le sommet {n} de {nom} » (EN « Vertex {n} of
{name} » …), {nom} the zone's display name in the current locale; the
handle group is a role="group" named « Sommets de {nom} ».
Tests: no assertion removed; every unit and e2e locator that read the old
names now reads the same handle with the zone name appended (fixtures: N,
Vertèbres thoraciques, Zone dessinée, Zone clavier). New unit tests in
editor-zone-edit cover the FR names, the group and the EN locale.
This commit is contained in:
1 parent
fab641c278
commit
b6aa2819ea
15 files changed
+165
-67
No files matched your search
@@ -295,11 +295,15 @@ test.describe('editor annotations (A3)', () => {
|
||||
|
||||
// « + » after vertex 1 by Enter: four vertices; Delete on the chosen one: three again.
|
||||
await page
|
||||
.getByRole('button', { name: 'Ajouter un sommet après le sommet 1' })
|
||||
.getByRole('button', {
|
||||
name: 'Ajouter un sommet après le sommet 1 de Zone clavier',
|
||||
})
|
||||
.focus()
|
||||
await page.keyboard.press('Enter')
|
||||
await expect.poll(async () => (await shownPoints(page)).length).toBe(4)
|
||||
await page.getByRole('button', { name: 'Sommet 2', exact: true }).focus()
|
||||
await page
|
||||
.getByRole('button', { name: 'Sommet 2 de Zone clavier', exact: true })
|
||||
.focus()
|
||||
await page.keyboard.press('Delete')
|
||||
await expect.poll(async () => (await shownPoints(page)).length).toBe(3)
|
||||
// Escape unchooses the vertex (board 32 row 5): the strip offers the zone's move.
|
||||
|
||||
Reference in new issue
Block a user