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
@@ -161,7 +161,7 @@ describe('the two-finger hint (R-1)', () => {
|
||||
it('never replaces a message that shows', async () => {
|
||||
await mount()
|
||||
await select()
|
||||
drag(hitOf('Sommet 2'), [80, 20], [90, 10], 'mouse')
|
||||
drag(hitOf('Sommet 2 de N'), [80, 20], [90, 10], 'mouse')
|
||||
expect(line()).toHaveTextContent('Sommet déplacé')
|
||||
drag(canvas(), [5, 5], [45, 5])
|
||||
expect(line()).toHaveTextContent('Sommet déplacé')
|
||||
@@ -209,7 +209,7 @@ describe('the loupe of a finger drag', () => {
|
||||
.querySelector('svg')!
|
||||
drawing.setAttribute('id', 'drawing-root')
|
||||
drawing.firstElementChild?.setAttribute('id', 'drawing-part')
|
||||
const vertex = hitOf('Sommet 2')
|
||||
const vertex = hitOf('Sommet 2 de N')
|
||||
fireEvent.pointerDown(vertex, finger(1, 80, 20))
|
||||
fireEvent.pointerMove(vertex, finger(1, 95, 35))
|
||||
expect(loupe()).not.toBeNull()
|
||||
@@ -222,7 +222,7 @@ describe('the loupe of a finger drag', () => {
|
||||
it('shows a picture of the drawing above the finger, then goes on the drop', async () => {
|
||||
await mount()
|
||||
await select()
|
||||
const vertex = hitOf('Sommet 2')
|
||||
const vertex = hitOf('Sommet 2 de N')
|
||||
fireEvent.pointerDown(vertex, finger(1, 80, 20))
|
||||
fireEvent.pointerMove(vertex, finger(1, 95, 35))
|
||||
const shown = loupe()!
|
||||
@@ -239,7 +239,7 @@ describe('the loupe of a finger drag', () => {
|
||||
it('goes when the drag is cancelled by a second finger', async () => {
|
||||
await mount()
|
||||
await select()
|
||||
const vertex = hitOf('Sommet 2')
|
||||
const vertex = hitOf('Sommet 2 de N')
|
||||
fireEvent.pointerDown(vertex, finger(1, 80, 20))
|
||||
fireEvent.pointerMove(vertex, finger(1, 95, 35))
|
||||
expect(loupe()).not.toBeNull()
|
||||
@@ -250,7 +250,7 @@ describe('the loupe of a finger drag', () => {
|
||||
it('a mouse drag shows none', async () => {
|
||||
await mount()
|
||||
await select()
|
||||
const vertex = hitOf('Sommet 2')
|
||||
const vertex = hitOf('Sommet 2 de N')
|
||||
fireEvent.pointerDown(vertex, finger(1, 80, 20, 'mouse'))
|
||||
fireEvent.pointerMove(vertex, finger(1, 95, 35, 'mouse'))
|
||||
expect(loupe()).toBeNull()
|
||||
|
||||
Reference in new issue
Block a user