ui phase 9
This commit is contained in:
@@ -37,4 +37,12 @@ describe('<RelationSelect/> component', () => {
|
||||
await user.click(screen.getByText('Parent'));
|
||||
expect(onChange).toHaveBeenCalledWith('parent');
|
||||
});
|
||||
|
||||
it('renders a check icon on the selected card, not only a border color (WCAG 1.4.1)', () => {
|
||||
const { container } = renderSelect('self');
|
||||
const selectedCard = container.querySelector('[data-code="self"]');
|
||||
const unselectedCard = container.querySelector('[data-code="parent"]');
|
||||
expect(selectedCard?.querySelector('svg')).toBeInTheDocument();
|
||||
expect(unselectedCard?.querySelector('svg')).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user