(frontend) hide decorative icons from assistive tech with aria-hidden

improves accessibility by reducing screen reader noise from icon elements

Signed-off-by: Cyril <c.gromoff@gmail.com>
This commit is contained in:
Cyril
2025-09-18 08:22:01 +02:00
parent 0894bcdca5
commit e5e5fba0b3
4 changed files with 8 additions and 1 deletions

View File

@@ -63,5 +63,5 @@ export const clickOnAddRootSubPage = async (page: Page) => {
const rootItem = page.getByTestId('doc-tree-root-item');
await expect(rootItem).toBeVisible();
await rootItem.hover();
await rootItem.getByRole('button', { name: 'add_box' }).click();
await rootItem.getByRole('button', { name: /add subpage/i }).click();
};