fix(layout): replace hardcoded 'Hochladen' with m.upload_action() + aria-label
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -48,6 +48,22 @@ describe('Layout – user avatar button', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// ─── Upload link ──────────────────────────────────────────────────────────────
|
||||
|
||||
describe('Layout – upload link', () => {
|
||||
it('has aria-label for screen reader access', async () => {
|
||||
render(Layout, { data: makeData(), children: emptySnippet });
|
||||
const link = page.getByRole('link', { name: /Hochladen|Upload|Subir/i });
|
||||
await expect.element(link).toHaveAttribute('aria-label');
|
||||
});
|
||||
|
||||
it('navigates to /documents/new', async () => {
|
||||
render(Layout, { data: makeData(), children: emptySnippet });
|
||||
const link = page.getByRole('link', { name: /Hochladen|Upload|Subir/i });
|
||||
await expect.element(link).toHaveAttribute('href', '/documents/new');
|
||||
});
|
||||
});
|
||||
|
||||
// ─── Dropdown ─────────────────────────────────────────────────────────────────
|
||||
|
||||
describe('Layout – user dropdown', () => {
|
||||
|
||||
Reference in New Issue
Block a user