feat(editor): « Aller à » opens the finding dialog, spec races fixed
« Aller à » a finding shows its row and opens its dialog in view mode. E2e helpers wait for the history to settle after a layer or section pop; the layout walk waits out the write budget. Label rows for the nine new keys.
This commit is contained in:
1 parent
4731a3376a
commit
c893dec60b
10 files changed
+89
-3
No files matched your search
@@ -434,7 +434,7 @@ for (const reduced of [false, true]) {
|
||||
await expect(page.locator('dialog[open]')).toHaveCount(2)
|
||||
})
|
||||
|
||||
test('« Tout afficher » and « Aller à » land where the pending move says', async ({
|
||||
test('« Tout afficher » and « Aller à » land where the move says', async ({
|
||||
page,
|
||||
}) => {
|
||||
test.setTimeout(150_000)
|
||||
@@ -450,7 +450,13 @@ for (const reduced of [false, true]) {
|
||||
.getByRole('button', { name: dict['editor.references.go_to'] })
|
||||
.first()
|
||||
.click()
|
||||
await expectNoDialog(page)
|
||||
// The sheet closes and the family opens in the dialog (view mode); closed, the
|
||||
// row holds the focus.
|
||||
await expect(place(page, 'citations')).toHaveCount(0)
|
||||
await expect(
|
||||
findingDialog(page).getByRole('heading', { name: 'Dysfonction A' }),
|
||||
).toBeVisible()
|
||||
await closeFinding(page, dict)
|
||||
await expect(
|
||||
page.getByRole('treeitem', { name: /Dysfonction A/ }),
|
||||
).toBeFocused()
|
||||
|
||||
Reference in new issue
Block a user