tests(e2e): Silence heading level warning (#8659)

The problem surfaced in and after https://codeberg.org/forgejo/forgejo/pulls/8572, but the actual problem is the underlying mess of forms. A better fix would be https://codeberg.org/forgejo/forgejo/issues/8658, but I want to make playwright tests pass again.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8659
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Otto Richter <git@otto.splvs.net>
Co-committed-by: Otto Richter <git@otto.splvs.net>
This commit is contained in:
Otto Richter 2025-07-25 02:39:16 +02:00 committed by Otto
commit 38c83ae6e1

View file

@ -10,6 +10,9 @@ export async function validate_form({page}: {page: Page}, scope: 'form' | 'field
// legacy dropdowns don't use semantic HTML yet,
// avoid using these where possible
'.ui.dropdown',
// for some reason we use h1 to h5 for form sections,
// and it usually makes no sense semantically
'.ui.top.attached.header',
];
await accessibilityCheck({page}, [scope], excludedElements, []);