fix(a11y): close cross-app interaction gaps
CI and Deploy / test (pull_request) Successful in 4m54s
CI and Deploy / deploy (pull_request) Has been skipped

This commit is contained in:
cesnimda
2026-08-15 17:49:42 +02:00
parent deed948183
commit a7c25499bb
23 changed files with 224 additions and 61 deletions
@@ -61,6 +61,11 @@ test('lists existing CVs from the variants API', async () => {
expect(await screen.findByText('Frontend CV')).toBeInTheDocument();
expect(screen.getByText('Public')).toBeInTheDocument();
const cvCard = screen.getByRole('link', { name: 'Open Frontend CV' });
cvCard.focus();
expect(cvCard).toHaveFocus();
fireEvent.keyDown(cvCard, { key: 'Enter' });
expect(mockNavigate).toHaveBeenCalledWith('/career/builder/1');
expect(mockedApi.get).toHaveBeenCalledWith('/cv/variants');
});