fix(a11y): close cross-app interaction gaps
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user