We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e92daf commit 215b523Copy full SHA for 215b523
tests/index.test.tsx
@@ -120,12 +120,12 @@ describe('rc-checkbox', () => {
120
expect(inputEl.attributes.value.value).toEqual('6');
121
});
122
123
- it('passes title prop to input', () => {
+ it('passes title prop to wrapper', () => {
124
const { container } = render(<Checkbox title="my-custom-title" />);
125
- const inputEl = container.querySelector('input')!;
+ const wrapper = container.querySelector('.rc-checkbox')!;
126
127
// @ts-ignore
128
- expect(inputEl.attributes.title.value).toEqual('my-custom-title');
+ expect(wrapper.attributes.title.value).toEqual('my-custom-title');
129
130
131
it('onFocus', () => {
0 commit comments