fix(a11y): make confirmation messages keyboard scrollable

This commit is contained in:
cesnimda
2026-10-20 09:32:04 +02:00
parent e5aba4cf69
commit 985c71989f
3 changed files with 17 additions and 3 deletions
+4
View File
@@ -31,6 +31,10 @@ test('renders app-owned confirmation dialog', async () => {
expect(screen.getByRole('button', { name: /delete/i })).toBeInTheDocument();
expect(screen.getByRole('dialog', { name: 'Delete job' })).toHaveAccessibleDescription('Are you sure?');
expect(screen.getByRole('button', { name: 'Cancel' })).toHaveFocus();
const messageRegion = screen.getByRole('region', { name: 'Delete job' });
expect(messageRegion).toHaveAttribute('tabindex', '0');
messageRegion.focus();
expect(messageRegion).toHaveFocus();
});
test('uses the selected language for shared dialog defaults', async () => {