fix: improve keyboard navigation and screen-reader labels (#1445)

This commit is contained in:
Björn F.
2026-04-21 22:21:23 +02:00
committed by GitHub
parent 605c8b2ba4
commit a9fdab10f1
7 changed files with 55 additions and 5 deletions

View File

@@ -0,0 +1,22 @@
import test, { expect } from '@playwright/test';
import { cleanupBackend } from '../utils/cleanup.util';
test.beforeEach(async () => await cleanupBackend());
test('settings sidebar has an accessible name', async ({ page }) => {
await page.goto('/settings/account');
const nav = page.getByRole('navigation', { name: 'Settings' });
await expect(nav).toBeVisible();
});
test('keyboard focus stays on sidebar link after navigating', async ({ page }) => {
await page.goto('/settings/account');
const auditLog = page.getByRole('link', { name: 'Audit Log' });
await auditLog.focus();
await page.keyboard.press('Enter');
await page.waitForURL('**/settings/audit-log');
await expect(auditLog).toBeFocused();
});