+ );
+
+ const label = screen.getByTestId('label');
+ const input = screen.getByTestId('input');
+
+ // The label should be associated with the input
+ expect(label).toHaveAttribute('for', 'test-input');
+ expect(input).toHaveAttribute('id', 'test-input');
+
+ // The label should be properly associated with the input for screen readers
+ expect(label).toHaveAttribute('for', 'test-input');
+ });
+
+ it('handles disabled state of associated form controls', () => {
+ render(
+