test(editor): V1-2.6 browser journeys on the sandbox, touch drag and findings fixes

This commit is contained in:
bchanot committed 2026-11-04 15:27:35 +01:00
1 parent 7bbd096a16
commit 5097fd7484
18 files changed
+3010 -8

No files matched your search

+8 -1
View File
@@ -515,7 +515,14 @@ for (const [locale, dict] of LANGUAGES) {
.getByRole('button', { name: dict['admin.sheet_form.submit'] })
.click()
await expect(page).toHaveURL(/\/app\/admin\/sheets\/[0-9a-f-]{36}$/)
// V1-2.6: the creation opens the new draft in the editor; the overview follows.
await expect(page).toHaveURL(
/\/app\/admin\/sheets\/[0-9a-f-]{36}\/draft$/,
)
await expect(
heading(page, dict['editor.draft.title'].replace('{number}', '1')),
).toBeVisible()
await page.goto(new URL(page.url()).pathname.replace(/\/draft$/, ''))
const name = locale === 'fr' ? `Fiche e2e ${tag}` : `E2E sheet ${tag}`
await expect(heading(page, name)).toBeVisible()
const versions = main(page)