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
@@ -4,8 +4,10 @@ import { expect, test } from '../support/browser'
|
||||
import { dropLateReplays, routeToSandbox } from '../support/sandbox'
|
||||
import {
|
||||
TABS,
|
||||
closeFinding,
|
||||
draftTitle,
|
||||
editorActor,
|
||||
findingDialog,
|
||||
historyButton,
|
||||
openEditor,
|
||||
place,
|
||||
@@ -239,6 +241,16 @@ test.describe('editor shell journeys (H)', () => {
|
||||
await selectTab(page, dict, 'verification')
|
||||
await goTo('Constat A')
|
||||
await expect(place(page, 'findings')).toBeVisible()
|
||||
// The finding opens in its dialog, in view mode; closed, its row holds the focus.
|
||||
await expect(
|
||||
findingDialog(page).getByRole('heading', { name: 'Constat A' }),
|
||||
).toBeVisible()
|
||||
await expect(
|
||||
findingDialog(page).getByRole('button', {
|
||||
name: dict['editor.findings.edit'],
|
||||
}),
|
||||
).toBeVisible()
|
||||
await closeFinding(page, dict)
|
||||
await expect(place(page, 'findings').locator(':focus')).toHaveCount(1)
|
||||
|
||||
await selectTab(page, dict, 'verification')
|
||||
|
||||
Reference in new issue
Block a user