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
@@ -125,14 +125,19 @@ async function dragVertex(page: Page) {
|
||||
async function chooseVertex3(page: Page) {
|
||||
const detail = page.getByTestId('edit-strip-detail')
|
||||
if ((await detail.textContent())?.includes('sommet 3 choisi')) return
|
||||
await pressHandle(page, 'Sommet 3')
|
||||
await pressHandle(page, 'Sommet 3 de Vertèbres thoraciques')
|
||||
await expect(detail).toContainText('sommet 3 choisi')
|
||||
}
|
||||
|
||||
const GESTURES: Record<Gesture, (page: Page) => Promise<void>> = {
|
||||
drag: dragVertex,
|
||||
insert: (page) => pressHandle(page, 'Ajouter un sommet après le sommet 2'),
|
||||
remove: (page) => pressHandle(page, 'Retirer le sommet 3'),
|
||||
insert: (page) =>
|
||||
pressHandle(
|
||||
page,
|
||||
'Ajouter un sommet après le sommet 2 de Vertèbres thoraciques',
|
||||
),
|
||||
remove: (page) =>
|
||||
pressHandle(page, 'Retirer le sommet 3 de Vertèbres thoraciques'),
|
||||
}
|
||||
|
||||
/** Back to the stored zone with an empty undo stack, checked. */
|
||||
|
||||
Reference in new issue
Block a user