chore(editor): rev 4 review nits
This commit is contained in:
1 parent
8f036b2a8a
commit
682bbd4a18
4 files changed
+10
-11
No files matched your search
@@ -209,19 +209,18 @@ describe('a vertex (R-9)', () => {
|
||||
expect(message()).toHaveTextContent('Sommet ajouté')
|
||||
})
|
||||
|
||||
it('undo after « + » drops the chosen vertex: « − » removes nothing stale (Review Focus 2)', async () => {
|
||||
it('undo after « + » drops the chosen vertex: no stale « − » (Review Focus 2)', async () => {
|
||||
await mount(squareText())
|
||||
render(<UndoKeys />)
|
||||
await select()
|
||||
clickHandle('Ajouter un sommet après le sommet 1 de N', [50, 20])
|
||||
const bubble = hitOf('Retirer le sommet 2 de N')
|
||||
hitOf('Retirer le sommet 2 de N')
|
||||
fireEvent.keyDown(document.body, { key: 'z', ctrlKey: true })
|
||||
expect(pointsOf('z')).toEqual(SQUARE)
|
||||
expect(chosen()).toBeNull()
|
||||
expect(
|
||||
screen.queryByRole('button', { name: /^Retirer le sommet/ }),
|
||||
).toBeNull()
|
||||
void bubble
|
||||
const after = depth()
|
||||
// (A vertex key acts on its own handle, so it is not a stale case; only the bubble is.)
|
||||
// A press where the bubble was reaches what is there now: a bubble still shown, else the
|
||||
@@ -242,7 +241,7 @@ describe('a vertex (R-9)', () => {
|
||||
expect(message()).toHaveTextContent('Sommet retiré')
|
||||
})
|
||||
|
||||
it('Backspace removes and « + » inserts like Delete and Insert, one commit each, the default prevented', async () => {
|
||||
it('Backspace removes and « + » inserts like Delete and Insert, one commit each', async () => {
|
||||
await mount(squareText())
|
||||
await select()
|
||||
const before = depth()
|
||||
|
||||
Reference in new issue
Block a user