ui phase 9

This commit is contained in:
hamid
2026-07-19 15:14:44 +03:30
parent 1ef4feb911
commit b638e25a0e
47 changed files with 2628 additions and 666 deletions
@@ -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();
});
});